Text Generation
Transformers
Safetensors
English
Vietnamese
qwen2
gamedev
godot
json
spawn-point
awq
conversational
text-generation-inference
4-bit precision
Instructions to use smoky1496/SpawnPoint-Coder-7B-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use smoky1496/SpawnPoint-Coder-7B-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="smoky1496/SpawnPoint-Coder-7B-AWQ") 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("smoky1496/SpawnPoint-Coder-7B-AWQ") model = AutoModelForCausalLM.from_pretrained("smoky1496/SpawnPoint-Coder-7B-AWQ", 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 smoky1496/SpawnPoint-Coder-7B-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "smoky1496/SpawnPoint-Coder-7B-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "smoky1496/SpawnPoint-Coder-7B-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/smoky1496/SpawnPoint-Coder-7B-AWQ
- SGLang
How to use smoky1496/SpawnPoint-Coder-7B-AWQ 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 "smoky1496/SpawnPoint-Coder-7B-AWQ" \ --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": "smoky1496/SpawnPoint-Coder-7B-AWQ", "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 "smoky1496/SpawnPoint-Coder-7B-AWQ" \ --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": "smoky1496/SpawnPoint-Coder-7B-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use smoky1496/SpawnPoint-Coder-7B-AWQ with Docker Model Runner:
docker model run hf.co/smoky1496/SpawnPoint-Coder-7B-AWQ
SpawnPoint-Coder-7B v2: better briefs and Vietnamese, Godot model card
Browse files- README.md +32 -9
- model-00001-of-00002.safetensors +1 -1
- tokenizer_config.json +1 -1
README.md
CHANGED
|
@@ -7,9 +7,19 @@ tags: [gamedev, godot, json, spawn-point, awq]
|
|
| 7 |
|
| 8 |
# SpawnPoint-Coder-7B
|
| 9 |
|
| 10 |
-
A 7B model
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
## Run it
|
| 15 |
|
|
@@ -22,14 +32,27 @@ Then Spawn Point finds it automatically at `http://localhost:8000/v1`.
|
|
| 22 |
|
| 23 |
## Evaluation
|
| 24 |
|
| 25 |
-
|
|
|
|
| 26 |
|
| 27 |
-
|
|
| 28 |
|---|---|---|
|
| 29 |
-
| brief |
|
| 30 |
-
| tweak |
|
| 31 |
-
| entity |
|
| 32 |
-
| translate |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
## License
|
| 35 |
|
|
|
|
| 7 |
|
| 8 |
# SpawnPoint-Coder-7B
|
| 9 |
|
| 10 |
+
**A 7B model that generates Godot 4 games.** Fine-tuned for [Spawn Point](https://github.com/leluong141996-dev/Spawn-Point),
|
| 11 |
+
an open-source autonomous game studio: you describe a game in plain English or Vietnamese, the model writes
|
| 12 |
+
the game design as strict JSON, and Spawn Point compiles it into a playable Godot 4 project (scenes, GDScript
|
| 13 |
+
components, levels, sprites) that runs on desktop or in the browser.
|
| 14 |
+
|
| 15 |
+
What it does inside the pipeline:
|
| 16 |
+
|
| 17 |
+
- **Design** — game idea → game brief (genre, character, abilities, enemies, hazards, pickups, goal, feel).
|
| 18 |
+
- **Tweak** — "jump 20% higher, add a dash, more enemies" → a precise patch of the game.
|
| 19 |
+
- **Edit an entity** — "double its health and make it shoot fireballs" → component and parameter changes.
|
| 20 |
+
- **Translate** — Vietnamese game ideas → English briefs.
|
| 21 |
+
|
| 22 |
+
4-bit AWQ, runs on a single 12 GB GPU.
|
| 23 |
|
| 24 |
## Run it
|
| 25 |
|
|
|
|
| 32 |
|
| 33 |
## Evaluation
|
| 34 |
|
| 35 |
+
Held-out Spawn Point tasks (same prompts and JSON schemas as production) plus 30 human-written game ideas
|
| 36 |
+
(English and Vietnamese, 153 checks):
|
| 37 |
|
| 38 |
+
| benchmark | v1 | v2 (this release) |
|
| 39 |
|---|---|---|
|
| 40 |
+
| held-out brief (exact match) | 36% | 88% |
|
| 41 |
+
| held-out tweak (exact match) | 100% | 98% |
|
| 42 |
+
| held-out entity (exact match) | 100% | 91% |
|
| 43 |
+
| held-out translate (exact match) | 52% | 97% |
|
| 44 |
+
| human-written prompts fully right | 73% | 87% |
|
| 45 |
+
| human-written prompts, checks passed | 94% | 97% |
|
| 46 |
+
|
| 47 |
+
## Limitations
|
| 48 |
+
|
| 49 |
+
- Fine-tuned only for **2D platformers and 2D top-down games** built with Spawn Point's component
|
| 50 |
+
library. Other genres (3D, RPG systems, strategy, card games, racing…) and free-form Godot coding were
|
| 51 |
+
not part of the training data, so expect results no better than a general 7B coder model there.
|
| 52 |
+
- It writes Spawn Point's JSON formats; the GDScript itself comes from Spawn Point's tested component
|
| 53 |
+
library, not from the model. Outside Spawn Point it is a general coding model with a narrow specialty.
|
| 54 |
+
- Occasionally one detail of a request is missed (e.g. a pickup or one enemy type); Spawn Point's
|
| 55 |
+
validator and normalizer catch most of these.
|
| 56 |
|
| 57 |
## License
|
| 58 |
|
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4480835056
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c63c4d808b401ccb67b058f73ed55fb78dc7f983f34f5d3d4085fc3b2832c797
|
| 3 |
size 4480835056
|
tokenizer_config.json
CHANGED
|
@@ -205,4 +205,4 @@
|
|
| 205 |
"split_special_tokens": false,
|
| 206 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 207 |
"unk_token": null
|
| 208 |
-
}
|
|
|
|
| 205 |
"split_special_tokens": false,
|
| 206 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 207 |
"unk_token": null
|
| 208 |
+
}
|