Instructions to use tensorblock/semcoder_1030-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/semcoder_1030-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/semcoder_1030-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/semcoder_1030-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/semcoder_1030-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/semcoder_1030-GGUF", filename="semcoder_1030-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/semcoder_1030-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/semcoder_1030-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/semcoder_1030-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/semcoder_1030-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/semcoder_1030-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/semcoder_1030-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/semcoder_1030-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/semcoder_1030-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/semcoder_1030-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/semcoder_1030-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/semcoder_1030-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/semcoder_1030-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/semcoder_1030-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/semcoder_1030-GGUF:Q2_K
- SGLang
How to use tensorblock/semcoder_1030-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/semcoder_1030-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/semcoder_1030-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/semcoder_1030-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/semcoder_1030-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/semcoder_1030-GGUF with Ollama:
ollama run hf.co/tensorblock/semcoder_1030-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/semcoder_1030-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/semcoder_1030-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/semcoder_1030-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/semcoder_1030-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/semcoder_1030-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/semcoder_1030-GGUF:Q2_K
- Lemonade
How to use tensorblock/semcoder_1030-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/semcoder_1030-GGUF:Q2_K
Run and chat with the model
lemonade run user.semcoder_1030-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- semcoder_1030-Q3_K_L.gguf +0 -3
- semcoder_1030-Q3_K_M.gguf +0 -3
- semcoder_1030-Q3_K_S.gguf +0 -3
- semcoder_1030-Q4_0.gguf +0 -3
- semcoder_1030-Q4_K_M.gguf +0 -3
- semcoder_1030-Q4_K_S.gguf +0 -3
- semcoder_1030-Q5_0.gguf +0 -3
- semcoder_1030-Q5_K_M.gguf +0 -3
- semcoder_1030-Q5_K_S.gguf +0 -3
- semcoder_1030-Q6_K.gguf +0 -3
- semcoder_1030-Q8_0.gguf +0 -3
semcoder_1030-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f56147b738368d2e07fe52609f81613680a01fbc6746303a75cd51f54434c332
|
| 3 |
-
size 3598855200
|
|
|
|
|
|
|
|
|
|
|
|
semcoder_1030-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e4be9445690d880746d855916a991923b705f01c5b00ada55013576db598cb66
|
| 3 |
-
size 3299748896
|
|
|
|
|
|
|
|
|
|
|
|
semcoder_1030-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:98729b2ec40af1a2673a223293858b13c8b65a1738a5a8c35433b96827bcdcf9
|
| 3 |
-
size 2950048800
|
|
|
|
|
|
|
|
|
|
|
|
semcoder_1030-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ac32b03e975111bc4a94d6e614abebfb3cc7b44ca8d5336d763ccc1054e29dba
|
| 3 |
-
size 3827690528
|
|
|
|
|
|
|
|
|
|
|
|
semcoder_1030-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:6305fdf1c4a24ffd90392c0e28f05b7a838093afdc9f7f22d071f4f0ef638ae7
|
| 3 |
-
size 4082887712
|
|
|
|
|
|
|
|
|
|
|
|
semcoder_1030-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b5bcc3da8fa8ea482f1cf4180faee17b84281342ee675a97bba038e1ba522732
|
| 3 |
-
size 3858623520
|
|
|
|
|
|
|
|
|
|
|
|
semcoder_1030-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:a0ac2dd711fa64578bfe5c70995e48a9cac06c3b8a2985b90a257de08d6ef8db
|
| 3 |
-
size 4653706272
|
|
|
|
|
|
|
|
|
|
|
|
semcoder_1030-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8da676950516478c5b10ec3115b45eaf08e332c1f6128b889ed35febfff550d8
|
| 3 |
-
size 4785171488
|
|
|
|
|
|
|
|
|
|
|
|
semcoder_1030-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b9a297644e5934b2b25b9c17983688944f050d3ad479edee81bd0ac0b0c06d75
|
| 3 |
-
size 4653706272
|
|
|
|
|
|
|
|
|
|
|
|
semcoder_1030-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:53d456d4d8ec9b784f9c1b995dac8ddf01388c812eae152a949accb2579deb6b
|
| 3 |
-
size 5531348000
|
|
|
|
|
|
|
|
|
|
|
|
semcoder_1030-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e3a0437c8efeda2829c0659a05cd99bbe5a2fa3544820269bb59c36201e56ffd
|
| 3 |
-
size 7163751456
|
|
|
|
|
|
|
|
|
|
|
|