Instructions to use tensorblock/hkcode_solar_10.7b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/hkcode_solar_10.7b-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/hkcode_solar_10.7b-GGUF", device_map="auto")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/hkcode_solar_10.7b-GGUF", dtype="auto", device_map="auto") - llama-cpp-python
How to use tensorblock/hkcode_solar_10.7b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/hkcode_solar_10.7b-GGUF", filename="hkcode_solar_10.7b-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use tensorblock/hkcode_solar_10.7b-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/hkcode_solar_10.7b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/hkcode_solar_10.7b-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/hkcode_solar_10.7b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/hkcode_solar_10.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/hkcode_solar_10.7b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/hkcode_solar_10.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/hkcode_solar_10.7b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/hkcode_solar_10.7b-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/hkcode_solar_10.7b-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/hkcode_solar_10.7b-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/hkcode_solar_10.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/hkcode_solar_10.7b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/hkcode_solar_10.7b-GGUF:Q2_K
- SGLang
How to use tensorblock/hkcode_solar_10.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/hkcode_solar_10.7b-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/hkcode_solar_10.7b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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/hkcode_solar_10.7b-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/hkcode_solar_10.7b-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/hkcode_solar_10.7b-GGUF with Ollama:
ollama run hf.co/tensorblock/hkcode_solar_10.7b-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/hkcode_solar_10.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/hkcode_solar_10.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/hkcode_solar_10.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/hkcode_solar_10.7b-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/hkcode_solar_10.7b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/hkcode_solar_10.7b-GGUF:Q2_K
- Lemonade
How to use tensorblock/hkcode_solar_10.7b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/hkcode_solar_10.7b-GGUF:Q2_K
Run and chat with the model
lemonade run user.hkcode_solar_10.7b-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- hkcode_solar_10.7b-Q3_K_L.gguf +0 -3
- hkcode_solar_10.7b-Q3_K_M.gguf +0 -3
- hkcode_solar_10.7b-Q3_K_S.gguf +0 -3
- hkcode_solar_10.7b-Q4_0.gguf +0 -3
- hkcode_solar_10.7b-Q4_K_M.gguf +0 -3
- hkcode_solar_10.7b-Q4_K_S.gguf +0 -3
- hkcode_solar_10.7b-Q5_0.gguf +0 -3
- hkcode_solar_10.7b-Q5_K_M.gguf +0 -3
- hkcode_solar_10.7b-Q5_K_S.gguf +0 -3
- hkcode_solar_10.7b-Q6_K.gguf +0 -3
- hkcode_solar_10.7b-Q8_0.gguf +0 -3
hkcode_solar_10.7b-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8801431a1e553fd756b8b52c304d25335e784057a5fe68cb3d1613c185afc83a
|
| 3 |
-
size 5650750176
|
|
|
|
|
|
|
|
|
|
|
|
hkcode_solar_10.7b-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:839572f1b25c6d641dd16fb3c3e0ed9cdcd6575c8dba468af09fe7558299665b
|
| 3 |
-
size 5195668192
|
|
|
|
|
|
|
|
|
|
|
|
hkcode_solar_10.7b-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:52e7ffacfaaa83ea67f22846661b646e861a3c2e652516ad8dbe225eefb35947
|
| 3 |
-
size 4664564448
|
|
|
|
|
|
|
|
|
|
|
|
hkcode_solar_10.7b-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f97bbf63246e13bcbe2077c64a690d5f30de0ec4ef5b34ed4a4923fc42154f60
|
| 3 |
-
size 6072384224
|
|
|
|
|
|
|
|
|
|
|
|
hkcode_solar_10.7b-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fa3d0294b1b9f3888e9475dbb90f7d587ec18122c65c63f734ecf43edfdf4a0a
|
| 3 |
-
size 6461668064
|
|
|
|
|
|
|
|
|
|
|
|
hkcode_solar_10.7b-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d05012d52f4b6b965c650dba8b03046e0fdeb231945aa80d2cabd77ab5faa793
|
| 3 |
-
size 6118521568
|
|
|
|
|
|
|
|
|
|
|
|
hkcode_solar_10.7b-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:17c760caebe2d3da3e1aca860b805f8930b6ca8c995d3e22286eb3f1535c1edc
|
| 3 |
-
size 7397391072
|
|
|
|
|
|
|
|
|
|
|
|
hkcode_solar_10.7b-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d5b8472dc1cf76849910c8f7479ecbcf41d1c7083d9f2d56fe2bab0066b97527
|
| 3 |
-
size 7597931232
|
|
|
|
|
|
|
|
|
|
|
|
hkcode_solar_10.7b-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:0020a21a0b012112773fbebcc8176b3c6c296a03ec1ac17577617de8ae4ba64b
|
| 3 |
-
size 7397391072
|
|
|
|
|
|
|
|
|
|
|
|
hkcode_solar_10.7b-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:d9d1d430b4b2e795558999ae81cafc5281d75f5ee0b5f764c5a91db9405fa77e
|
| 3 |
-
size 8805210848
|
|
|
|
|
|
|
|
|
|
|
|
hkcode_solar_10.7b-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9b9b873c2dd9381afed4f9c9cef595ccb1ce46aa6bfa5b43661becc0e68985c7
|
| 3 |
-
size 11404155616
|
|
|
|
|
|
|
|
|
|
|
|