Downloads · 30 days
922
13% of all-time downloads
mzbac/mistral-grammar
mistral-grammar is a machine learning model from mzbac. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
922
13% of all-time downloads
All-time downloads
6.8K
Public
Repo size
35.9 GB
Likes
22
Public
Click a slice to open those files.
.gguf30.8 GB · 100%
From the Hugging Face model README
Prompt template:
[INST] Corrects and rephrase user text grammar errors delimited by triple backticks to standard English.
### Input: Text=\`\`\`she no went to market\`\`\` [/INST]
[INST] ### Output: She didn’t go the market. [/INST]
[INST] ### Input: Text=\`\`\`${input}\`\`\` [/INST]
[INST] ### Output:
To use the fine-tuned model, you need to get a downloadable link for the model from HF and update it accordingly in the shell script. For example:
MODEL_URL="https://huggingface.co/mzbac/mistral-grammar/resolve/main/Mistral-7B-Grammar-Correaction-v1.1.3.Q5_K_M.gguf"
MODEL_FILE="Mistral-7B-Grammar-Correaction-v1.1.3.Q5_K_M.gguf"
For details on how to use the model with Mac Automator, please check out the article here.