Instructions to use Garv98/GX-Coder-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Desktop
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,21 +1,71 @@
|
|
| 1 |
---
|
| 2 |
-
base_model: unsloth/qwen2.5-coder-7b-instruct-bnb-4bit
|
| 3 |
-
tags:
|
| 4 |
-
- text-generation-inference
|
| 5 |
-
- transformers
|
| 6 |
-
- unsloth
|
| 7 |
-
- qwen2
|
| 8 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
language:
|
| 10 |
-
- en
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
-
|
| 16 |
-
- **License:** apache-2.0
|
| 17 |
-
- **Finetuned from model :** unsloth/qwen2.5-coder-7b-instruct-bnb-4bit
|
| 18 |
|
| 19 |
-
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
+
base_model: unsloth/Qwen2.5-Coder-7B-Instruct
|
| 4 |
+
tags:
|
| 5 |
+
- code
|
| 6 |
+
- qlora
|
| 7 |
+
- unsloth
|
| 8 |
+
- qwen2.5-coder
|
| 9 |
+
- text-generation
|
| 10 |
language:
|
| 11 |
+
- en
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# GX-Coder-7B
|
| 16 |
+
|
| 17 |
+
**v0.1** — QLoRA fine-tune of [`unsloth/Qwen2.5-Coder-7B-Instruct`](https://huggingface.co/Qwen2.5-Coder-7B-Instruct),
|
| 18 |
+
built to power a multi-mode coding agent. This first release sits at **parity with
|
| 19 |
+
the base** on HumanEval+ (see table); it's an end-to-end QLoRA→eval→ship baseline.
|
| 20 |
+
Later versions target agent-specific tasks (tool-calling, web/UI codegen) where
|
| 21 |
+
the base isn't already saturated.
|
| 22 |
+
|
| 23 |
+
## Summary
|
| 24 |
+
|
| 25 |
+
- **Base:** unsloth/Qwen2.5-Coder-7B-Instruct
|
| 26 |
+
- **Method:** 4-bit QLoRA (LoRA r=16) via [Unsloth](https://github.com/unslothai/unsloth)
|
| 27 |
+
- **Hardware:** single free-Colab T4 (16GB)
|
| 28 |
+
- **Data:** open instruction-coding datasets, ChatML-formatted (see training repo)
|
| 29 |
+
|
| 30 |
+
## Benchmarks (HumanEval+ pass@1, greedy)
|
| 31 |
+
|
| 32 |
+
| Model | HumanEval+ pass@1 |
|
| 33 |
+
|-------|-------------------|
|
| 34 |
+
| unsloth/Qwen2.5-Coder-7B-Instruct (base) | 80.5 |
|
| 35 |
+
| **GX-Coder-7B (this)** | **78.0** |
|
| 36 |
+
|
| 37 |
+
> Scored with [EvalPlus](https://github.com/evalplus/evalplus) (164 problems,
|
| 38 |
+
> greedy). The ~2pt gap is within noise (~3-4 problems) — treat as parity. A
|
| 39 |
+
> generic fine-tune can't easily beat a near-ceiling base here; gains come from
|
| 40 |
+
> task-specific data in later versions.
|
| 41 |
+
|
| 42 |
+
## Intended use
|
| 43 |
+
|
| 44 |
+
Code generation, completion, review, and tool-using agent workflows. Powers the
|
| 45 |
+
companion multi-mode coding agent (Claude-Code-like coder + Figma-like web/UI
|
| 46 |
+
design mode).
|
| 47 |
+
|
| 48 |
+
## Limitations
|
| 49 |
+
|
| 50 |
+
Small model fine-tune — not frontier-level. May hallucinate APIs, miss edge
|
| 51 |
+
cases, and produce insecure code. Always review generated code before running.
|
| 52 |
+
Not trained on benchmark test sets (contamination guard in data_prep.py).
|
| 53 |
+
|
| 54 |
+
## Usage
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 58 |
+
tok = AutoTokenizer.from_pretrained("Garv98/GX-Coder-7B")
|
| 59 |
+
model = AutoModelForCausalLM.from_pretrained("Garv98/GX-Coder-7B", device_map="auto")
|
| 60 |
+
msgs = [{"role": "user", "content": "Write a Python function to check if a string is a palindrome."}]
|
| 61 |
+
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
|
| 62 |
+
print(tok.decode(model.generate(ids, max_new_tokens=256)[0][ids.shape[1]:], skip_special_tokens=True))
|
| 63 |
+
```
|
| 64 |
|
| 65 |
+
### Local serving (Ollama, via GGUF repo `Garv98/GX-Coder-7B-GGUF`)
|
|
|
|
|
|
|
| 66 |
|
| 67 |
+
```bash
|
| 68 |
+
ollama run hf.co/Garv98/GX-Coder-7B-GGUF
|
| 69 |
+
```
|
| 70 |
|
| 71 |
+
Exposes an OpenAI-compatible endpoint that the agent plugs into as a provider.
|