Instructions to use tensorblock/base_7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/base_7B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/base_7B-GGUF", filename="base_7B-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use tensorblock/base_7B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/base_7B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/base_7B-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/base_7B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/base_7B-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/base_7B-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/base_7B-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/base_7B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/base_7B-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/base_7B-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/base_7B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/base_7B-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/base_7B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/base_7B-GGUF:Q2_K
- Ollama
How to use tensorblock/base_7B-GGUF with Ollama:
ollama run hf.co/tensorblock/base_7B-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/base_7B-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/base_7B-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/base_7B-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/base_7B-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/base_7B-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/base_7B-GGUF:Q2_K
- Lemonade
How to use tensorblock/base_7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/base_7B-GGUF:Q2_K
Run and chat with the model
lemonade run user.base_7B-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- base_7B-Q3_K_L.gguf +0 -3
- base_7B-Q3_K_M.gguf +0 -3
- base_7B-Q3_K_S.gguf +0 -3
- base_7B-Q4_0.gguf +0 -3
- base_7B-Q4_K_M.gguf +0 -3
- base_7B-Q4_K_S.gguf +0 -3
- base_7B-Q5_0.gguf +0 -3
- base_7B-Q5_K_M.gguf +0 -3
- base_7B-Q5_K_S.gguf +0 -3
- base_7B-Q6_K.gguf +0 -3
- base_7B-Q8_0.gguf +0 -3
base_7B-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cc649dfdc14ce70de01637cb77c196ec63711b1ed39cdecc7b5a26b97a27f4cb
|
| 3 |
-
size 3597111520
|
|
|
|
|
|
|
|
|
|
|
|
base_7B-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:05463765c573c81d9299637dde00160b56ba1b58534400363d9b28c4a2a9c33b
|
| 3 |
-
size 3298005216
|
|
|
|
|
|
|
|
|
|
|
|
base_7B-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0a3ed33467edd7ea6d6779019666deede2b852e82b71b1f1e6b1e1fe758476a4
|
| 3 |
-
size 2948305120
|
|
|
|
|
|
|
|
|
|
|
|
base_7B-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e5ee0194bf60f64f67baa89c217bd31012765c451da34d7b01fd75f91cb33f4e
|
| 3 |
-
size 3825807584
|
|
|
|
|
|
|
|
|
|
|
|
base_7B-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2edf51c7390e4a2b9b37149acdfea46e234f6fe7737c96d2a1b6f3f2d28b1e49
|
| 3 |
-
size 4081004768
|
|
|
|
|
|
|
|
|
|
|
|
base_7B-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4b082d2d0eeac24be242124aea43a3898ddb86e6bab28494993ac950c9472cf3
|
| 3 |
-
size 3856740576
|
|
|
|
|
|
|
|
|
|
|
|
base_7B-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8ffb86f1bd53a7abe37d06e9b7c971bcd50c2a6b163fdfe0b6b3800a9b5b79c8
|
| 3 |
-
size 4651692256
|
|
|
|
|
|
|
|
|
|
|
|
base_7B-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e13d730a04761c5be19037f88f9ce17bceae4d7d41a83b9b141076e452cdc7ae
|
| 3 |
-
size 4783157472
|
|
|
|
|
|
|
|
|
|
|
|
base_7B-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7dce66063379cecf66c06d8f8f0b75cdf203b42b3412cf1c29a9087507ffc692
|
| 3 |
-
size 4651692256
|
|
|
|
|
|
|
|
|
|
|
|
base_7B-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:64c19ed7a757b36cae5e1069fe38956bc1913fd53f44c60cfdd1067ca63a8a1c
|
| 3 |
-
size 5529194720
|
|
|
|
|
|
|
|
|
|
|
|
base_7B-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d712b18fa93560316e91c8dd75c3a9b8ec60d6b749cd5311d6c7963c6b4267d7
|
| 3 |
-
size 7161090272
|
|
|
|
|
|
|
|
|
|
|
|