Instructions to use pszemraj/flan-t5-large-grammar-synthesis-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use pszemraj/flan-t5-large-grammar-synthesis-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M
Use Docker
docker model run hf.co/pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use pszemraj/flan-t5-large-grammar-synthesis-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pszemraj/flan-t5-large-grammar-synthesis-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pszemraj/flan-t5-large-grammar-synthesis-gguf", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M
- Ollama
How to use pszemraj/flan-t5-large-grammar-synthesis-gguf with Ollama:
ollama run hf.co/pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M
- Unsloth Studio
How to use pszemraj/flan-t5-large-grammar-synthesis-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for pszemraj/flan-t5-large-grammar-synthesis-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for pszemraj/flan-t5-large-grammar-synthesis-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for pszemraj/flan-t5-large-grammar-synthesis-gguf to start chatting
- Docker Model Runner
How to use pszemraj/flan-t5-large-grammar-synthesis-gguf with Docker Model Runner:
docker model run hf.co/pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M
- Lemonade
How to use pszemraj/flan-t5-large-grammar-synthesis-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pszemraj/flan-t5-large-grammar-synthesis-gguf:Q4_K_M
Run and chat with the model
lemonade run user.flan-t5-large-grammar-synthesis-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Commit ·
1092c49
verified ·
0
Parent(s):
Super-squash branch 'main' using huggingface_hub
Browse files- .gitattributes +40 -0
- README.md +54 -0
- flan-t5-large-grammar-synthesis-F16.gguf +3 -0
- ggml-model-Q4_K_M.gguf +3 -0
- ggml-model-Q5_K_M.gguf +3 -0
- ggml-model-Q6_K.gguf +3 -0
- ggml-model-Q8_0.gguf +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
flan-t5-large-grammar-synthesis-F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
ggml-model-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
ggml-model-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
ggml-model-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
ggml-model-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model:
|
| 6 |
+
- pszemraj/flan-t5-large-grammar-synthesis
|
| 7 |
+
pipeline_tag: text2text-generation
|
| 8 |
+
tags:
|
| 9 |
+
- grammar
|
| 10 |
+
- spelling
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# flan-t5-large-grammar-synthesis - GGUF
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
GGUF files for [flan-t5-large-grammar-synthesis](https://huggingface.co/pszemraj/flan-t5-large-grammar-synthesis) for use with Ollama, llama.cpp, or any other framework that supports t5 models in GGUF format.
|
| 17 |
+
|
| 18 |
+
This repo contains mostly 'higher precision'/larger quants, as the point of this model is for grammar/spelling correction and will be rather useless in low precision with incorrect fixes etc.
|
| 19 |
+
|
| 20 |
+
Refer to the original repo for more details.
|
| 21 |
+
|
| 22 |
+
## Usage
|
| 23 |
+
|
| 24 |
+
You can use the GGUFs with [llamafile](https://github.com/Mozilla-Ocho/llamafile) (or llama-cli) like this:
|
| 25 |
+
|
| 26 |
+
```
|
| 27 |
+
llamafile.exe -m grammar-synthesis-Q6_K.gguf --temp 0 -p "There car broke down so their hitching a ride to they're class."
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
and it will output the corrected text:
|
| 31 |
+
|
| 32 |
+
```
|
| 33 |
+
system_info: n_threads = 4 / 8 | AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 1 | AVX512_VBMI = 1 | AVX512_VNNI = 1 | AVX512_BF16 = 0 | FMA = 1 | NEON = 0 | SVE = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 |
|
| 34 |
+
sampling:
|
| 35 |
+
repeat_last_n = 64, repeat_penalty = 1.000, frequency_penalty = 0.000, presence_penalty = 0.000
|
| 36 |
+
top_k = 40, tfs_z = 1.000, top_p = 0.950, min_p = 0.050, typical_p = 1.000, temp = 0.000
|
| 37 |
+
mirostat = 0, mirostat_lr = 0.100, mirostat_ent = 5.000
|
| 38 |
+
sampling order:
|
| 39 |
+
CFG -> Penalties -> top_k -> tfs_z -> typical_p -> top_p -> min_p -> temperature
|
| 40 |
+
generate: n_ctx = 8192, n_batch = 2048, n_predict = -1, n_keep = 0
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
The car broke down so they had to take a ride to school. [end of text]
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
llama_print_timings: load time = 782.21 ms
|
| 47 |
+
llama_print_timings: sample time = 0.23 ms / 16 runs ( 0.01 ms per token, 68376.07 tokens per second)
|
| 48 |
+
llama_print_timings: prompt eval time = 85.08 ms / 19 tokens ( 4.48 ms per token, 223.33 tokens per second)
|
| 49 |
+
llama_print_timings: eval time = 341.74 ms / 15 runs ( 22.78 ms per token, 43.89 tokens per second)
|
| 50 |
+
llama_print_timings: total time = 456.56 ms / 34 tokens
|
| 51 |
+
Log end
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
If you have a GPU, be sure to add `-ngl 9999` to your command to automatically place as many layers as the GPU can handle for faster inference.
|
flan-t5-large-grammar-synthesis-F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fa9638f2393c2877a920e56184bcb885077002a6bf4c96e77ac2bea255d9f0cb
|
| 3 |
+
size 1567605376
|
ggml-model-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:491affc7a59e5fd719069af90dbd014b61ea61a76feca929b549e465646c2404
|
| 3 |
+
size 486985344
|
ggml-model-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a0a93566be865a96cd1057d2367deda57deebf0c93f558884f59cc5735694cf
|
| 3 |
+
size 563056256
|
ggml-model-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8102d7d5d120b2c98c268249e6e63132a8cc3e8337d600ca8136467d07032e2
|
| 3 |
+
size 643881600
|
ggml-model-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f494fbe77fe9584432bd0bf6b3925395f0b692ab8fc93f92b7993b07a4f3396
|
| 3 |
+
size 833520256
|