Instructions to use Anoopsingh53/nexai-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Anoopsingh53/nexai-v1 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 Anoopsingh53/nexai-v1:Q4_K_M # Run inference directly in the terminal: llama cli -hf Anoopsingh53/nexai-v1:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Anoopsingh53/nexai-v1:Q4_K_M # Run inference directly in the terminal: llama cli -hf Anoopsingh53/nexai-v1:Q4_K_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 Anoopsingh53/nexai-v1:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Anoopsingh53/nexai-v1:Q4_K_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 Anoopsingh53/nexai-v1:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Anoopsingh53/nexai-v1:Q4_K_M
Use Docker
docker model run hf.co/Anoopsingh53/nexai-v1:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Anoopsingh53/nexai-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Anoopsingh53/nexai-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Anoopsingh53/nexai-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Anoopsingh53/nexai-v1:Q4_K_M
- Ollama
How to use Anoopsingh53/nexai-v1 with Ollama:
ollama run hf.co/Anoopsingh53/nexai-v1:Q4_K_M
- Unsloth Studio
How to use Anoopsingh53/nexai-v1 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 Anoopsingh53/nexai-v1 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 Anoopsingh53/nexai-v1 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Anoopsingh53/nexai-v1 to start chatting
- Pi
How to use Anoopsingh53/nexai-v1 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Anoopsingh53/nexai-v1:Q4_K_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": "Anoopsingh53/nexai-v1:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Anoopsingh53/nexai-v1 with Docker Model Runner:
docker model run hf.co/Anoopsingh53/nexai-v1:Q4_K_M
- Lemonade
How to use Anoopsingh53/nexai-v1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Anoopsingh53/nexai-v1:Q4_K_M
Run and chat with the model
lemonade run user.nexai-v1-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Anoopsingh53/nexai-v1 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Anoopsingh53/nexai-v1:Q4_K_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 Anoopsingh53/nexai-v1:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Anoopsingh53/nexai-v1 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Anoopsingh53/nexai-v1:Q4_K_M
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 "Anoopsingh53/nexai-v1:Q4_K_M" \ --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"
NexAI-v1
A locally-deployable, CPU-optimized instruction-following language model for software development assistance
Developed by Anoop Singh, founder of NextMatrix
Table of Contents
- Model Overview
- Model Details
- Intended Use
- How to Get Started
- Training Details
- Evaluation and Known Limitations
- Technical Specifications
- License
- Citation
Model Overview
NexAI-v1 is a 7-billion-parameter causal language model fine-tuned for coding assistance and instruction-following, built on top of Qwen2.5-7B-Instruct using QLoRA and distributed as a quantized GGUF artifact for CPU inference.
The model targets a specific deployment gap: most capable open-weight coding assistants assume GPU access at inference time. NexAI-v1 is packaged specifically to run on consumer CPU hardware at usable speeds via llama.cpp and llama-cpp-python, making it suitable for local, offline, or privacy-sensitive development environments where sending code to a third-party API is not an option.
Model Details
| Developed by | Anoop Singh, founder of NextMatrix |
| Model type | Decoder-only causal language model |
| Base model | Qwen/Qwen2.5-7B-Instruct |
| Fine-tuning method | QLoRA (4-bit NF4 base, LoRA adapters merged into full-precision weights) |
| Parameters | 7.61B |
| Distributed format | GGUF |
| Quantization | Q4_K_M (~4.9 bits per weight) |
| Artifact size | ~4.5 GB |
| Context length | 32,768 tokens (inherited from base model) |
| Languages | English, Hindi / Hinglish |
| License | Apache 2.0 |
Intended Use
In scope:
- Local, offline coding assistance and code explanation
- Retrieval-augmented generation (RAG) workflows where the model is given retrieved context and asked to answer grounded in that context
- Prototyping and evaluation of small, CPU-deployable instruction-following models
- Educational use: understanding QLoRA fine-tuning and GGUF deployment pipelines
Out of scope:
- Medical, legal, or financial advice
- Any application requiring guaranteed factual accuracy without a human review step
- High-throughput production serving (this build is optimized for local single-user CPU inference, not scaled deployment)
How to Get Started
Python (llama-cpp-python)
pip install llama-cpp-python
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="Anoopsingh53/nexai-v1",
filename="nexai-v1-Q4_K_M.gguf",
n_ctx=4096,
n_threads=4,
n_gpu_layers=0, # CPU-only inference
verbose=False,
)
response = llm.create_chat_completion(
messages=[
{"role": "system", "content": "You are NexAI, a helpful coding assistant."},
{"role": "user", "content": "Write a Python function to check if a number is prime."},
],
max_tokens=512,
)
print(response["choices"][0]["message"]["content"])
llama.cpp CLI
./llama-cli \
-m nexai-v1-Q4_K_M.gguf \
-p "<|im_start|>system\nYou are NexAI, a helpful assistant.<|im_end|>\n<|im_start|>user\nHello!<|im_end|>\n<|im_start|>assistant\n" \
-n 256 \
-c 4096
Training Details
| Method | QLoRA: 4-bit NF4 quantized base model, LoRA adapters trained then merged into full fp16 weights |
| Optimizer | AdamW, 8-bit (paged_adamw_8bit) |
| Learning rate | 2e-4 |
| LoRA rank / alpha / dropout | r=16 / alpha=32 / dropout=0.05 |
| LoRA target modules | q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj |
| Hardware | Single NVIDIA Tesla T4 (Kaggle) |
Data status: the current release was fine-tuned on a small demonstration dataset used to validate the training-to-deployment pipeline end-to-end. It should be treated as an early checkpoint rather than a model tuned on a large, diverse instruction corpus. A larger and more diverse fine-tuning dataset is planned for a future release; this section will be updated with dataset size and composition at that time.
Evaluation and Known Limitations
No formal benchmark evaluation (e.g. HumanEval, MBPP, MT-Bench) has been run on this checkpoint yet. Until benchmark results are published here, treat any quality claims about this specific fine-tune as unverified โ the underlying Qwen2.5-7B-Instruct base model's published benchmarks do not automatically transfer to this fine-tune.
Known limitations:
- Can produce incorrect or outdated information, particularly outside its training distribution
- Generated code should be reviewed and tested before use, like any LLM output
- Quantization (Q4_K_M) trades a small amount of accuracy for size and speed relative to the full-precision merged model
- Not evaluated for safety-critical or adversarial-input robustness
Technical Specifications
| Architecture | Qwen2.5 dense transformer |
| Tokenizer | Qwen2.5 tokenizer (BPE) |
| Inference format | GGUF, compatible with llama.cpp, llama-cpp-python, LM Studio, Ollama (via GGUF import), and other GGUF-compatible runtimes |
| Minimum recommended RAM | 8 GB system RAM for comfortable CPU inference |
License
Released under the Apache 2.0 License. The Qwen2.5 base model weights remain subject to Alibaba's original license terms; see the base model card for details.
Citation
If you reference this model, please cite:
@misc{nexai-v1,
author = {Singh, Anoop},
title = {NexAI-v1: A CPU-Optimized Instruction-Following Model},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/Anoopsingh53/nexai-v1}}
}
Author: Anoop Singh โ NextMatrix Base model: Qwen/Qwen2.5-7B-Instruct
- Downloads last month
- 60
4-bit