Panza text personalizer
Panza is an automated tool that lets you finetune an Open-Source language model (LLM) to rewrite text in your voice. Panza learns your style from samples of your own writing, which Panza helps you collect. All data collection and training happen locally on your computer - no cloud, or even internet, necessary.
Panza is built for Apple M-series computers with at least 16 GB of unified memory. It does not run on Windows or Linux hardware.
The entirety of data collection and model training runs on your own computer. Your personal data, and the model Panza trains, remain with you. Panza will not see (or share) your data, model, or logs. Once you have trained a model with Panza, you can use it to rewrite any text in your own voice. Panza provides several convenient tools for this.
This is a research preview, distributed with no quality guarantees. All AI-based tools can make mistakes. Additionally, please keep in mind that the outputs of Panza models are likely to contain your personal information, including specific facts (e.g., your name or address), as well as your writing mannerisms. You are completely responsible for checking the text that Panza outputs prior to using it, ensure that you are happy with the quality, and that no personal information is revealed against your desires. By using Panza you are also committing to adhere to the Panza [terms of use].
Below, we will walk you through building and using your Panza model. If you have additional questions or comments, please feel free to use the [feedback form] or to reach out to us at hello@panza.at.
There are two steps to building your own Panza model.
Panza needs samples of your own writing — text you wrote, not text you received or collected. The more there is, the better the style it can learn, and there is a floor below which training will not start: 25,000 words. The counter on the bottom of the Build Panza Model tab tracks your total. We found that the best writing samples come from either documents (essays, reports, school assignments) that you have written in the past or from your emails. Panza allows you to import both. For the resulting Panza model to do a good job imitating your style, you need at least 25 000 words' worth of documents and emails (50 000, if possible) of various types of English text authored by you. Tabs for document and email imports are provided. Other types of data (e.g., WhatsApp) and documents stored in the cloud (e.g., Google Drive) can be imported as regular files, so long as the data is converted to plain text.
Panza scans all imported documents for sensitive information. By default, Panza runs rules-based filters, either pattern-matching for important numbers such as bank account numbers, or a specific list of health-related terms.
Panza runs automated scans to check potential training data for usefulness and safety, and labels files that don't seem like English text, or that may contain secrets.
You can create your own rules-based filters by providing additional terms that Panza should filter for; any document with a string that matches your filter terms (case-insensitive) will be blocked from being imported automatically, and a warning will be shown. Additionally, you can whitelist terms that Panza detects as secret, by either entering it in the "Always Allow" list under Safety Filters, or clicking "Always Allow" in any folder scan that discovers the term.
Any term added to the block list works retroactively: any already-imported data that contains this term will be removed and would need to be re-imported.
You can import either individual files or entire folders from your computer by either dragging them onto Panza's application screen, or selecting either "Choose files" or "Choose a folder" from the left panel of Panza's model builder interface. It's possible to import several files or folders at a time.
Panza will examine the chosen files and folders for suitability, as described above. If any files do not pass automatic checks for English prose (rather than, for example, code) or that contain a term Panza believes to be secret, a notification will pop up, and ask you to review and approve these files manually. Then, Panza summarizes which files would be imported, and asks for your final approval. At this step, you will also have the option to limit the files being to a total number of words. We recommend using this option, to avoid collecting more than roughly 50 000 words.
You can click on any file to examine, optionally Edit, and then Import it in the preview window on the right. You can also mark any file as Never import file, to prevent it being imported as part of a whole-folder import (see below).
Panza accepts these formats:
.txt, .text — plain text.md, .markdown — Markdown.rst — reStructuredText.doc, .docx — Word documentsRerunning the import is harmless - Panza will not import the same file twice.
Files that have been imported are then shown in the same left panel of the import interface. These files can be reviewed, edited, or removed from import at any time.
We recommend reviewing the contents of each imported file and removing any secret information, or any part that does not represent your writing. To help you do so, we highlight any issues found by our automatic checks. Editing a file in our editor will only modify the text used for training Panza, and never your original file.
The email import functionality is driven by the Email import tab on the left-hand side of the window, next to the File import tab. However, there is an additional step: first you need to export your sent emails from your email provider. Panza cannot do this for you, but we do provide instructions for doing so for Gmail and Outlook. Instructions for other providers can commonly be found through a web search.
Panza expects one of two export file formats:
.mbox — from Gmail, via
takeout.google.com. Deselect everything,
select only Mail, and (optionally) only the Sent label
to keep the export small. The .mbox file is inside
Takeout/Mail/ in the download. The Email import tab has these steps written out.
.csv — from Microsoft Outlook and other
exporters.
Once you have downloaded your export, you can use Email import tab to point Panza at the location of the .mbox or .csv file. To ensure only your authored text is used, Panza attempts to automatically detect your own email address and name, and only emails matching one or the other in the metadata are used. You can add names and email addresses Panza may have missed, or remove ones that don't belong to you.
The emails matching these criteria are unpacked, and the import proceeds the same way as a regular folder import (see above), with each email treated as a single file.
We recommend that your imported emails should make no more than about half of your training data (by word count), and therefore we allow you to limit the number of imported words from an email account.
Rerunning the import, or importing two mailbox files with duplicated messages is harmless - Panza will not import the same message twice.
Panza works only with the files on your computer. Apple allows cloud files and folders, such as iCloud, Dropbox, Google Drive, etc., to be mounted locally and shown as a part of the filesystem. However, individual files may not be automatically copied to your hard disk, or may be out of date. Panza does not trigger your computer to download or sync these files, and will only work with local copies. If you primarily store your documents in the cloud, we recommend manually triggering a sync prior to collecting your training data.
Training produces a Panza model by adapting an existing, general-purpose open source model using your text as the training data. This base model is downloaded to your computer along with the Panza binary.
Once you have between 25,000 and 50,000 words collected and imported into Panza, you are ready to train your model. Simply press the Train button below the importing window. The button appears once the 25,000-word minimum has been reached.
Note that training takes some time - up to 1-2 hours - and will use a large portion of your computer's processing power. In our tests, it was still possible to use the computer for lightweight work while training was running, but this will depend on your computer and your desired use. We recommend ensuring that your computer is plugged into power and prevented from going to sleep for the duration of the training. If your computer does go to sleep, training will simply resume once the computer is reactivated. However, if the computer is shut down, training will have to be restarted manually.
In general, it is safe to restart training for any reason, for instance, because of a crash, or to edit the training data. (Editing the model to remove a secret that has leaked into the training data is not possible without retraining from scratch.) If the previous training has finished, a new Panza model will be created from each retraining. Old models can be deleted from the Use Panza Model tab.
Once a training run finishes, a dialogue pops up to congratulate you for finishing a Panza run, and you are automatically directed to the next tab, where you can try out your new model.
The Panza model you have trained has a single function: to turn any piece of text into the same content, but expressed in a way that matches your style. We provide three ways to interact with this model:
To provide a useful interface, the Use Panza model tab provides two functionalities: rewriting any text in your style using your Panza model, and chatting with a regular, multi-purpose model in order to generate text to be personalized. There are three options for the regular Chat model:
You can use Panza to rewrite text in many other apps, as follows: First, right-click the text that you want to rewrite. Then, go to Services → Personalize with Panza. Panza will then rewrite the highlighted text. If this option is not available (this depends on the app), you can copy the text into your clipboard, and then click on the Panza icon in the taskbar at the top of the screen and select "Rewrite keyboard".
Alternatively, you can download the [Panza Chrome app] and use it to rewrite text in the Chrome browser and, whenever possible, change it in-place. Simply right-click any text and select "Personalize with Panza".
The first time you use the Chrome app, you will need to enter a unique passcode created by your Panza installation. To find the code, click the Connect with Chrome extension button at the top of the Panza tool.
The Chrome extension communicates with Panza through http, via a port that Panza opens. Typically, Panza prefers a port between 5005 and 5014, and the Chrome app finds Panza's port automatically and is able to connect. If this fails, the port can be specified manually through the Chrome extension's menu, available by clicking on the extension icon in Chrome. The port used by Panza is also specified in the "Connect to Chrome extension" pop-up.
The Personalization history button above the conversation can be used to inspect your past personalization interactions with Panza. From there, you can delete individual interactions, or send feedback to us on what went well and what went poorly.
We hope that you will take the time to give us feedback of what did and did not work well with Panza. You can give us feedback at any time, and as many times as you would like. To do so, simply click on any of the 'Send feedback' buttons in the app.
All feedback is collected through Google Forms and is confidential. Clicking on the Send Feedback button will direct you to the form. Some basic statistics (your hardware and OS version, and the number of words you used to train your model) will be pre-filled into the form. Additionally, if you are submitting feedback on a Panza crash, the crash report will be pre-filled. The most sensitive case is that of giving feedback on a particlar Panza rewrite. We would like to know what Panza did, but, we would still caution you to be mindful of what you share. To that end, you will be able to edit Panza's output in the feedback widget in the app, before it's sent on to the Google form. You can also edit it in the form directly.
Training is not enabled until 25 000 words are present in the training data. Check that you don't need to import more words, and try again.
Any document can be imported manually - just open the document through the file browser and click Import.
Please restart your computer, ensure that there are no processes eating up all of the processing power, and try again.
Please try to add more, varied training data and train again. However, Panza models can and do make mistakes, and so manual edits may often be required.
You can remove any document, using either the File import tab or the Training data tab. If you have already trained a Panza model using this document, please delete it and train a new one.