Instructions to use paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF", filename="IQ1_M/Nex-397B-A17B-IQ1_M-00001-of-00005.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use paragon-of-brah/Nex-N2-Pro-397B-A17B-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 paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M # Run inference directly in the terminal: llama cli -hf paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M # Run inference directly in the terminal: llama cli -hf paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
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 paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M # Run inference directly in the terminal: ./llama-cli -hf paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
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 paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
Use Docker
docker model run hf.co/paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
- LM Studio
- Jan
- vLLM
How to use paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "paragon-of-brah/Nex-N2-Pro-397B-A17B-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": "paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
- Ollama
How to use paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF with Ollama:
ollama run hf.co/paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
- Unsloth Studio
How to use paragon-of-brah/Nex-N2-Pro-397B-A17B-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 paragon-of-brah/Nex-N2-Pro-397B-A17B-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 paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF to start chatting
- Pi
How to use paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
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": "paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use paragon-of-brah/Nex-N2-Pro-397B-A17B-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 paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
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 paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
Run Hermes
hermes
- Atomic Chat new
- Docker Model Runner
How to use paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF with Docker Model Runner:
docker model run hf.co/paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
- Lemonade
How to use paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull paragon-of-brah/Nex-N2-Pro-397B-A17B-GGUF:IQ1_M
Run and chat with the model
lemonade run user.Nex-N2-Pro-397B-A17B-GGUF-IQ1_M
List all available models
lemonade list
Help a newbie understand - which version for 2 x RTX 6000 Pro
My employer recently bought a 2 x RTX 6000 Pro machine that I have access to at night - what version of this should i pick? It mentions both VRAM and system RAM - we "only" have 96 GB of system RAM available for example.
If you're talking about RTX 6000 Pro blackwell, with 96 GB of VRAM each, plus 96GB of RAM, 288GB total, then you will be able to run IQ5_KS with extreme ease and at very high speed on ik_llama https://github.com/ikawrakow/ik_llama.cpp since you have my same amount of memory after all (256gb ram + 32gb vram).
With 23.5 GB in VRAM and 214 GB in RAM I get around 15 t/s, if you keep say 173.5GB in VRAM and 64 in RAM you probably get three times the TG.
Basically, you can spread weights among memory however you want using regex (from memory):
-ngl 100
-ot "blk\.(?:[0-9]|[1][0-9])\.ffn.*_exps.*=CPU"
-ot "blk\.(?:[2-3][0-9])\.ffn.*_exps.*=CUDA0"
-ot "blk\.(?:[4-5][0-9])\.ffn.*_exps.*=CUDA1"
This puts all layers (from 0 to 100, but there's only 60 so all of them, -ngl 100) on GPU0, but then the -ot (override tensor) commands forces moe layers from 0 to 19 to CPU, from 20 to 39 to GPU0, from 40 to 59 to GPU1. Adjust however you want.
Also there are many optimizations regarding split mode, to compute tokens using both GPUs in parallel and increase TG, but that's more advanced and you can figure that out later. Unfortunately I don't have dual GPU setups so I cannot help you too much.
Thank you so much, I'll see if I can figure that out!