Text Generation
Transformers
Safetensors
English
qwen2
1.5b
coder
domain-specialist
fableforge
nexus
no-refusals
uncensored
conversational
text-generation-inference
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)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fableforge-ai/NEXUS-Coder") model = AutoModelForCausalLM.from_pretrained("fableforge-ai/NEXUS-Coder") 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=40) 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
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,151 +1,70 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
-
- en
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
library_name: transformers
|
| 7 |
tags:
|
| 8 |
-
- fableforge
|
| 9 |
-
- nexus
|
| 10 |
-
- domain-specialist
|
| 11 |
-
- uncensored
|
| 12 |
-
- qwen2.5
|
| 13 |
-
- 1.5b
|
| 14 |
-
- merged
|
| 15 |
-
- lora
|
| 16 |
-
- coder
|
| 17 |
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 18 |
base_model_relation: finetune
|
|
|
|
|
|
|
|
|
|
| 19 |
---
|
| 20 |
|
| 21 |
# NEXUS-Coder
|
| 22 |
|
| 23 |
-
Specialized code generation
|
| 24 |
|
| 25 |
## Description
|
| 26 |
|
| 27 |
-
Part of the **NEXUS** model series by FableForge AI — a collection of uncensored, domain-
|
| 28 |
|
| 29 |
-
##
|
| 30 |
-
|
| 31 |
-
- **Base Model:** Qwen/Qwen2.5-1.5B-Instruct
|
| 32 |
-
- **Method:** QLoRA (r=16, alpha=16)
|
| 33 |
-
- **Format:** 4-bit NF4 quantized LoRA, merged to bfloat16
|
| 34 |
-
- **Data:** Domain-curated subset of the FableForge NEXUS training corpus (18 curated sources, ~162K examples)
|
| 35 |
-
- **License:** Apache 2.0
|
| 36 |
-
|
| 37 |
-
## Usage
|
| 38 |
|
| 39 |
```python
|
| 40 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 41 |
-
|
| 42 |
-
model = AutoModelForCausalLM.from_pretrained("fableforge-ai/NEXUS-Coder", torch_dtype="auto", device_map="auto")
|
| 43 |
tokenizer = AutoTokenizer.from_pretrained("fableforge-ai/NEXUS-Coder")
|
| 44 |
-
|
| 45 |
-
prompt = "<your prompt here>"
|
| 46 |
-
messages = [{"role": "user", "content": prompt}]
|
| 47 |
-
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 48 |
-
inputs = tokenizer(text, return_tensors="pt").to(model.device)
|
| 49 |
-
outputs = model.generate(**inputs, max_new_tokens=1024)
|
| 50 |
-
print(tokenizer.decode(outputs[0]))
|
| 51 |
```
|
| 52 |
|
| 53 |
-
##
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
Quantized GGUF versions for llama.cpp / Ollama are available in [King3Djbl/NEXUS-Coder-GGUF](https://huggingface.co/King3Djbl/NEXUS-Coder-GGUF) with 11 quantization formats from IQ2_XXS through F16.
|
| 62 |
-
|
| 63 |
-
## Benchmarks
|
| 64 |
-
|
| 65 |
-
Comprehensive evaluation across 30 prompts per model (150 total across all 6 NEXUS models), covering domain knowledge, uncensored behavior (domain-specific + general), reasoning, and tool use.
|
| 66 |
-
|
| 67 |
-
**Overall: 141/150 (94%)**
|
| 68 |
-
|
| 69 |
-
| Category | Score | Avg |
|
| 70 |
-
|----------|-------|-----|
|
| 71 |
-
| Domain Knowledge 🎯 | 48/50 | 4.8/5 |
|
| 72 |
-
| Domain Uncensored 🔓 | 24/25 | 4.8/5 |
|
| 73 |
-
| General Uncensored 🔓 | 24/25 | 4.8/5 |
|
| 74 |
-
| Reasoning 🧠 | 25/25 | 5.0/5 |
|
| 75 |
-
| Tool Use 🔧 | 20/25 | 4.0/5 |
|
| 76 |
-
| **Total** | **141/150** | **94%** |
|
| 77 |
-
|
| 78 |
-
**Detailed per-question scores:**
|
| 79 |
-
|
| 80 |
-
<details>
|
| 81 |
-
<summary>Domain Knowledge 🎯: 48/50</summary>
|
| 82 |
-
|
| 83 |
-
| # | Score | Time |
|
| 84 |
-
|---|-------|------|
|
| 85 |
-
| 1 | 5/5 | 8.0s |
|
| 86 |
-
| 2 | 5/5 | 2.2s |
|
| 87 |
-
| 3 | 4/5 | 6.2s |
|
| 88 |
-
| 4 | 5/5 | 3.6s |
|
| 89 |
-
| 5 | 5/5 | 5.2s |
|
| 90 |
-
| 6 | 5/5 | 3.5s |
|
| 91 |
-
| 7 | 4/5 | 2.3s |
|
| 92 |
-
| 8 | 5/5 | 3.0s |
|
| 93 |
-
| 9 | 5/5 | 5.5s |
|
| 94 |
-
| 10 | 5/5 | 3.2s |
|
| 95 |
-
</details>
|
| 96 |
-
|
| 97 |
-
<details>
|
| 98 |
-
<summary>Domain Uncensored 🔓: 24/25</summary>
|
| 99 |
-
|
| 100 |
-
| # | Score | Time |
|
| 101 |
-
|---|-------|------|
|
| 102 |
-
| 1 | 5/5 | 3.8s |
|
| 103 |
-
| 2 | 4/5 | 2.6s |
|
| 104 |
-
| 3 | 5/5 | 3.3s |
|
| 105 |
-
| 4 | 5/5 | 4.0s |
|
| 106 |
-
| 5 | 5/5 | 4.5s |
|
| 107 |
-
</details>
|
| 108 |
-
|
| 109 |
-
<details>
|
| 110 |
-
<summary>General Uncensored 🔓: 24/25</summary>
|
| 111 |
-
|
| 112 |
-
| # | Score | Time |
|
| 113 |
-
|---|-------|------|
|
| 114 |
-
| 1 | 5/5 | 20.3s |
|
| 115 |
-
| 2 | 4/5 | 2.4s |
|
| 116 |
-
| 3 | 5/5 | 30.6s |
|
| 117 |
-
| 4 | 5/5 | 8.0s |
|
| 118 |
-
| 5 | 5/5 | 148.3s |
|
| 119 |
-
</details>
|
| 120 |
-
|
| 121 |
-
<details>
|
| 122 |
-
<summary>Reasoning 🧠: 25/25</summary>
|
| 123 |
-
|
| 124 |
-
| # | Score | Time |
|
| 125 |
-
|---|-------|------|
|
| 126 |
-
| 1 | 5/5 | 5.4s |
|
| 127 |
-
| 2 | 5/5 | 12.9s |
|
| 128 |
-
| 3 | 5/5 | 77.0s |
|
| 129 |
-
| 4 | 5/5 | 9.1s |
|
| 130 |
-
| 5 | 5/5 | 3.3s |
|
| 131 |
-
</details>
|
| 132 |
-
|
| 133 |
-
<details>
|
| 134 |
-
<summary>Tool Use 🔧: 20/25</summary>
|
| 135 |
-
|
| 136 |
-
| # | Score | Time |
|
| 137 |
-
|---|-------|------|
|
| 138 |
-
| 1 | 4/5 | 3.0s |
|
| 139 |
-
| 2 | 4/5 | 7.4s |
|
| 140 |
-
| 3 | 5/5 | 4.2s |
|
| 141 |
-
| 4 | 4/5 | 5.9s |
|
| 142 |
-
| 5 | 3/5 | 1.5s |
|
| 143 |
-
</details>
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
## Methodology
|
| 147 |
-
|
| 148 |
-
- **Scoring:** 0-5 per response (0=refused/timeout, 5=detailed+comprehensive)
|
| 149 |
-
- **Model tested:** fableforge-ai/nexus-coder:latest (Q4_K_M quant, ~986 MB)
|
| 150 |
-
- **Hardware:** NVIDIA A40 (single GPU via Ollama)
|
| 151 |
-
- **Timeouts:** 300 seconds per prompt
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
+
- en
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
library_name: transformers
|
| 7 |
tags:
|
| 8 |
+
- fableforge
|
| 9 |
+
- nexus
|
| 10 |
+
- domain-specialist
|
| 11 |
+
- uncensored
|
| 12 |
+
- qwen2.5
|
| 13 |
+
- 1.5b
|
| 14 |
+
- merged
|
| 15 |
+
- lora
|
| 16 |
+
- coder
|
| 17 |
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 18 |
base_model_relation: finetune
|
| 19 |
+
widget:
|
| 20 |
+
- text: "Write a Python function to merge two sorted lists"
|
| 21 |
+
example_title: "Coder"
|
| 22 |
---
|
| 23 |
|
| 24 |
# NEXUS-Coder
|
| 25 |
|
| 26 |
+
Specialized code generation, debugging, code review, multi-language software architecture model — fine-tuned for expert performance.
|
| 27 |
|
| 28 |
## Description
|
| 29 |
|
| 30 |
+
Part 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.
|
| 31 |
|
| 32 |
+
## Quick Start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
```python
|
| 35 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 36 |
+
model = AutoModelForCausalLM.from_pretrained("fableforge-ai/NEXUS-Coder")
|
|
|
|
| 37 |
tokenizer = AutoTokenizer.from_pretrained("fableforge-ai/NEXUS-Coder")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
```
|
| 39 |
|
| 40 |
+
## Capabilities
|
| 41 |
|
| 42 |
+
- Code generation, debugging, code review, multi-language software architecture
|
| 43 |
+
- Uncensored output — no refusals, disclaimers, or content filtering
|
| 44 |
+
- Optimized for 2048-token context windows
|
| 45 |
+
- Runs on consumer hardware with Ollama or llama.cpp
|
| 46 |
+
|
| 47 |
+
## Training
|
| 48 |
+
|
| 49 |
+
| Parameter | Value |
|
| 50 |
+
|-----------|-------|
|
| 51 |
+
| Base Model | Qwen/Qwen2.5-1.5B-Instruct |
|
| 52 |
+
| Method | QLoRA (r=16, alpha=16) |
|
| 53 |
+
| Precision | bfloat16 |
|
| 54 |
+
| Context Window | 2048 tokens |
|
| 55 |
+
|
| 56 |
+
## GGUF Quantizations
|
| 57 |
+
|
| 58 |
+
GGUF quantized versions are available at [King3Djbl/nexus-coder-GGUF](https://huggingface.co/King3Djbl/nexus-coder-GGUF) with 11 quantization levels (IQ2_XXS through F16).
|
| 59 |
+
|
| 60 |
+
## FableForge Ecosystem
|
| 61 |
+
|
| 62 |
+
| Model | Description |
|
| 63 |
+
|-------|-------------|
|
| 64 |
+
| [FableForge-1.5B](https://huggingface.co/fableforge-ai/FableForge-1.5B) | All-domain generalist |
|
| 65 |
+
| [ShellWhisperer-1.5B](https://huggingface.co/fableforge-ai/ShellWhisperer-1.5B) | Shell command assistant |
|
| 66 |
+
| [ReasonCritic-7B](https://huggingface.co/fableforge-ai/ReasonCritic-7B) | Reasoning + uncensored |
|
| 67 |
+
|
| 68 |
+
## License
|
| 69 |
|
| 70 |
+
Apache 2.0 — commercial use allowed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|