Instructions to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF", filename="Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K
- SGLang
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF with Ollama:
ollama run hf.co/tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-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/nvidia_Nemotron-Mini-4B-Instruct-GGUF to start chatting
- Pi
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K
- Lemonade
How to use tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/nvidia_Nemotron-Mini-4B-Instruct-GGUF:Q2_K
Run and chat with the model
lemonade run user.nvidia_Nemotron-Mini-4B-Instruct-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- Nemotron-Mini-4B-Instruct-Q3_K_L.gguf +0 -3
- Nemotron-Mini-4B-Instruct-Q3_K_M.gguf +0 -3
- Nemotron-Mini-4B-Instruct-Q3_K_S.gguf +0 -3
- Nemotron-Mini-4B-Instruct-Q4_0.gguf +0 -3
- Nemotron-Mini-4B-Instruct-Q4_K_M.gguf +0 -3
- Nemotron-Mini-4B-Instruct-Q4_K_S.gguf +0 -3
- Nemotron-Mini-4B-Instruct-Q5_0.gguf +0 -3
- Nemotron-Mini-4B-Instruct-Q5_K_M.gguf +0 -3
- Nemotron-Mini-4B-Instruct-Q5_K_S.gguf +0 -3
- Nemotron-Mini-4B-Instruct-Q6_K.gguf +0 -3
- Nemotron-Mini-4B-Instruct-Q8_0.gguf +0 -3
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e23ab1c6101753a373501143602a1451d27fee4adcaf90f9dbfc7968949fbf0c
|
| 3 |
-
size 2452953760
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fce3ae3d0460dfb877826722173251a0a7ce5694af455b91ecb9facf2517e5d4
|
| 3 |
-
size 2297240224
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:1ea3f049aea16041b5ced94d34e673812c78ee9266410c8871bc45958c6cae41
|
| 3 |
-
size 2115574432
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:ea4664aca5bc15abb1b8d361e36826b4e5b471ca531708088d4a23878995d255
|
| 3 |
-
size 2567625376
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:725856aa1e3f0a1381dc7416e2aaa88fb12221f14d54a529f835b779f4067311
|
| 3 |
-
size 2697386656
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:fd00fb19c250c98cd40210af6603d60ba5b5e7d612c31501e0e0802beb575e99
|
| 3 |
-
size 2583354016
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:e6b8c05832348dea2620aeaaa93bfd90e637b0122f27c7e8a834cbe79640c31a
|
| 3 |
-
size 2993085088
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:8526c42527567d1ae1b82b3ffb4a6908774a3e3701bde68d0bec7e603aaa7090
|
| 3 |
-
size 3059931808
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:c2df7ce1e20886eac8a103ad0ab6df09478787e71e553ec9761a49962e85d7c7
|
| 3 |
-
size 2993085088
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:2e6a922e2e89510ab82bcdb85cde5929e5db245a3eceb09d953dbfd031c83e6a
|
| 3 |
-
size 3445136032
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:9474cff58734f261077bca9720e4251b13a10ccc2f13efefee44182c8d9dd75a
|
| 3 |
-
size 4459928224
|
|
|
|
|
|
|
|
|
|
|
|