Text Generation
Transformers
GGUF
English
geometry-dash
llama-cpp
ollama
tool-use
geode
qwen2.5
conversational
Instructions to use EditorAI-Geode/editorai-1p5b-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EditorAI-Geode/editorai-1p5b-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EditorAI-Geode/editorai-1p5b-v2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("EditorAI-Geode/editorai-1p5b-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use EditorAI-Geode/editorai-1p5b-v2 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 EditorAI-Geode/editorai-1p5b-v2:Q4_K_M # Run inference directly in the terminal: llama cli -hf EditorAI-Geode/editorai-1p5b-v2:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf EditorAI-Geode/editorai-1p5b-v2:Q4_K_M # Run inference directly in the terminal: llama cli -hf EditorAI-Geode/editorai-1p5b-v2: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 EditorAI-Geode/editorai-1p5b-v2:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf EditorAI-Geode/editorai-1p5b-v2: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 EditorAI-Geode/editorai-1p5b-v2:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf EditorAI-Geode/editorai-1p5b-v2:Q4_K_M
Use Docker
docker model run hf.co/EditorAI-Geode/editorai-1p5b-v2:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use EditorAI-Geode/editorai-1p5b-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EditorAI-Geode/editorai-1p5b-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EditorAI-Geode/editorai-1p5b-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EditorAI-Geode/editorai-1p5b-v2:Q4_K_M
- SGLang
How to use EditorAI-Geode/editorai-1p5b-v2 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 "EditorAI-Geode/editorai-1p5b-v2" \ --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": "EditorAI-Geode/editorai-1p5b-v2", "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 "EditorAI-Geode/editorai-1p5b-v2" \ --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": "EditorAI-Geode/editorai-1p5b-v2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use EditorAI-Geode/editorai-1p5b-v2 with Ollama:
ollama run hf.co/EditorAI-Geode/editorai-1p5b-v2:Q4_K_M
- Unsloth Desktop
- Pi
How to use EditorAI-Geode/editorai-1p5b-v2 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf EditorAI-Geode/editorai-1p5b-v2:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "EditorAI-Geode/editorai-1p5b-v2:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use EditorAI-Geode/editorai-1p5b-v2 with Docker Model Runner:
docker model run hf.co/EditorAI-Geode/editorai-1p5b-v2:Q4_K_M
- Lemonade
How to use EditorAI-Geode/editorai-1p5b-v2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull EditorAI-Geode/editorai-1p5b-v2:Q4_K_M
Run and chat with the model
lemonade run user.editorai-1p5b-v2-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use EditorAI-Geode/editorai-1p5b-v2 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf EditorAI-Geode/editorai-1p5b-v2: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 EditorAI-Geode/editorai-1p5b-v2:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use EditorAI-Geode/editorai-1p5b-v2 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf EditorAI-Geode/editorai-1p5b-v2: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 "EditorAI-Geode/editorai-1p5b-v2: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"
model card update
Browse files
README.md
CHANGED
|
@@ -17,86 +17,42 @@ language:
|
|
| 17 |
|
| 18 |
# EditorAI v2 β 1.5B GD Level Designer with Tool Use
|
| 19 |
|
| 20 |
-
Fine-tune of **Qwen/Qwen2.5-1.5B-Instruct**
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
| 27 |
-
|
|
| 28 |
-
| Tool
|
| 29 |
-
|
|
| 30 |
-
| Tool-call probe T3 (non-level question) | β β empty | β |
|
| 31 |
-
| Training method | QLoRA (4-bit) | Full bf16 fine-tune on A100 |
|
| 32 |
-
| Training data | 2,585 level-only rows | 3,700 mixed rows (level + tool use + Alpaca instruct) |
|
| 33 |
-
| Tool catalog seen during training | none | all 7 EditorAI mod tools |
|
| 34 |
-
| Multi-turn tool conversations in data | 0 | ~960 length-loop scenarios |
|
| 35 |
-
|
| 36 |
-
## Tools the model knows
|
| 37 |
-
|
| 38 |
-
Same names + schemas as the EditorAI Geode mod ships:
|
| 39 |
-
|
| 40 |
-
- `get_level_length` β current length in seconds, plus target and X-cursor
|
| 41 |
-
- `analyze_level` β object count, X-span, dominant types, current song
|
| 42 |
-
- `think` β log a brief plan
|
| 43 |
-
- `web_search` β search the web for inspiration
|
| 44 |
-
- `search_newgrounds` β find a song by name β Newgrounds ID
|
| 45 |
-
- `get_newgrounds_song` β fetch song metadata by ID
|
| 46 |
-
- `download_level` β pull an existing GD level by numeric ID
|
| 47 |
|
| 48 |
## Files
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
| `editorai-v2-fp16.gguf` | 2.9 GB | Higher quality on capable hardware |
|
| 54 |
-
| `Modelfile.v2` | 2 KB | Ollama Modelfile with tool-capable Qwen2.5 template |
|
| 55 |
|
| 56 |
-
## Quick start
|
| 57 |
|
| 58 |
```bash
|
| 59 |
-
#
|
| 60 |
ollama pull entity12208/editorai:v2
|
| 61 |
|
| 62 |
-
#
|
| 63 |
ollama create entity12208/editorai:v2 -f Modelfile.v2
|
| 64 |
```
|
| 65 |
|
| 66 |
-
##
|
| 67 |
-
|
| 68 |
-
```bash
|
| 69 |
-
./llama-server -m editorai-v2-Q4_K_M.gguf -c 8192 --jinja
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
The Modelfile uses Qwen2.5's tool-aware chat template; pass `--jinja` so llama.cpp respects it.
|
| 73 |
-
|
| 74 |
-
## Inference speed (measured)
|
| 75 |
-
|
| 76 |
-
| Hardware | Generation t/s |
|
| 77 |
-
|---|---|
|
| 78 |
-
| GTX 1050 Mobile 4 GB (Pascal) | ~21 |
|
| 79 |
-
| RTX 3050 6 GB Mobile (Ampere) | ~50β70 estimate |
|
| 80 |
-
| RTX 4090 | 150β250 estimate |
|
| 81 |
-
|
| 82 |
-
VRAM at runtime (Q4_K_M): ~1.5 GB including KV cache at 8K context.
|
| 83 |
-
|
| 84 |
-
## Known quirk
|
| 85 |
|
| 86 |
-
|
|
|
|
|
|
|
| 87 |
|
| 88 |
-
##
|
| 89 |
|
| 90 |
-
|
| 91 |
-
- Hardware: 1Γ A100 80GB (Lightning.ai)
|
| 92 |
-
- Recipe: full bf16 fine-tune (no QLoRA), 2 epochs, lr 2e-4, effective batch 32 (per-device 4 Γ grad-accum 8)
|
| 93 |
-
- Loss: 1.458 β 0.312 over 232 steps (~17 min)
|
| 94 |
-
- Dataset mix (3,700 rows):
|
| 95 |
-
- ~1,500 multi-turn tool-use conversations (length-loops, song search, edits, web search, level download β exact tool schemas matching the EditorAI mod)
|
| 96 |
-
- ~1,500 level-generation rows parsed from real `.gmd` files
|
| 97 |
-
- ~700 Alpaca-cleaned general instruction rows
|
| 98 |
-
- Tokenizer truncation: left-side (keeps the assistant turn intact)
|
| 99 |
-
- All training texts pre-rendered through Qwen2.5's `apply_chat_template` so training tokens exactly match inference tokens.
|
| 100 |
|
| 101 |
## License
|
| 102 |
|
|
|
|
| 17 |
|
| 18 |
# EditorAI v2 β 1.5B GD Level Designer with Tool Use
|
| 19 |
|
| 20 |
+
The first practical EditorAI model. Fine-tune of **Qwen/Qwen2.5-1.5B-Instruct** for the [EditorAI Geode mod](https://github.com/Entity12208/EditorAI).
|
| 21 |
|
| 22 |
+
| | v2 |
|
| 23 |
+
|---|---|
|
| 24 |
+
| Base model | Qwen2.5-1.5B-Instruct |
|
| 25 |
+
| Context | 8 K |
|
| 26 |
+
| Q4_K_M size | 941 MB |
|
| 27 |
+
| Training | QLoRA 4-bit, 2 epochs, 3,700-row mixed dataset |
|
| 28 |
+
| Tool use | works (with mod fallback parser) |
|
| 29 |
+
| Format | JSON |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
## Files
|
| 32 |
|
| 33 |
+
- `editorai-v2-Q4_K_M.gguf` (941 MB) β primary ship target
|
| 34 |
+
- `editorai-v2-fp16.gguf` (2.9 GB) β full-precision
|
| 35 |
+
- `Modelfile.v2` β Ollama Modelfile with tool-capable Qwen2.5 template
|
|
|
|
|
|
|
| 36 |
|
| 37 |
+
## Quick start
|
| 38 |
|
| 39 |
```bash
|
| 40 |
+
# Pull from registry:
|
| 41 |
ollama pull entity12208/editorai:v2
|
| 42 |
|
| 43 |
+
# Or build locally:
|
| 44 |
ollama create entity12208/editorai:v2 -f Modelfile.v2
|
| 45 |
```
|
| 46 |
|
| 47 |
+
## Speed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
+
- GTX 1050 4 GB: ~21 t/s
|
| 50 |
+
- RTX 3050 6 GB: ~50 t/s
|
| 51 |
+
- RTX 4090: ~150+ t/s
|
| 52 |
|
| 53 |
+
## Note
|
| 54 |
|
| 55 |
+
v2 emits JSON levels. The companion mod (β₯v2.2.0) accepts JSON and includes a parser fallback that handles small format quirks. **For new installs prefer [v3](../editorai-7b-v3) or [v4](../editorai-14b-v4)** β they emit the more compact EAS format which is what the mod prefers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
## License
|
| 58 |
|