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
Viral card: model-tree metadata, quant table, Ollama-from-source, demo funnel
Browse files
README.md
CHANGED
|
@@ -2,69 +2,59 @@
|
|
| 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 |
-
-
|
|
|
|
| 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 |
-
|
| 27 |
-
|
| 28 |
-
## Description
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
| 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 |
-
##
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
- Runs on consumer hardware with Ollama or llama.cpp
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
-
|
| 59 |
|
| 60 |
-
|
| 61 |
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
|
| 68 |
-
|
| 69 |
|
| 70 |
-
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
|
|
|
| 5 |
library_name: transformers
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
| 8 |
+
base_model_relation: finetune
|
| 9 |
tags:
|
| 10 |
+
- 1.5b
|
| 11 |
+
- coder
|
| 12 |
+
- domain-specialist
|
| 13 |
- fableforge
|
| 14 |
- nexus
|
| 15 |
+
- no-refusals
|
| 16 |
+
- text-generation
|
| 17 |
- uncensored
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
---
|
| 19 |
|
| 20 |
# NEXUS-Coder
|
| 21 |
|
| 22 |
+
> **NEXUS domain specialist for code generation, debugging and shell β lightweight & uncensored.**
|
|
|
|
|
|
|
| 23 |
|
| 24 |
+
[](https://huggingface.co/fableforge-ai/NEXUS-Coder) [](https://huggingface.co/spaces/fableforge-ai/fableforge-nexus)
|
| 25 |
|
| 26 |
+
Base model: [Qwen/Qwen2.5-1.5B-Instruct](https://huggingface.co/Qwen/Qwen2.5-1.5B-Instruct) Β· Part of the **FableForge** ecosystem.
|
| 27 |
|
| 28 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
+
## β‘ Run it now β Ollama (GGUF build)
|
| 31 |
|
| 32 |
+
```bash
|
| 33 |
+
ollama run hf.co/King3Djbl/nexus-coder-GGUF:Q4_K_M
|
| 34 |
+
```
|
|
|
|
| 35 |
|
| 36 |
+
π¦ **GGUF quants:** [King3Djbl/nexus-coder-GGUF](https://huggingface.co/King3Djbl/nexus-coder-GGUF)
|
| 37 |
|
| 38 |
+
## π§ Prompt format (ChatML)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
+
```
|
| 41 |
+
<|im_start|>system
|
| 42 |
+
{system_prompt}<|im_end|>
|
| 43 |
+
<|im_start|>user
|
| 44 |
+
{prompt}<|im_end|>
|
| 45 |
+
<|im_start|>assistant
|
| 46 |
+
```
|
| 47 |
|
| 48 |
+
## π See it live β the FableForge demos
|
| 49 |
|
| 50 |
+
This family powers a galaxy of free, interactive HF Spaces:
|
| 51 |
|
| 52 |
+
- π§ [FableForge Nexus](https://huggingface.co/spaces/fableforge-ai/fableforge-nexus)
|
| 53 |
+
- πΊ [Infinite NPC](https://huggingface.co/spaces/fableforge-ai/infinite-npc)
|
| 54 |
+
- π [Dual-GM](https://huggingface.co/spaces/King3Djbl/dual-gm-simulator)
|
| 55 |
+
- π» [ShellWhisperer](https://huggingface.co/spaces/King3Djbl/shellwhisperer-terminal)
|
| 56 |
+
- π» [Ghost Writer](https://huggingface.co/spaces/fableforge-ai/ghost-writer)
|
| 57 |
|
| 58 |
+
---
|
| 59 |
|
| 60 |
+
*β Like & share β it helps people find the source instead of a mirror.*
|