Instructions to use tensorblock/CodeCalc-Mistral-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/CodeCalc-Mistral-7B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/CodeCalc-Mistral-7B-GGUF")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/CodeCalc-Mistral-7B-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/CodeCalc-Mistral-7B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/CodeCalc-Mistral-7B-GGUF", filename="CodeCalc-Mistral-7B-Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use tensorblock/CodeCalc-Mistral-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/CodeCalc-Mistral-7B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/CodeCalc-Mistral-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/CodeCalc-Mistral-7B-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/CodeCalc-Mistral-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/CodeCalc-Mistral-7B-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/CodeCalc-Mistral-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/CodeCalc-Mistral-7B-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/CodeCalc-Mistral-7B-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/CodeCalc-Mistral-7B-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/CodeCalc-Mistral-7B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/CodeCalc-Mistral-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/CodeCalc-Mistral-7B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tensorblock/CodeCalc-Mistral-7B-GGUF:Q2_K
- SGLang
How to use tensorblock/CodeCalc-Mistral-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/CodeCalc-Mistral-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/CodeCalc-Mistral-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/CodeCalc-Mistral-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/CodeCalc-Mistral-7B-GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use tensorblock/CodeCalc-Mistral-7B-GGUF with Ollama:
ollama run hf.co/tensorblock/CodeCalc-Mistral-7B-GGUF:Q2_K
- Unsloth Studio new
How to use tensorblock/CodeCalc-Mistral-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/CodeCalc-Mistral-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/CodeCalc-Mistral-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/CodeCalc-Mistral-7B-GGUF to start chatting
- Docker Model Runner
How to use tensorblock/CodeCalc-Mistral-7B-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/CodeCalc-Mistral-7B-GGUF:Q2_K
- Lemonade
How to use tensorblock/CodeCalc-Mistral-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/CodeCalc-Mistral-7B-GGUF:Q2_K
Run and chat with the model
lemonade run user.CodeCalc-Mistral-7B-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- CodeCalc-Mistral-7B-Q3_K_L.gguf +0 -3
- CodeCalc-Mistral-7B-Q3_K_M.gguf +0 -3
- CodeCalc-Mistral-7B-Q3_K_S.gguf +0 -3
- CodeCalc-Mistral-7B-Q4_0.gguf +0 -3
- CodeCalc-Mistral-7B-Q4_K_M.gguf +0 -3
- CodeCalc-Mistral-7B-Q4_K_S.gguf +0 -3
- CodeCalc-Mistral-7B-Q5_0.gguf +0 -3
- CodeCalc-Mistral-7B-Q5_K_M.gguf +0 -3
- CodeCalc-Mistral-7B-Q5_K_S.gguf +0 -3
- CodeCalc-Mistral-7B-Q6_K.gguf +0 -3
- CodeCalc-Mistral-7B-Q8_0.gguf +0 -3
CodeCalc-Mistral-7B-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:454b376b09416a32fc1130579f94e77398db30dd0fe8bf13a5ce19631b5790d8
|
| 3 |
-
size 3822025472
|
|
|
|
|
|
|
|
|
|
|
|
CodeCalc-Mistral-7B-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2c381495e51a3a076505f6ab4626b94c0ac338ef6096b1536ae748bde56c0f07
|
| 3 |
-
size 3518987008
|
|
|
|
|
|
|
|
|
|
|
|
CodeCalc-Mistral-7B-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3518d675f56ab8b26b5dfaa6e4d16c88da3f8274afc0bcbd55162595de570052
|
| 3 |
-
size 3164568320
|
|
|
|
|
|
|
|
|
|
|
|
CodeCalc-Mistral-7B-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1182c272931687290f3055608a1d98aba8e6cef338ee5b8be75e9ccfefd069e0
|
| 3 |
-
size 4108917504
|
|
|
|
|
|
|
|
|
|
|
|
CodeCalc-Mistral-7B-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8d59b1087cb4f7a912408f1afa02bcbbdc56abf5c49a8931e00dbc79668e5781
|
| 3 |
-
size 4368440064
|
|
|
|
|
|
|
|
|
|
|
|
CodeCalc-Mistral-7B-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9cd080451cb9e2890f6b2fe7b3f191903b937cdfe0ce5b36f5277fc50b67077b
|
| 3 |
-
size 4140374784
|
|
|
|
|
|
|
|
|
|
|
|
CodeCalc-Mistral-7B-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:3f5313b85159223337f2cfb5f33635b3e25625314b80ce1cbeab04d2e280cf2e
|
| 3 |
-
size 4997716736
|
|
|
|
|
|
|
|
|
|
|
|
CodeCalc-Mistral-7B-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:b1c3a2807ae38501bedcab97ecdab262830dcf11796bd5f29656c126fe8642d3
|
| 3 |
-
size 5131410176
|
|
|
|
|
|
|
|
|
|
|
|
CodeCalc-Mistral-7B-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:43bf892e30b0cc09851e8792b3c09340f60eb3d80520ed6f64f92f32b51a2795
|
| 3 |
-
size 4997716736
|
|
|
|
|
|
|
|
|
|
|
|
CodeCalc-Mistral-7B-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cdb17380ce77af22b3cf2e01c4f5119f0719c7b4472a44779d4f0c91b315abd3
|
| 3 |
-
size 5942065920
|
|
|
|
|
|
|
|
|
|
|
|
CodeCalc-Mistral-7B-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:f2a75c202703996661e354f59403074484b90d442d733025ab93e93384744cdc
|
| 3 |
-
size 7695858432
|
|
|
|
|
|
|
|
|
|
|
|