Instructions to use tensorblock/Ahma-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use tensorblock/Ahma-7B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/Ahma-7B-GGUF", filename="Ahma-7B-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/Ahma-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/Ahma-7B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/Ahma-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/Ahma-7B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/Ahma-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/Ahma-7B-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/Ahma-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/Ahma-7B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/Ahma-7B-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/Ahma-7B-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/Ahma-7B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/Ahma-7B-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/Ahma-7B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/Ahma-7B-GGUF:Q2_K
- Ollama
How to use tensorblock/Ahma-7B-GGUF with Ollama:
ollama run hf.co/tensorblock/Ahma-7B-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/Ahma-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/Ahma-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/Ahma-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/Ahma-7B-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/Ahma-7B-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/Ahma-7B-GGUF:Q2_K
- Lemonade
How to use tensorblock/Ahma-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/Ahma-7B-GGUF:Q2_K
Run and chat with the model
lemonade run user.Ahma-7B-GGUF-Q2_K
List all available models
lemonade list
Keep Q2_K/Q3_K_M gguf only
Browse files- Ahma-7B-Q3_K_L.gguf +0 -3
- Ahma-7B-Q3_K_S.gguf +0 -3
- Ahma-7B-Q4_0.gguf +0 -3
- Ahma-7B-Q4_K_M.gguf +0 -3
- Ahma-7B-Q4_K_S.gguf +0 -3
- Ahma-7B-Q5_0.gguf +0 -3
- Ahma-7B-Q5_K_M.gguf +0 -3
- Ahma-7B-Q5_K_S.gguf +0 -3
- Ahma-7B-Q6_K.gguf +0 -3
- Ahma-7B-Q8_0.gguf +0 -3
Ahma-7B-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e0bc7415de81361994923340a7990417d65beebb4ffd05235079c9ae31f20739
|
| 3 |
-
size 3763153664
|
|
|
|
|
|
|
|
|
|
|
|
Ahma-7B-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:7e785f22c063727b046f12ef583c79f813d650474eb5684e69d679c023347711
|
| 3 |
-
size 3114347264
|
|
|
|
|
|
|
|
|
|
|
|
Ahma-7B-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:17c6acb5ee871eb18748fca0d5c0ac660c8257c0f530c0fbd5c4bf0917aee4a4
|
| 3 |
-
size 4009396992
|
|
|
|
|
|
|
|
|
|
|
|
Ahma-7B-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2f9810ff749b1c6da573321ae82ace0d4b371aacbcdf5d5504a368bb35c6b19c
|
| 3 |
-
size 4264594176
|
|
|
|
|
|
|
|
|
|
|
|
Ahma-7B-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0a1c7b9505af82d83560df367d09649755dca2725359e1421182b0baa1e36a12
|
| 3 |
-
size 4040329984
|
|
|
|
|
|
|
|
|
|
|
|
Ahma-7B-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:02ca56d594850c1d08e8df166642081cf0ae128b791be60ee2c3d530b618df3b
|
| 3 |
-
size 4851796736
|
|
|
|
|
|
|
|
|
|
|
|
Ahma-7B-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e546dfbb2ea5aa3ab0d1f3d224625db93cf14f9cca4d8393f414155e3d0b098e
|
| 3 |
-
size 4983261952
|
|
|
|
|
|
|
|
|
|
|
|
Ahma-7B-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cea27056aea09143e1e1bcd60f3d88bbeeb1fe7cfc8473034b920e8a36299cdf
|
| 3 |
-
size 4851796736
|
|
|
|
|
|
|
|
|
|
|
|
Ahma-7B-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1923cfa4d0c1d95c91aecadb9fc67ff60b910e19b4655bee54bd528921f16800
|
| 3 |
-
size 5746846464
|
|
|
|
|
|
|
|
|
|
|
|
Ahma-7B-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:21d7d25bf539fb9840995e1c422168b49696a6f676cee6c7e13235e7604f5e4e
|
| 3 |
-
size 7442737920
|
|
|
|
|
|
|
|
|
|
|
|