Instructions to use DrChamyoung/Xieral-Code-Gen-3B-Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use DrChamyoung/Xieral-Code-Gen-3B-Model with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf DrChamyoung/Xieral-Code-Gen-3B-Model # Run inference directly in the terminal: llama cli -hf DrChamyoung/Xieral-Code-Gen-3B-Model
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf DrChamyoung/Xieral-Code-Gen-3B-Model # Run inference directly in the terminal: llama cli -hf DrChamyoung/Xieral-Code-Gen-3B-Model
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf DrChamyoung/Xieral-Code-Gen-3B-Model # Run inference directly in the terminal: ./llama-cli -hf DrChamyoung/Xieral-Code-Gen-3B-Model
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf DrChamyoung/Xieral-Code-Gen-3B-Model # Run inference directly in the terminal: ./build/bin/llama-cli -hf DrChamyoung/Xieral-Code-Gen-3B-Model
Use Docker
docker model run hf.co/DrChamyoung/Xieral-Code-Gen-3B-Model
- LM Studio
- Jan
- Ollama
How to use DrChamyoung/Xieral-Code-Gen-3B-Model with Ollama:
ollama run hf.co/DrChamyoung/Xieral-Code-Gen-3B-Model
- Unsloth Desktop
- Docker Model Runner
How to use DrChamyoung/Xieral-Code-Gen-3B-Model with Docker Model Runner:
docker model run hf.co/DrChamyoung/Xieral-Code-Gen-3B-Model
- Lemonade
How to use DrChamyoung/Xieral-Code-Gen-3B-Model with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull DrChamyoung/Xieral-Code-Gen-3B-Model
Run and chat with the model
lemonade run user.Xieral-Code-Gen-3B-Model-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,49 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- inbora studio
|
| 5 |
+
- drchamyoung
|
| 6 |
+
- Neural Network
|
| 7 |
+
- DLL
|
| 8 |
+
- Deep ONNX
|
| 9 |
+
- Behaviour Agents
|
| 10 |
+
---
|
| 11 |
+
# Xieral Code Gen 3B
|
| 12 |
+
|
| 13 |
+
Xieral Code Gen 3B is a decoder-only language model with 2.7 billion parameters. Developed from the `Xieral-Code-Gen-3b`, this model is designed specifically for code generation and software engineering tasks.
|
| 14 |
+
|
| 15 |
+
## Model Overview
|
| 16 |
+
|
| 17 |
+
- **Architecture**: Decoder-only language model
|
| 18 |
+
- **Parameters**: 2.7 billion
|
| 19 |
+
- **Training Data**: Combination of publicly available and synthetic datasets
|
| 20 |
+
- **Optimization**: Direct Preference Optimization (DPO)
|
| 21 |
+
- **Fine-tuning**: General code/software engineering conversations, SQL query generation, and discussion
|
| 22 |
+
|
| 23 |
+
## Performance
|
| 24 |
+
|
| 25 |
+
Xieral Code Gen 3B has demonstrated competitive performance compared to other models of similar size:
|
| 26 |
+
|
| 27 |
+
- **MultiPL-E Metrics**: Evaluated across various programming languages using the BigCode Evaluation Harness.
|
| 28 |
+
- **MT Bench**: Shows strong results on code-related tasks.
|
| 29 |
+
|
| 30 |
+
## Usage
|
| 31 |
+
|
| 32 |
+
This model is well-suited for:
|
| 33 |
+
|
| 34 |
+
- General code/software engineering conversations
|
| 35 |
+
- SQL query generation and discussion
|
| 36 |
+
|
| 37 |
+
### Requirements
|
| 38 |
+
|
| 39 |
+
To run Xieral Code Gen 3B locally, you will need:
|
| 40 |
+
|
| 41 |
+
- **VRAM**: 8GB+ (Graphics card with sufficient VRAM)
|
| 42 |
+
- **Dependencies**: Ensure you have the necessary libraries and environment set up to run the model.
|
| 43 |
+
|
| 44 |
+
## Installation
|
| 45 |
+
|
| 46 |
+
To install the required dependencies, use:
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
pip install -r requirements.txt
|