Instructions to use mradermacher/grammar-synthesis-base-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mradermacher/grammar-synthesis-base-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mradermacher/grammar-synthesis-base-GGUF", dtype="auto") - llama-cpp-python
How to use mradermacher/grammar-synthesis-base-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="mradermacher/grammar-synthesis-base-GGUF", filename="grammar-synthesis-base.IQ4_XS.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use mradermacher/grammar-synthesis-base-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mradermacher/grammar-synthesis-base-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/grammar-synthesis-base-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf mradermacher/grammar-synthesis-base-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf mradermacher/grammar-synthesis-base-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 mradermacher/grammar-synthesis-base-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mradermacher/grammar-synthesis-base-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 mradermacher/grammar-synthesis-base-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mradermacher/grammar-synthesis-base-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mradermacher/grammar-synthesis-base-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use mradermacher/grammar-synthesis-base-GGUF with Ollama:
ollama run hf.co/mradermacher/grammar-synthesis-base-GGUF:Q4_K_M
- Unsloth Studio
How to use mradermacher/grammar-synthesis-base-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 mradermacher/grammar-synthesis-base-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 mradermacher/grammar-synthesis-base-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mradermacher/grammar-synthesis-base-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use mradermacher/grammar-synthesis-base-GGUF with Docker Model Runner:
docker model run hf.co/mradermacher/grammar-synthesis-base-GGUF:Q4_K_M
- Lemonade
How to use mradermacher/grammar-synthesis-base-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mradermacher/grammar-synthesis-base-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.grammar-synthesis-base-GGUF-Q4_K_M
List all available models
lemonade list
uploaded from leia
Browse files- .gitattributes +12 -0
- grammar-synthesis-base.IQ4_XS.gguf +3 -0
- grammar-synthesis-base.Q2_K.gguf +3 -0
- grammar-synthesis-base.Q3_K_L.gguf +3 -0
- grammar-synthesis-base.Q3_K_M.gguf +3 -0
- grammar-synthesis-base.Q3_K_S.gguf +3 -0
- grammar-synthesis-base.Q4_K_M.gguf +3 -0
- grammar-synthesis-base.Q4_K_S.gguf +3 -0
- grammar-synthesis-base.Q5_K_M.gguf +3 -0
- grammar-synthesis-base.Q5_K_S.gguf +3 -0
- grammar-synthesis-base.Q6_K.gguf +3 -0
- grammar-synthesis-base.Q8_0.gguf +3 -0
- grammar-synthesis-base.f16.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,15 @@ saved_model/**/* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
grammar-synthesis-base.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
grammar-synthesis-base.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
grammar-synthesis-base.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
grammar-synthesis-base.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
grammar-synthesis-base.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
grammar-synthesis-base.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
grammar-synthesis-base.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
grammar-synthesis-base.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
grammar-synthesis-base.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
grammar-synthesis-base.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
grammar-synthesis-base.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
grammar-synthesis-base.f16.gguf filter=lfs diff=lfs merge=lfs -text
|
grammar-synthesis-base.IQ4_XS.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58ff2d61fb07b76e4c5032fe5f683251b4c8a12432b68c6eb87592675d8d3687
|
| 3 |
+
size 140110080
|
grammar-synthesis-base.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:336970effc0423d107355abdf11848682efff4c0701d1decc87083fd914ca984
|
| 3 |
+
size 100587264
|
grammar-synthesis-base.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c3fe826381056099fe0b70f528d2d4c50429bd7b3e39e5a91871085ffc5e4131
|
| 3 |
+
size 132436992
|
grammar-synthesis-base.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf5fea5e239dca631f3e337801f01449329fc2d0a940d8f0aecb0fe3a0c97394
|
| 3 |
+
size 125211648
|
grammar-synthesis-base.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c73e365860a6300a35aaef19c24db7bf942551f4ce5c6e7d32828cbaa96d732
|
| 3 |
+
size 117230592
|
grammar-synthesis-base.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c388dfff7201b1cb825c7f4637539a2c58f779b14ec28938b7e92cd732222d79
|
| 3 |
+
size 156864768
|
grammar-synthesis-base.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2c551a6d44f947821514fd6a50c3d2a9badfc3e7dea9ea67ae9fdb44b74f573c
|
| 3 |
+
size 147320064
|
grammar-synthesis-base.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:958853ae1e8023f860f3edf1b93faf3ba7e6391ea68bdec21fff17e7237d2d9c
|
| 3 |
+
size 179855616
|
grammar-synthesis-base.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3cb1442a73ac58f279e3bc7295478a0e726c270a047ec900ac311871621e55f7
|
| 3 |
+
size 174685440
|
grammar-synthesis-base.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c7b201e225a3f6c7fb841541f1f37c6478ccc93f9e1d57796530d7277462ddd
|
| 3 |
+
size 204283392
|
grammar-synthesis-base.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2113341ff766cc56b7b2198c33acd1ab7fb8093728d9b90cd7d0befb9b9c1ba4
|
| 3 |
+
size 264231936
|
grammar-synthesis-base.f16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1667313e61b36ac4c6fe0c72708c8126a66def2374102f190eb3f4741fad313e
|
| 3 |
+
size 496290816
|