Instructions to use tensorblock/Magicoder-DS-6.7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/Magicoder-DS-6.7B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/Magicoder-DS-6.7B-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/Magicoder-DS-6.7B-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/Magicoder-DS-6.7B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/Magicoder-DS-6.7B-GGUF", filename="Magicoder-DS-6.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/Magicoder-DS-6.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/Magicoder-DS-6.7B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/Magicoder-DS-6.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/Magicoder-DS-6.7B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/Magicoder-DS-6.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/Magicoder-DS-6.7B-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/Magicoder-DS-6.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/Magicoder-DS-6.7B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/Magicoder-DS-6.7B-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/Magicoder-DS-6.7B-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/Magicoder-DS-6.7B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/Magicoder-DS-6.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/Magicoder-DS-6.7B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/Magicoder-DS-6.7B-GGUF:Q2_K
- SGLang
How to use tensorblock/Magicoder-DS-6.7B-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/Magicoder-DS-6.7B-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/Magicoder-DS-6.7B-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/Magicoder-DS-6.7B-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/Magicoder-DS-6.7B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/Magicoder-DS-6.7B-GGUF with Ollama:
ollama run hf.co/tensorblock/Magicoder-DS-6.7B-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/Magicoder-DS-6.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/Magicoder-DS-6.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/Magicoder-DS-6.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/Magicoder-DS-6.7B-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/Magicoder-DS-6.7B-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/Magicoder-DS-6.7B-GGUF:Q2_K
- Lemonade
How to use tensorblock/Magicoder-DS-6.7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/Magicoder-DS-6.7B-GGUF:Q2_K
Run and chat with the model
lemonade run user.Magicoder-DS-6.7B-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- Magicoder-DS-6.7B-Q3_K_L.gguf +0 -3
- Magicoder-DS-6.7B-Q3_K_M.gguf +0 -3
- Magicoder-DS-6.7B-Q3_K_S.gguf +0 -3
- Magicoder-DS-6.7B-Q4_0.gguf +0 -3
- Magicoder-DS-6.7B-Q4_K_M.gguf +0 -3
- Magicoder-DS-6.7B-Q4_K_S.gguf +0 -3
- Magicoder-DS-6.7B-Q5_0.gguf +0 -3
- Magicoder-DS-6.7B-Q5_K_M.gguf +0 -3
- Magicoder-DS-6.7B-Q5_K_S.gguf +0 -3
- Magicoder-DS-6.7B-Q6_K.gguf +0 -3
- Magicoder-DS-6.7B-Q8_0.gguf +0 -3
Magicoder-DS-6.7B-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d0d9ee2f34d6af0f94c7a29d61cc277d47ffeb879fc8d1c1cf272b4c69aae414
|
| 3 |
-
size 3598429600
|
|
|
|
|
|
|
|
|
|
|
|
Magicoder-DS-6.7B-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fa8d5041ed5eb4a04da4e6575f81f1d32bdf2d1189f4be984bc3c5e4843c245e
|
| 3 |
-
size 3299323296
|
|
|
|
|
|
|
|
|
|
|
|
Magicoder-DS-6.7B-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f7dd2a3776f2ded1c5d5418046783a63ebebf75c7dbf3e2049041c63e29f408c
|
| 3 |
-
size 2949623200
|
|
|
|
|
|
|
|
|
|
|
|
Magicoder-DS-6.7B-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a968dcb6aa0778a9fb2d3f333a6cdbdab15f383f296eb75b329734a23c12bed7
|
| 3 |
-
size 3827264928
|
|
|
|
|
|
|
|
|
|
|
|
Magicoder-DS-6.7B-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ef0ec689444dcf623bbefa88010629b7ad7652f39539236bc844735afb5307e6
|
| 3 |
-
size 4082462112
|
|
|
|
|
|
|
|
|
|
|
|
Magicoder-DS-6.7B-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a9ff40346b0444eb565f239d179fa904b3e63e7e1d83efcb28260730fd2d6ea3
|
| 3 |
-
size 3858197920
|
|
|
|
|
|
|
|
|
|
|
|
Magicoder-DS-6.7B-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:013d712e74f4a45e50607b6fc9453a5d9a182b96e40ea3d6423e3134716a6186
|
| 3 |
-
size 4653280672
|
|
|
|
|
|
|
|
|
|
|
|
Magicoder-DS-6.7B-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:697a9f10715d007077372ebfc23f8a9a685bbae041eb10c640d8a80eb91683fa
|
| 3 |
-
size 4784745888
|
|
|
|
|
|
|
|
|
|
|
|
Magicoder-DS-6.7B-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:822c969b0de12ad1f50e6efe8e9ec39080483f89c8f83626d69de0ee0c675d73
|
| 3 |
-
size 4653280672
|
|
|
|
|
|
|
|
|
|
|
|
Magicoder-DS-6.7B-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5898c7c9d7997d69f97c5822c173243c451ecb01afa6e98ca5543a43e5f9a453
|
| 3 |
-
size 5530922400
|
|
|
|
|
|
|
|
|
|
|
|
Magicoder-DS-6.7B-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:67233c69f7bbfee76c2ff3c750d1323a2e472c142cd7173f5f78917237cfe161
|
| 3 |
-
size 7163325856
|
|
|
|
|
|
|
|
|
|
|
|