Text Generation
MLX
Safetensors
English
nemotron_h
nemotron
mamba
mamba2
mixture-of-experts
6bit
quantized
apple-silicon
conversational
reasoning
lm-studio
custom_code
6-bit
Instructions to use FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit"
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 FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit"
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 "FaisalFehad/Nemotron-3-Super-120B-A12B-MLX-6bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
| from vllm.reasoning.abs_reasoning_parsers import ReasoningParserManager | |
| from vllm.reasoning.deepseek_r1_reasoning_parser import DeepSeekR1ReasoningParser | |
| class SuperV3ReasoningParser(DeepSeekR1ReasoningParser): | |
| def extract_reasoning(self, model_output, request): | |
| reasoning_content, final_content = super().extract_reasoning( | |
| model_output, request | |
| ) | |
| if ( | |
| hasattr(request, "chat_template_kwargs") | |
| and request.chat_template_kwargs | |
| and ( | |
| request.chat_template_kwargs.get("enable_thinking") is False | |
| or request.chat_template_kwargs.get("force_nonempty_content") is True | |
| ) | |
| and final_content is None | |
| ): | |
| """ | |
| The original `deepseek_r1` reasoning parser this inherits from will automatically put everything in the reasoning content when it cannot parse out reasoning. This was fine for the DeepSeek R1 model that was not intended to be used without reasoning. | |
| 1. Since the Nemotron 3 Nano and Super both have thinking off modes modulated by "enable_thinking=false" in the chat template kwargs, this change instead which will properly place the content in cases where there is no thinking enabled via config. | |
| 2. There are rare cases where the model will output only reasoning without an end-think token `</think>` (e.g. reasoning exceeds max length), which results in empty content returned. End users may want to unilaterally avoid such cases and always have a content response even if the model does not finish its reasoning. | |
| """ | |
| # Put all nonempty content into the content, rather than return content | |
| reasoning_content, final_content = None, reasoning_content | |
| return reasoning_content, final_content |