Garv98 commited on
Commit
e414932
·
verified ·
1 Parent(s): 90e9bb6

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +63 -13
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
- # Uploaded finetuned model
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
 
15
- - **Developed by:** Garv98
16
- - **License:** apache-2.0
17
- - **Finetuned from model :** unsloth/qwen2.5-coder-7b-instruct-bnb-4bit
18
 
19
- This qwen2 model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
 
 
20
 
21
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
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.