Instructions to use tensorblock/OpenThinker-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/OpenThinker-7B-GGUF with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/OpenThinker-7B-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/OpenThinker-7B-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/OpenThinker-7B-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/OpenThinker-7B-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/OpenThinker-7B-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/OpenThinker-7B-GGUF:Q2_K
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf tensorblock/OpenThinker-7B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf tensorblock/OpenThinker-7B-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/OpenThinker-7B-GGUF:Q2_K
- Llama new
- LM Studio
- Jan
- Ollama
How to use tensorblock/OpenThinker-7B-GGUF with Ollama:
ollama run hf.co/tensorblock/OpenThinker-7B-GGUF:Q2_K
- Unsloth Desktop
- Pi
How to use tensorblock/OpenThinker-7B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tensorblock/OpenThinker-7B-GGUF:Q2_K
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "tensorblock/OpenThinker-7B-GGUF:Q2_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use tensorblock/OpenThinker-7B-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/OpenThinker-7B-GGUF:Q2_K
- Lemonade
How to use tensorblock/OpenThinker-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/OpenThinker-7B-GGUF:Q2_K
Run and chat with the model
lemonade run user.OpenThinker-7B-GGUF-Q2_K
List all available models
lemonade list
- Hermes Agent
How to use tensorblock/OpenThinker-7B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tensorblock/OpenThinker-7B-GGUF:Q2_K
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default tensorblock/OpenThinker-7B-GGUF:Q2_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use tensorblock/OpenThinker-7B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tensorblock/OpenThinker-7B-GGUF:Q2_K
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "tensorblock/OpenThinker-7B-GGUF:Q2_K" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Upload folder using huggingface_hub
Browse filesFiles changed (14)
- .gitattributes+12
- OpenThinker-7B-Q2_K.ggufAdded+3
- OpenThinker-7B-Q3_K_L.ggufAdded+3
- OpenThinker-7B-Q3_K_M.ggufAdded+3
- OpenThinker-7B-Q3_K_S.ggufAdded+3
- OpenThinker-7B-Q4_0.ggufAdded+3
- OpenThinker-7B-Q4_K_M.ggufAdded+3
- OpenThinker-7B-Q4_K_S.ggufAdded+3
- OpenThinker-7B-Q5_0.ggufAdded+3
- OpenThinker-7B-Q5_K_M.ggufAdded+3
- OpenThinker-7B-Q5_K_S.ggufAdded+3
- OpenThinker-7B-Q6_K.ggufAdded+3
- OpenThinker-7B-Q8_0.ggufAdded+3
- README.mdAdded+89
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373839404142434445464732 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q2_K.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q4_0.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q5_0.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -textOpenThinker-7B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:cc1ab8f6d634386cee2329807dee165f5740832f2c4d52c34d9d59f7479d36c5size 3015940704123version https://git-lfs.github.com/spec/v1oid sha256:fa9c9a5037c48139cd8081a28b0eb2423de8286fa38c4623c0e28ca9ba89464fsize 4088459872123version https://git-lfs.github.com/spec/v1oid sha256:e098d721c5f0de0ff1b557d088d76e3738647206c586204211a2f4d95b75fb98size 3808391776123version https://git-lfs.github.com/spec/v1oid sha256:9d347d9b51ea4f99ce961cf9bf6e65078d8ad9b42a44f6033b0c2967a445e567size 3492368992123version https://git-lfs.github.com/spec/v1oid sha256:d1528deafa7bc3e47749a5664c6ccec7c3818c3104808efb777f69dea5f7c94esize 4431391328123version https://git-lfs.github.com/spec/v1oid sha256:c39c1b84c2887e7ac373c56bec061771eb71cbb618b734d55774e7964a79a9cesize 4683074144123version https://git-lfs.github.com/spec/v1oid sha256:e92230f2721147ed14034935288851f3061d135e7a642fe2d70cff7a77a07085size 4457769568123version https://git-lfs.github.com/spec/v1oid sha256:cde351f8bbf9183444baa4f54cef91697edf4313aee4fbb2ed7d53d734bc5438size 5315177056123version https://git-lfs.github.com/spec/v1oid sha256:41f45adce0ae76ca8a5394d0e4d55b11f198674df560547052a98de972e6a995size 5444831840123version https://git-lfs.github.com/spec/v1oid sha256:0ba264b53e4e55fb3885b43ebbc8673a9697cc2adce009486b99ad7060e19182size 5315177056123version https://git-lfs.github.com/spec/v1oid sha256:87bfd5d7c11584ac86f4943108b90ee76e17797d06ffcb5aa6fc59e978162193size 6254199392123version https://git-lfs.github.com/spec/v1oid sha256:dea9d78ca4155f6b27b98fef629b0ef54e2cdfb24d0c8a7c9625939d4f2db330size 80985257921234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889---library_name: transformerslicense: apache-2.0base_model: open-thoughts/OpenThinker-7Btags:- llama-factory- full- generated_from_trainer- TensorBlock- GGUFdatasets:- open-thoughts/open-thoughts-114kmodel-index:- name: OpenThinker-7B results: []---
<div style="width: auto; margin-left: auto; margin-right: auto"><img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;"></div><div style="display: flex; justify-content: space-between; width: 100%;"> <div style="display: flex; flex-direction: column; align-items: flex-start;"> <p style="margin-top: 0.5em; margin-bottom: 0em;"> 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> </p> </div></div>
## open-thoughts/OpenThinker-7B - GGUF
This repo contains GGUF format model files for [open-thoughts/OpenThinker-7B](https://huggingface.co/open-thoughts/OpenThinker-7B).
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4658](https://github.com/ggerganov/llama.cpp/commit/855cd0734aca26c86cc23d94aefd34f934464ac9).
<div style="text-align: left; margin: 20px 0;"> <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;"> Run them on the TensorBlock client using your local machine ↗ </a></div>
## Prompt template
```<|im_start|>system{system_prompt}<|im_end|><|im_start|>user{prompt}<|im_end|><|im_start|>assistant```
## Model file specification
| Filename | Quant type | File Size | Description || -------- | ---------- | --------- | ----------- || [OpenThinker-7B-Q2_K.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q2_K.gguf) | Q2_K | 3.016 GB | smallest, significant quality loss - not recommended for most purposes || [OpenThinker-7B-Q3_K_S.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q3_K_S.gguf) | Q3_K_S | 3.492 GB | very small, high quality loss || [OpenThinker-7B-Q3_K_M.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q3_K_M.gguf) | Q3_K_M | 3.808 GB | very small, high quality loss || [OpenThinker-7B-Q3_K_L.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q3_K_L.gguf) | Q3_K_L | 4.088 GB | small, substantial quality loss || [OpenThinker-7B-Q4_0.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q4_0.gguf) | Q4_0 | 4.431 GB | legacy; small, very high quality loss - prefer using Q3_K_M || [OpenThinker-7B-Q4_K_S.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q4_K_S.gguf) | Q4_K_S | 4.458 GB | small, greater quality loss || [OpenThinker-7B-Q4_K_M.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q4_K_M.gguf) | Q4_K_M | 4.683 GB | medium, balanced quality - recommended || [OpenThinker-7B-Q5_0.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q5_0.gguf) | Q5_0 | 5.315 GB | legacy; medium, balanced quality - prefer using Q4_K_M || [OpenThinker-7B-Q5_K_S.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q5_K_S.gguf) | Q5_K_S | 5.315 GB | large, low quality loss - recommended || [OpenThinker-7B-Q5_K_M.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q5_K_M.gguf) | Q5_K_M | 5.445 GB | large, very low quality loss - recommended || [OpenThinker-7B-Q6_K.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q6_K.gguf) | Q6_K | 6.254 GB | very large, extremely low quality loss || [OpenThinker-7B-Q8_0.gguf](https://huggingface.co/tensorblock/OpenThinker-7B-GGUF/blob/main/OpenThinker-7B-Q8_0.gguf) | Q8_0 | 8.099 GB | very large, extremely low quality loss - not recommended |
## Downloading instruction
### Command line
Firstly, install Huggingface Client
```shellpip install -U "huggingface_hub[cli]"```
Then, downoad the individual model file the a local directory
```shellhuggingface-cli download tensorblock/OpenThinker-7B-GGUF --include "OpenThinker-7B-Q2_K.gguf" --local-dir MY_LOCAL_DIR```
If you wanna download multiple model files with a pattern (e.g., `*Q4_K*gguf`), you can try:
```shellhuggingface-cli download tensorblock/OpenThinker-7B-GGUF --local-dir MY_LOCAL_DIR --local-dir-use-symlinks False --include='*Q4_K*gguf'```.gitattributes+12
OpenThinker-7B-Q2_K.ggufAdded+3
OpenThinker-7B-Q3_K_L.ggufAdded+3
OpenThinker-7B-Q3_K_M.ggufAdded+3
OpenThinker-7B-Q3_K_S.ggufAdded+3
OpenThinker-7B-Q4_0.ggufAdded+3
OpenThinker-7B-Q4_K_M.ggufAdded+3
OpenThinker-7B-Q4_K_S.ggufAdded+3
OpenThinker-7B-Q5_0.ggufAdded+3
OpenThinker-7B-Q5_K_M.ggufAdded+3
OpenThinker-7B-Q5_K_S.ggufAdded+3
OpenThinker-7B-Q6_K.ggufAdded+3
OpenThinker-7B-Q8_0.ggufAdded+3
README.mdAdded+89