Instructions to use tensorblock/Bitnet-SmolLM-135M-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/Bitnet-SmolLM-135M-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/Bitnet-SmolLM-135M-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/Bitnet-SmolLM-135M-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/Bitnet-SmolLM-135M-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/Bitnet-SmolLM-135M-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/Bitnet-SmolLM-135M-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/Bitnet-SmolLM-135M-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/Bitnet-SmolLM-135M-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/Bitnet-SmolLM-135M-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/Bitnet-SmolLM-135M-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/Bitnet-SmolLM-135M-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/Bitnet-SmolLM-135M-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/Bitnet-SmolLM-135M-GGUF with Ollama:
ollama run hf.co/tensorblock/Bitnet-SmolLM-135M-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/Bitnet-SmolLM-135M-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 tensorblock/Bitnet-SmolLM-135M-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 tensorblock/Bitnet-SmolLM-135M-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/Bitnet-SmolLM-135M-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/Bitnet-SmolLM-135M-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/Bitnet-SmolLM-135M-GGUF:Q2_K
- Lemonade
How to use tensorblock/Bitnet-SmolLM-135M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/Bitnet-SmolLM-135M-GGUF:Q2_K
Run and chat with the model
lemonade run user.Bitnet-SmolLM-135M-GGUF-Q2_K
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- Bitnet-SmolLM-135M-Q2_K.gguf +3 -0
- Bitnet-SmolLM-135M-Q3_K_L.gguf +3 -0
- Bitnet-SmolLM-135M-Q3_K_M.gguf +3 -0
- Bitnet-SmolLM-135M-Q3_K_S.gguf +3 -0
- Bitnet-SmolLM-135M-Q4_0.gguf +3 -0
- Bitnet-SmolLM-135M-Q4_K_M.gguf +3 -0
- Bitnet-SmolLM-135M-Q4_K_S.gguf +3 -0
- Bitnet-SmolLM-135M-Q5_0.gguf +3 -0
- Bitnet-SmolLM-135M-Q5_K_M.gguf +3 -0
- Bitnet-SmolLM-135M-Q5_K_S.gguf +3 -0
- Bitnet-SmolLM-135M-Q6_K.gguf +3 -0
- Bitnet-SmolLM-135M-Q8_0.gguf +3 -0
- README.md +85 -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 |
+
Bitnet-SmolLM-135M-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Bitnet-SmolLM-135M-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Bitnet-SmolLM-135M-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Bitnet-SmolLM-135M-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Bitnet-SmolLM-135M-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Bitnet-SmolLM-135M-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Bitnet-SmolLM-135M-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Bitnet-SmolLM-135M-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Bitnet-SmolLM-135M-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Bitnet-SmolLM-135M-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Bitnet-SmolLM-135M-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Bitnet-SmolLM-135M-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
Bitnet-SmolLM-135M-Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:50374f45331168d0ef41b716fa23c014e638f75d2334193c789fa5ca94cb58b7
|
| 3 |
+
size 43247616
|
Bitnet-SmolLM-135M-Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:231943047ff4e1b0ca5bebb7bcf66fb232d9cf9b536cba39d4af5bae3e76df60
|
| 3 |
+
size 47966208
|
Bitnet-SmolLM-135M-Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2f26ea280a6047691fd79be666a3a43fc3886471f1bd85bd44293ab7264fd5c
|
| 3 |
+
size 46639104
|
Bitnet-SmolLM-135M-Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10864e5736a4703cc363f63d5d42c6bca41796d090f81c311710ae0e264fa161
|
| 3 |
+
size 44924928
|
Bitnet-SmolLM-135M-Q4_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c91d856db30c605f6f67575c5a87144c7cd97aecfc624a72b8cd4504ac5bb0b8
|
| 3 |
+
size 48685056
|
Bitnet-SmolLM-135M-Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91c6aea347b0081807dae4399018a75d3fff5a005aa51df986035c2d0f952b26
|
| 3 |
+
size 49394688
|
Bitnet-SmolLM-135M-Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8112ee11fb1ac8a834e18cbe9d94422c4588a009463cf1bca07d6a399b921cf5
|
| 3 |
+
size 48979968
|
Bitnet-SmolLM-135M-Q5_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb336ce4a1792363f0e54cff2b5787a1a94335ba5dc9393e0a73f15c7ca4bb1e
|
| 3 |
+
size 52224000
|
Bitnet-SmolLM-135M-Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e412fd19dc50f5554ea24dcfd63ddc793f9fefac73fdbc8d2091e9a06d6e7ab
|
| 3 |
+
size 52589568
|
Bitnet-SmolLM-135M-Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0f1549d4911586aae48dbab367f20bf10e83d658599b868f5f7574e2e8d90fc0
|
| 3 |
+
size 52224000
|
Bitnet-SmolLM-135M-Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6941c8e8b062a837a8a28f52b6a112e0d017d59f6205f81363d34f70490d74e5
|
| 3 |
+
size 55984128
|
Bitnet-SmolLM-135M-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0736ff79455ce9124d79e21ecdb55dc0930b4000cfbd99fbdb35f119920bb1f
|
| 3 |
+
size 71983104
|
README.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
datasets:
|
| 7 |
+
- abideen/Cosmopedia-100k-pretrain
|
| 8 |
+
tags:
|
| 9 |
+
- TensorBlock
|
| 10 |
+
- GGUF
|
| 11 |
+
base_model: ighoshsubho/Bitnet-SmolLM-135M
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<div style="width: auto; margin-left: auto; margin-right: auto">
|
| 15 |
+
<img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
| 16 |
+
</div>
|
| 17 |
+
<div style="display: flex; justify-content: space-between; width: 100%;">
|
| 18 |
+
<div style="display: flex; flex-direction: column; align-items: flex-start;">
|
| 19 |
+
<p style="margin-top: 0.5em; margin-bottom: 0em;">
|
| 20 |
+
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>
|
| 21 |
+
</p>
|
| 22 |
+
</div>
|
| 23 |
+
</div>
|
| 24 |
+
|
| 25 |
+
## ighoshsubho/Bitnet-SmolLM-135M - GGUF
|
| 26 |
+
|
| 27 |
+
This repo contains GGUF format model files for [ighoshsubho/Bitnet-SmolLM-135M](https://huggingface.co/ighoshsubho/Bitnet-SmolLM-135M).
|
| 28 |
+
|
| 29 |
+
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4242](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
| 30 |
+
|
| 31 |
+
<div style="text-align: left; margin: 20px 0;">
|
| 32 |
+
<a href="https://tensorblock.co/waitlist/client" style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold;">
|
| 33 |
+
Run them on the TensorBlock client using your local machine ↗
|
| 34 |
+
</a>
|
| 35 |
+
</div>
|
| 36 |
+
|
| 37 |
+
## Prompt template
|
| 38 |
+
|
| 39 |
+
```
|
| 40 |
+
<|im_start|>system
|
| 41 |
+
{system_prompt}<|im_end|>
|
| 42 |
+
<|im_start|>user
|
| 43 |
+
{prompt}<|im_end|>
|
| 44 |
+
<|im_start|>assistant
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
## Model file specification
|
| 48 |
+
|
| 49 |
+
| Filename | Quant type | File Size | Description |
|
| 50 |
+
| -------- | ---------- | --------- | ----------- |
|
| 51 |
+
| [Bitnet-SmolLM-135M-Q2_K.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q2_K.gguf) | Q2_K | 0.043 GB | smallest, significant quality loss - not recommended for most purposes |
|
| 52 |
+
| [Bitnet-SmolLM-135M-Q3_K_S.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q3_K_S.gguf) | Q3_K_S | 0.045 GB | very small, high quality loss |
|
| 53 |
+
| [Bitnet-SmolLM-135M-Q3_K_M.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q3_K_M.gguf) | Q3_K_M | 0.047 GB | very small, high quality loss |
|
| 54 |
+
| [Bitnet-SmolLM-135M-Q3_K_L.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q3_K_L.gguf) | Q3_K_L | 0.048 GB | small, substantial quality loss |
|
| 55 |
+
| [Bitnet-SmolLM-135M-Q4_0.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q4_0.gguf) | Q4_0 | 0.049 GB | legacy; small, very high quality loss - prefer using Q3_K_M |
|
| 56 |
+
| [Bitnet-SmolLM-135M-Q4_K_S.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q4_K_S.gguf) | Q4_K_S | 0.049 GB | small, greater quality loss |
|
| 57 |
+
| [Bitnet-SmolLM-135M-Q4_K_M.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q4_K_M.gguf) | Q4_K_M | 0.049 GB | medium, balanced quality - recommended |
|
| 58 |
+
| [Bitnet-SmolLM-135M-Q5_0.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q5_0.gguf) | Q5_0 | 0.052 GB | legacy; medium, balanced quality - prefer using Q4_K_M |
|
| 59 |
+
| [Bitnet-SmolLM-135M-Q5_K_S.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q5_K_S.gguf) | Q5_K_S | 0.052 GB | large, low quality loss - recommended |
|
| 60 |
+
| [Bitnet-SmolLM-135M-Q5_K_M.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q5_K_M.gguf) | Q5_K_M | 0.053 GB | large, very low quality loss - recommended |
|
| 61 |
+
| [Bitnet-SmolLM-135M-Q6_K.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q6_K.gguf) | Q6_K | 0.056 GB | very large, extremely low quality loss |
|
| 62 |
+
| [Bitnet-SmolLM-135M-Q8_0.gguf](https://huggingface.co/tensorblock/Bitnet-SmolLM-135M-GGUF/blob/main/Bitnet-SmolLM-135M-Q8_0.gguf) | Q8_0 | 0.072 GB | very large, extremely low quality loss - not recommended |
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
## Downloading instruction
|
| 66 |
+
|
| 67 |
+
### Command line
|
| 68 |
+
|
| 69 |
+
Firstly, install Huggingface Client
|
| 70 |
+
|
| 71 |
+
```shell
|
| 72 |
+
pip install -U "huggingface_hub[cli]"
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
Then, downoad the individual model file the a local directory
|
| 76 |
+
|
| 77 |
+
```shell
|
| 78 |
+
huggingface-cli download tensorblock/Bitnet-SmolLM-135M-GGUF --include "Bitnet-SmolLM-135M-Q2_K.gguf" --local-dir MY_LOCAL_DIR
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
|
| 82 |
+
|
| 83 |
+
```shell
|
| 84 |
+
huggingface-cli download tensorblock/Bitnet-SmolLM-135M-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'
|
| 85 |
+
```
|