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 files123456789101112131415161718192021---base_model: unsloth/qwen2.5-coder-7b-instruct-bnb-4bittags:- text-generation-inference- transformers- unsloth- qwen2license: apache-2.0language:- en---# Uploaded finetuned model- **Developed by:** Garv98- **License:** apache-2.0- **Finetuned from model :** unsloth/qwen2.5-coder-7b-instruct-bnb-4bitThis qwen2 model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071---license: apache-2.0base_model: unsloth/Qwen2.5-Coder-7B-Instructtags:- code- qlora- unsloth- qwen2.5-coder- text-generationlanguage:- enpipeline_tag: text-generation---# GX-Coder-7B**v0.1** — QLoRA fine-tune of [`unsloth/Qwen2.5-Coder-7B-Instruct`](https://huggingface.co/Qwen2.5-Coder-7B-Instruct),built to power a multi-mode coding agent. This first release sits at **parity withthe base** on HumanEval+ (see table); it's an end-to-end QLoRA→eval→ship baseline.Later versions target agent-specific tasks (tool-calling, web/UI codegen) wherethe base isn't already saturated.## Summary- **Base:** unsloth/Qwen2.5-Coder-7B-Instruct- **Method:** 4-bit QLoRA (LoRA r=16) via [Unsloth](https://github.com/unslothai/unsloth)- **Hardware:** single free-Colab T4 (16GB)- **Data:** open instruction-coding datasets, ChatML-formatted (see training repo)## Benchmarks (HumanEval+ pass@1, greedy)| Model | HumanEval+ pass@1 ||-------|-------------------|| unsloth/Qwen2.5-Coder-7B-Instruct (base) | 80.5 || **GX-Coder-7B (this)** | **78.0** |> Scored with [EvalPlus](https://github.com/evalplus/evalplus) (164 problems,> greedy). The ~2pt gap is within noise (~3-4 problems) — treat as parity. A> generic fine-tune can't easily beat a near-ceiling base here; gains come from> task-specific data in later versions.## Intended useCode generation, completion, review, and tool-using agent workflows. Powers thecompanion multi-mode coding agent (Claude-Code-like coder + Figma-like web/UIdesign mode).## LimitationsSmall model fine-tune — not frontier-level. May hallucinate APIs, miss edgecases, and produce insecure code. Always review generated code before running.Not trained on benchmark test sets (contamination guard in data_prep.py).## Usage```pythonfrom transformers import AutoModelForCausalLM, AutoTokenizertok = AutoTokenizer.from_pretrained("Garv98/GX-Coder-7B")model = AutoModelForCausalLM.from_pretrained("Garv98/GX-Coder-7B", device_map="auto")msgs = [{"role": "user", "content": "Write a Python function to check if a string is a palindrome."}]ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)print(tok.decode(model.generate(ids, max_new_tokens=256)[0][ids.shape[1]:], skip_special_tokens=True))```### Local serving (Ollama, via GGUF repo `Garv98/GX-Coder-7B-GGUF`)```bashollama run hf.co/Garv98/GX-Coder-7B-GGUF```Exposes an OpenAI-compatible endpoint that the agent plugs into as a provider.
README.md+63-13