Instructions to use tensorblock/testmod-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/testmod-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/testmod-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/testmod-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/testmod-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/testmod-GGUF", filename="testmod-Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/testmod-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/testmod-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/testmod-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/testmod-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/testmod-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/testmod-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/testmod-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/testmod-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/testmod-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/testmod-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/testmod-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/testmod-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/testmod-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/testmod-GGUF:Q2_K
- SGLang
How to use tensorblock/testmod-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/testmod-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/testmod-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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/testmod-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/testmod-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/testmod-GGUF with Ollama:
ollama run hf.co/tensorblock/testmod-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/testmod-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/testmod-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/testmod-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/testmod-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/testmod-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/testmod-GGUF:Q2_K
- Lemonade
How to use tensorblock/testmod-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/testmod-GGUF:Q2_K
Run and chat with the model
lemonade run user.testmod-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- testmod-Q3_K_L.gguf +0 -3
- testmod-Q3_K_M.gguf +0 -3
- testmod-Q3_K_S.gguf +0 -3
- testmod-Q4_0.gguf +0 -3
- testmod-Q4_K_M.gguf +0 -3
- testmod-Q4_K_S.gguf +0 -3
- testmod-Q5_0.gguf +0 -3
- testmod-Q5_K_M.gguf +0 -3
- testmod-Q5_K_S.gguf +0 -3
- testmod-Q6_K.gguf +0 -3
- testmod-Q8_0.gguf +0 -3
testmod-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2d861e098114677c76820d36145ac8c10718a8069b1287cfc0a0140992afe556
|
| 3 |
-
size 102092640
|
|
|
|
|
|
|
|
|
|
|
|
testmod-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a5bc4973e6b06267f7073ca41767a34fce4c1fddd0c65f1cd98f54c53a21a000
|
| 3 |
-
size 97668960
|
|
|
|
|
|
|
|
|
|
|
|
testmod-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d5c7e76112fedf0afb34508bff7cd6a01223959f6a3b1ed4b4102673921a4071
|
| 3 |
-
size 90148704
|
|
|
|
|
|
|
|
|
|
|
|
testmod-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d8c4facd1fffc3bb45f2507854601fae75c5f6574a9178adf929935588eb9a18
|
| 3 |
-
size 106555296
|
|
|
|
|
|
|
|
|
|
|
|
testmod-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:42605368cc807607f116819f02cc2a1f513588029cbd222042dec6f83b85fc01
|
| 3 |
-
size 112859040
|
|
|
|
|
|
|
|
|
|
|
|
testmod-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6699dd84aafd322ed1414975ae3e3411e2ed0ae11190ece9320990998ba9a5c6
|
| 3 |
-
size 106850208
|
|
|
|
|
|
|
|
|
|
|
|
testmod-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:db7543504d9eab355498beb59ddf0a2fd71297530c9e41ca464d470da915c0f5
|
| 3 |
-
size 121996800
|
|
|
|
|
|
|
|
|
|
|
|
testmod-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:04e2d4e6ed6441d77455cc8666546f92604879f6251aed85eb9c358465cd972c
|
| 3 |
-
size 126696960
|
|
|
|
|
|
|
|
|
|
|
|
testmod-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:aff0fa723ef88e98391a8281e06503cf604dd6caf1121150ba7272997648e56e
|
| 3 |
-
size 121996800
|
|
|
|
|
|
|
|
|
|
|
|
testmod-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:60b964e37e98eafe03f0c241f4b04816ddd0fcee1515ca14ff84ba6c12181c2b
|
| 3 |
-
size 138403392
|
|
|
|
|
|
|
|
|
|
|
|
testmod-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8bc9894462bd95689b0a3179591227338c8fbaeda551efa7f6c60a405bfdfa3b
|
| 3 |
-
size 177669120
|
|
|
|
|
|
|
|
|
|
|
|