Instructions to use tensorblock/Llama-3-Swallow-8B-v0.1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/Llama-3-Swallow-8B-v0.1-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/Llama-3-Swallow-8B-v0.1-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/Llama-3-Swallow-8B-v0.1-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/Llama-3-Swallow-8B-v0.1-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 tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K
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 tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K
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 tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/Llama-3-Swallow-8B-v0.1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/Llama-3-Swallow-8B-v0.1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/Llama-3-Swallow-8B-v0.1-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K
- SGLang
How to use tensorblock/Llama-3-Swallow-8B-v0.1-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tensorblock/Llama-3-Swallow-8B-v0.1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/Llama-3-Swallow-8B-v0.1-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tensorblock/Llama-3-Swallow-8B-v0.1-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/Llama-3-Swallow-8B-v0.1-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/Llama-3-Swallow-8B-v0.1-GGUF with Ollama:
ollama run hf.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use tensorblock/Llama-3-Swallow-8B-v0.1-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K
- Lemonade
How to use tensorblock/Llama-3-Swallow-8B-v0.1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/Llama-3-Swallow-8B-v0.1-GGUF:Q2_K
Run and chat with the model
lemonade run user.Llama-3-Swallow-8B-v0.1-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- Llama-3-Swallow-8B-v0.1-Q2_K.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q3_K_L.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q3_K_M.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q3_K_S.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q4_0.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q4_K_M.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q4_K_S.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q5_0.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q5_K_M.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q5_K_S.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q6_K.gguf +3 -0
- Llama-3-Swallow-8B-v0.1-Q8_0.gguf +3 -0
- README.md +76 -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 |
+
Llama-3-Swallow-8B-v0.1-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Llama-3-Swallow-8B-v0.1-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Llama-3-Swallow-8B-v0.1-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Llama-3-Swallow-8B-v0.1-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Llama-3-Swallow-8B-v0.1-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Llama-3-Swallow-8B-v0.1-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Llama-3-Swallow-8B-v0.1-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Llama-3-Swallow-8B-v0.1-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Llama-3-Swallow-8B-v0.1-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Llama-3-Swallow-8B-v0.1-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Llama-3-Swallow-8B-v0.1-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Llama-3-Swallow-8B-v0.1-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
Llama-3-Swallow-8B-v0.1-Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e18516f238037f3fa76e361e746d47b48a6ec3b083d69601582837a8ecee4de2
|
| 3 |
+
size 3179131104
|
Llama-3-Swallow-8B-v0.1-Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b873e64940666a0beca4d52b5d610fb766e8a171093bcb69af5a57cc4c0958ef
|
| 3 |
+
size 4321956064
|
Llama-3-Swallow-8B-v0.1-Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6b452fd7ecfb5d4e8da7d08c53bb2deca07a69190ac7ce7c6346a5c1e33f81a
|
| 3 |
+
size 4018917600
|
Llama-3-Swallow-8B-v0.1-Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fd9a76ea995c52cbc4fc08a28af4cbe2d8d1c185a82a47b67104dbde95a4658
|
| 3 |
+
size 3664498912
|
Llama-3-Swallow-8B-v0.1-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22b360865a62d951a821b262c139b25e52301fdcd4ac4671e63ace1c04b7ed95
|
| 3 |
+
size 4661211360
|
Llama-3-Swallow-8B-v0.1-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2b569123cdcb69794d5abcbbd303a245fd7e924c1fdc5cefec739beb2e5966d
|
| 3 |
+
size 4920733920
|
Llama-3-Swallow-8B-v0.1-Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4e763490158e59e2599ba985874594cddc0fb8fc12a848578290db0b6f2f594
|
| 3 |
+
size 4692668640
|
Llama-3-Swallow-8B-v0.1-Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08fe6085d5e220414e35cfbfd1af7e58784bf408baf60feb57cfba3fcee8be89
|
| 3 |
+
size 5599293664
|
Llama-3-Swallow-8B-v0.1-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c06909aade8a52de11fa8a4a3c203a15ee17ce34edf1804f5e8d39bd0339704
|
| 3 |
+
size 5732987104
|
Llama-3-Swallow-8B-v0.1-Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb24be2dbdd7d2658ae60544d35e9a9a0053b73ea36d842171c57219fe524252
|
| 3 |
+
size 5599293664
|
Llama-3-Swallow-8B-v0.1-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d7ae6c546b16eabd7be95503217f159f32986962675be2febfce4d80e3890a2f
|
| 3 |
+
size 6596006112
|
Llama-3-Swallow-8B-v0.1-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12bb1b01981ac7e44f1fadfe57462a36271fdf1c2142d138c84022d99de78ebb
|
| 3 |
+
size 8540770528
|
README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- ja
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
license: llama3
|
| 8 |
+
model_type: llama
|
| 9 |
+
tags:
|
| 10 |
+
- TensorBlock
|
| 11 |
+
- GGUF
|
| 12 |
+
base_model: tokyotech-llm/Llama-3-Swallow-8B-v0.1
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
| 16 |
+
<img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
| 17 |
+
</div>
|
| 18 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
| 19 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
| 20 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;">
|
| 21 |
+
Feedback and support: TensorBlock's <a href="https://x.com/tensorblock_aoi">Twitter/X</a>, <a href="https://t.me/TensorBlock">Telegram Group</a> and <a href="https://x.com/tensorblock_aoi">Discord server</a>
|
| 22 |
+
</p>
|
| 23 |
+
</div>
|
| 24 |
+
</div>
|
| 25 |
+
|
| 26 |
+
## tokyotech-llm/Llama-3-Swallow-8B-v0.1 - GGUF
|
| 27 |
+
|
| 28 |
+
This repo contains GGUF format model files for [tokyotech-llm/Llama-3-Swallow-8B-v0.1](https://huggingface.co/tokyotech-llm/Llama-3-Swallow-8B-v0.1).
|
| 29 |
+
|
| 30 |
+
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4011](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
| 31 |
+
|
| 32 |
+
## Prompt template
|
| 33 |
+
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
## Model file specification
|
| 39 |
+
|
| 40 |
+
| Filename | Quant type | File Size | Description |
|
| 41 |
+
| -------- | ---------- | --------- | ----------- |
|
| 42 |
+
| [Llama-3-Swallow-8B-v0.1-Q2_K.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q2_K.gguf) | Q2_K | 2.961 GB | smallest, significant quality loss - not recommended for most purposes |
|
| 43 |
+
| [Llama-3-Swallow-8B-v0.1-Q3_K_S.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q3_K_S.gguf) | Q3_K_S | 3.413 GB | very small, high quality loss |
|
| 44 |
+
| [Llama-3-Swallow-8B-v0.1-Q3_K_M.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q3_K_M.gguf) | Q3_K_M | 3.743 GB | very small, high quality loss |
|
| 45 |
+
| [Llama-3-Swallow-8B-v0.1-Q3_K_L.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q3_K_L.gguf) | Q3_K_L | 4.025 GB | small, substantial quality loss |
|
| 46 |
+
| [Llama-3-Swallow-8B-v0.1-Q4_0.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q4_0.gguf) | Q4_0 | 4.341 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
| 47 |
+
| [Llama-3-Swallow-8B-v0.1-Q4_K_S.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q4_K_S.gguf) | Q4_K_S | 4.370 GB | small, greater quality loss |
|
| 48 |
+
| [Llama-3-Swallow-8B-v0.1-Q4_K_M.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q4_K_M.gguf) | Q4_K_M | 4.583 GB | medium, balanced quality - recommended |
|
| 49 |
+
| [Llama-3-Swallow-8B-v0.1-Q5_0.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q5_0.gguf) | Q5_0 | 5.215 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
| 50 |
+
| [Llama-3-Swallow-8B-v0.1-Q5_K_S.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q5_K_S.gguf) | Q5_K_S | 5.215 GB | large, low quality loss - recommended |
|
| 51 |
+
| [Llama-3-Swallow-8B-v0.1-Q5_K_M.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q5_K_M.gguf) | Q5_K_M | 5.339 GB | large, very low quality loss - recommended |
|
| 52 |
+
| [Llama-3-Swallow-8B-v0.1-Q6_K.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q6_K.gguf) | Q6_K | 6.143 GB | very large, extremely low quality loss |
|
| 53 |
+
| [Llama-3-Swallow-8B-v0.1-Q8_0.gguf](https://huggingface.co/tensorblock/Llama-3-Swallow-8B-v0.1-GGUF/tree/main/Llama-3-Swallow-8B-v0.1-Q8_0.gguf) | Q8_0 | 7.954 GB | very large, extremely low quality loss - not recommended |
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
## Downloading instruction
|
| 57 |
+
|
| 58 |
+
### Command line
|
| 59 |
+
|
| 60 |
+
Firstly, install Huggingface Client
|
| 61 |
+
|
| 62 |
+
```shell
|
| 63 |
+
pip install -U "huggingface_hub[cli]"
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
Then, downoad the individual model file the a local directory
|
| 67 |
+
|
| 68 |
+
```shell
|
| 69 |
+
huggingface-cli download tensorblock/Llama-3-Swallow-8B-v0.1-GGUF --include "Llama-3-Swallow-8B-v0.1-Q2_K.gguf" --local-dir MY_LOCAL_DIR
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
|
| 73 |
+
|
| 74 |
+
```shell
|
| 75 |
+
huggingface-cli download tensorblock/Llama-3-Swallow-8B-v0.1-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
|
| 76 |
+
```
|