File size: 1,368 Bytes
4a43953
bef1c44
 
 
 
4a43953
420f710
4a43953
 
bef1c44
 
5a4b365
4a43953
 
bef1c44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
title: Qwen 2.5 Coder Assistant
emoji: 💻
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.9.1
app_file: app.py
pinned: false
license: apache-2.0
short_description: Code assistant powered by fine-tuned Qwen 2.5 Coder
suggested_hardware: zero-a10g
---

# Qwen 2.5 Coder Assistant

An interactive code assistant powered by a fine-tuned [Qwen 2.5 Coder 1.5B](https://huggingface.co/GhostScientist/qwen25-coder-1.5b-codealpaca-sft) model.

## Features

- **Code Generation**: Write functions, classes, and complete programs
- **Code Explanation**: Understand complex code snippets
- **Debugging Help**: Find and fix bugs in your code
- **Best Practices**: Get suggestions for code improvements

## Model Details

- **Base Model**: Qwen/Qwen2.5-Coder-1.5B-Instruct
- **Training**: Fine-tuned using SFT on CodeAlpaca dataset
- **Framework**: TRL + Transformers

## Usage

Simply type your coding question or request in the chat interface. You can:

1. Ask for code in any programming language
2. Paste code snippets for explanation or debugging
3. Request refactoring suggestions
4. Get help with algorithms and data structures

## Examples

- "Write a Python function to check if a number is prime"
- "Explain the difference between a list and a tuple in Python"
- "How do I reverse a string in JavaScript?"
- "Debug this code: def add(a, b): return a - b"