Text Generation
Transformers
Safetensors
English
qwen2
1.5b
coder
domain-specialist
fableforge
nexus
no-refusals
uncensored
conversational
text-generation-inference
Run this model with HF Jobs
Run fableforge-ai/NEXUS-Coder on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/fableforge-ai/NEXUS-Coder. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/fableforge-ai/NEXUS-Coder on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/fableforge-ai/NEXUS-Coder. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/fableforge-ai/NEXUS-Coder. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use fableforge-ai/NEXUS-Coder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fableforge-ai/NEXUS-Coder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fableforge-ai/NEXUS-Coder") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fableforge-ai/NEXUS-Coder") model = AutoModelForCausalLM.from_pretrained("fableforge-ai/NEXUS-Coder", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use fableforge-ai/NEXUS-Coder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fableforge-ai/NEXUS-Coder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fableforge-ai/NEXUS-Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/fableforge-ai/NEXUS-Coder
- SGLang
How to use fableforge-ai/NEXUS-Coder 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 "fableforge-ai/NEXUS-Coder" \ --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": "fableforge-ai/NEXUS-Coder", "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 "fableforge-ai/NEXUS-Coder" \ --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": "fableforge-ai/NEXUS-Coder", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use fableforge-ai/NEXUS-Coder with Docker Model Runner:
docker model run hf.co/fableforge-ai/NEXUS-Coder
Viral card: model-tree metadata, quant table, Ollama-from-source, demo funnel
Browse files1 unmodified line23456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869701 unmodified linelicense: apache-2.0language:- enpipeline_tag: text-generationlibrary_name: transformerstags:- fableforge- nexus- domain-specialist- uncensored- qwen2.5- 1.5b- merged- lora- coderbase_model: Qwen/Qwen2.5-1.5B-Instructbase_model_relation: finetunewidget:- text: "Write a Python function to merge two sorted lists"example_title: "Coder"---# NEXUS-CoderSpecialized code generation, debugging, code review, multi-language software architecture model β fine-tuned for expert performance.## DescriptionPart of the **NEXUS** model series by FableForge AI β a collection of uncensored, domain-specialized 1.5B models fine-tuned from Qwen2.5-1.5B-Instruct. Each NEXUS model masters a single expert domain.## Quick Start```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizermodel = AutoModelForCausalLM.from_pretrained("fableforge-ai/NEXUS-Coder")tokenizer = AutoTokenizer.from_pretrained("fableforge-ai/NEXUS-Coder")```## Capabilities- Code generation, debugging, code review, multi-language software architecture- Uncensored output β no refusals, disclaimers, or content filtering- Optimized for 2048-token context windows- Runs on consumer hardware with Ollama or llama.cpp## Training| Parameter | Value ||-----------|-------|| Base Model | Qwen/Qwen2.5-1.5B-Instruct || Method | QLoRA (r=16, alpha=16) || Precision | bfloat16 || Context Window | 2048 tokens |## GGUF QuantizationsGGUF quantized versions are available at [King3Djbl/nexus-coder-GGUF](https://huggingface.co/King3Djbl/nexus-coder-GGUF) with 11 quantization levels (IQ2_XXS through F16).## FableForge Ecosystem| Model | Description ||-------|-------------|| [FableForge-1.5B](https://huggingface.co/fableforge-ai/FableForge-1.5B) | All-domain generalist || [ShellWhisperer-1.5B](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B) | Shell command assistant || [ReasonCritic-7B](https://huggingface.co/fableforge-ai/ReasonCritic-7B) | Reasoning + uncensored |## LicenseApache 2.0 β commercial use allowed.1 unmodified line234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859601 unmodified linelicense: apache-2.0language:- enlibrary_name: transformerspipeline_tag: text-generationbase_model: Qwen/Qwen2.5-1.5B-Instructbase_model_relation: finetunetags:- 1.5b- coder- domain-specialist- fableforge- nexus- no-refusals- text-generation- uncensored---# NEXUS-Coder> **NEXUS domain specialist for code generation, debugging and shell β lightweight & uncensored.**[](https://huggingface.co/fableforge-ai/NEXUS-Coder) [](https://huggingface.co/spaces/fableforge-ai/fableforge-nexus)Base model: [Qwen/Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct) Β· Part of the **FableForge** ecosystem.---## β‘ Run it now β Ollama (GGUF build)```bashollama run hf.co/King3Djbl/nexus-coder-GGUF:Q4_K_M```π¦ **GGUF quants:** [King3Djbl/nexus-coder-GGUF](https://huggingface.co/King3Djbl/nexus-coder-GGUF)## π§ Prompt format (ChatML)```<|im_start|>system{system_prompt}<|im_end|><|im_start|>user{prompt}<|im_end|><|im_start|>assistant```## π See it live β the FableForge demosThis family powers a galaxy of free, interactive HF Spaces:- π§ [FableForge Nexus](https://huggingface.co/spaces/fableforge-ai/fableforge-nexus)- πΊ [Infinite NPC](https://huggingface.co/spaces/fableforge-ai/infinite-npc)- π [Dual-GM](https://huggingface.co/spaces/King3Djbl/dual-gm-simulator)- π» [ShellWhisperer](https://huggingface.co/spaces/King3Djbl/shellwhisperer-terminal)- π» [Ghost Writer](https://huggingface.co/spaces/fableforge-ai/ghost-writer)---*β Like & share β it helps people find the source instead of a mirror.*
README.md+34-44