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
- 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 new
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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: other
|
| 3 |
-
library_name: transformers
|
| 4 |
-
license_name: deepseek
|
| 5 |
-
license_link: https://github.com/deepseek-ai/DeepSeek-Coder/blob/main/LICENSE-MODEL
|
| 6 |
-
pipeline_tag: text-generation
|
| 7 |
-
tags:
|
| 8 |
-
- TensorBlock
|
| 9 |
-
- GGUF
|
| 10 |
-
base_model: semcoder/semcoder_1030
|
| 11 |
-
---
|
| 12 |
|
| 13 |
<div style="width: auto; margin-left: auto; margin-right: auto">
|
| 14 |
<img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
|
@@ -27,12 +27,47 @@ This repo contains GGUF format model files for [semcoder/semcoder_1030](https://
|
|
| 27 |
|
| 28 |
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4242](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
</
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
## Prompt template
|
| 37 |
|
| 38 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
library_name: transformers
|
| 4 |
+
license_name: deepseek
|
| 5 |
+
license_link: https://github.com/deepseek-ai/DeepSeek-Coder/blob/main/LICENSE-MODEL
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- TensorBlock
|
| 9 |
+
- GGUF
|
| 10 |
+
base_model: semcoder/semcoder_1030
|
| 11 |
+
---
|
| 12 |
|
| 13 |
<div style="width: auto; margin-left: auto; margin-right: auto">
|
| 14 |
<img src="https://i.imgur.com/jC7kdl8.jpeg" alt="TensorBlock" style="width: 100%; min-width: 400px; display: block; margin: auto;">
|
|
|
|
| 27 |
|
| 28 |
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit b4242](https://github.com/ggerganov/llama.cpp/commit/a6744e43e80f4be6398fc7733a01642c846dce1d).
|
| 29 |
|
| 30 |
+
## Our projects
|
| 31 |
+
<table border="1" cellspacing="0" cellpadding="10">
|
| 32 |
+
<tr>
|
| 33 |
+
<th style="font-size: 25px;">Awesome MCP Servers</th>
|
| 34 |
+
<th style="font-size: 25px;">TensorBlock Studio</th>
|
| 35 |
+
</tr>
|
| 36 |
+
<tr>
|
| 37 |
+
<th><img src="https://imgur.com/2Xov7B7.jpeg" alt="Project A" width="450"/></th>
|
| 38 |
+
<th><img src="https://imgur.com/pJcmF5u.jpeg" alt="Project B" width="450"/></th>
|
| 39 |
+
</tr>
|
| 40 |
+
<tr>
|
| 41 |
+
<th>A comprehensive collection of Model Context Protocol (MCP) servers.</th>
|
| 42 |
+
<th>A lightweight, open, and extensible multi-LLM interaction studio.</th>
|
| 43 |
+
</tr>
|
| 44 |
+
<tr>
|
| 45 |
+
<th>
|
| 46 |
+
<a href="https://github.com/TensorBlock/awesome-mcp-servers" target="_blank" style="
|
| 47 |
+
display: inline-block;
|
| 48 |
+
padding: 8px 16px;
|
| 49 |
+
background-color: #FF7F50;
|
| 50 |
+
color: white;
|
| 51 |
+
text-decoration: none;
|
| 52 |
+
border-radius: 6px;
|
| 53 |
+
font-weight: bold;
|
| 54 |
+
font-family: sans-serif;
|
| 55 |
+
">👀 See what we built 👀</a>
|
| 56 |
+
</th>
|
| 57 |
+
<th>
|
| 58 |
+
<a href="https://github.com/TensorBlock/TensorBlock-Studio" target="_blank" style="
|
| 59 |
+
display: inline-block;
|
| 60 |
+
padding: 8px 16px;
|
| 61 |
+
background-color: #FF7F50;
|
| 62 |
+
color: white;
|
| 63 |
+
text-decoration: none;
|
| 64 |
+
border-radius: 6px;
|
| 65 |
+
font-weight: bold;
|
| 66 |
+
font-family: sans-serif;
|
| 67 |
+
">👀 See what we built 👀</a>
|
| 68 |
+
</th>
|
| 69 |
+
</tr>
|
| 70 |
+
</table>
|
| 71 |
## Prompt template
|
| 72 |
|
| 73 |
```
|