Text Generation
PEFT
Safetensors
Transformers
English
qwen2
qwen
qlora
lora
instruction-tuning
code-generation
python
fine-tuning
conversational
Eval Results (legacy)
Instructions to use banty1614/codeforge-qwen-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use banty1614/codeforge-qwen-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-3B-Instruct") model = PeftModel.from_pretrained(base_model, "banty1614/codeforge-qwen-lora") - Transformers
How to use banty1614/codeforge-qwen-lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="banty1614/codeforge-qwen-lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("banty1614/codeforge-qwen-lora", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use banty1614/codeforge-qwen-lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "banty1614/codeforge-qwen-lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "banty1614/codeforge-qwen-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/banty1614/codeforge-qwen-lora
- SGLang
How to use banty1614/codeforge-qwen-lora 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 "banty1614/codeforge-qwen-lora" \ --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": "banty1614/codeforge-qwen-lora", "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 "banty1614/codeforge-qwen-lora" \ --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": "banty1614/codeforge-qwen-lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use banty1614/codeforge-qwen-lora with Docker Model Runner:
docker model run hf.co/banty1614/codeforge-qwen-lora
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# 🚀 CodeForge AI
|
| 2 |
|
| 3 |
> A QLoRA fine-tuned version of **Qwen2.5-3B-Instruct** for software engineering and Python coding tasks.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
|
| 4 |
+
base_model: Qwen/Qwen2.5-3B-Instruct
|
| 5 |
+
|
| 6 |
+
library_name: peft
|
| 7 |
+
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
|
| 13 |
+
datasets:
|
| 14 |
+
- iamtarun/python_code_instructions_18k_alpaca
|
| 15 |
+
|
| 16 |
+
tags:
|
| 17 |
+
- qwen2
|
| 18 |
+
- qwen
|
| 19 |
+
- qlora
|
| 20 |
+
- lora
|
| 21 |
+
- peft
|
| 22 |
+
- transformers
|
| 23 |
+
- instruction-tuning
|
| 24 |
+
- code-generation
|
| 25 |
+
- python
|
| 26 |
+
- fine-tuning
|
| 27 |
+
|
| 28 |
+
model-index:
|
| 29 |
+
- name: CodeForge AI
|
| 30 |
+
results:
|
| 31 |
+
- task:
|
| 32 |
+
type: text-generation
|
| 33 |
+
metrics:
|
| 34 |
+
- type: train_loss
|
| 35 |
+
value: 0.7047
|
| 36 |
+
name: Training Loss
|
| 37 |
+
---
|
| 38 |
+
|
| 39 |
+
# 🚀 CodeForge AI
|
| 40 |
+
|
| 41 |
+
> Fine-tuned Qwen2.5-3B-Instruct using QLoRA + PEFT for software engineering tasks.
|
| 42 |
# 🚀 CodeForge AI
|
| 43 |
|
| 44 |
> A QLoRA fine-tuned version of **Qwen2.5-3B-Instruct** for software engineering and Python coding tasks.
|