Instructions to use nex-agi/Nex-N2-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nex-agi/Nex-N2-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nex-agi/Nex-N2-mini") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("nex-agi/Nex-N2-mini") model = AutoModelForMultimodalLM.from_pretrained("nex-agi/Nex-N2-mini") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nex-agi/Nex-N2-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nex-agi/Nex-N2-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nex-agi/Nex-N2-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/nex-agi/Nex-N2-mini
- SGLang
How to use nex-agi/Nex-N2-mini 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 "nex-agi/Nex-N2-mini" \ --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": "nex-agi/Nex-N2-mini", "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 "nex-agi/Nex-N2-mini" \ --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": "nex-agi/Nex-N2-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use nex-agi/Nex-N2-mini with Docker Model Runner:
docker model run hf.co/nex-agi/Nex-N2-mini
is this better that Qwen 3.6 30b 3b ?
is this better that Qwen 3.6 30b 3b ?
Do you have the bench marks between the two of them ?
Thanks for the question.
We don’t have a direct benchmark against “Qwen 3.6 30B/3B” specifically, but we did compare Nex-N2-mini with Qwen3.6-35B-A3B. The results are roughly as follows:
| Benchmark | Nex-N2-mini | Qwen3.6-35B-A3B |
|---|---|---|
| WideSearch | 62.0 | 60.1 |
| TAU3 | 65.9 | 67.2 |
| SWE-Bench Pro | 50.2 | 49.5 |
| SWE-Bench Verified | 74.4 | 73.4 |
Overall, Nex-N2-mini is better on WideSearch and the SWE-Bench coding tasks, while Qwen3.6-35B-A3B is better on TAU3. Nex-N2-mini seems to have an advantage in coding/SWE tasks.
I found it way better for agentic tasks.
For usage, when you try to get one shot prompts out of it, the model really struggles and 3.6 slays it. For agentic workflows where it is performing a series of tasks etc, the model is better, particularly in step 3-4-5 but not coding as much as maintaining a focused process.
we hope your next mini version will be based on qwen3.6-35b-a3b , And please make a medium version using qwen3.5-122b-a10b
we hope your next mini version will be based on qwen3.6-35b-a3b , And please make a medium version using qwen3.5-122b-a10b
Yeah, I second that I look forward for one that uses qwen3.6-35b-a3b as base.