Downloads · 30 days
13
6% of all-time downloads
Yvthyvq/Liujgoj-Cantonese-Qwen3-8B-Instruct
Liujgoj-Cantonese-Qwen3-8B-Instruct is a text generation model from Yvthyvq. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
融入純粹粵語語音 manifold(語言流形)嘅多任務 Instruct 大模型。本模型基於 cantonese-qwen3-8b-base 進行深度大規模指令微調(SFT),專注於拉丁化粵語書寫系統 —— Liujgoj 溜歌粵語。
Downloads · 30 days
13
6% of all-time downloads
All-time downloads
233
Public
Parameters
8.2B
16.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors16.5 GB · 100%
From the Hugging Face model README
融入純粹粵語語音 manifold(語言流形)嘅多任務 Instruct 大模型。本模型基於 cantonese-qwen3-8b-base 進行深度大規模指令微調(SFT),專注於拉丁化粵語書寫系統 —— Liujgoj 溜歌粵語。
透過將音素同語義對齊,本模型擺脫咗傳統漢字對粵語思維嘅束縛,為語音原生(Speech-native)AI 奠定強大嘅文本語意底座。
hf 工具下載由於模型採用最新 high-performance 傳輸架構,推薦使用最新 hf 工具進行下載(速度極快):
export HF_XET_HIGH_PERFORMANCE=1
hf download Yvthyvq/cantonese-qwen3-8b-instruct --local-dir ./cantonese-qwen3-8b-instruct
---
## 🚀 快速開始 / Quick Start
### 1. 安裝與環境變量配置
```bash
export HF_XET_HIGH_PERFORMANCE=1
export HF_ENDPOINT=[https://hf-mirror.com](https://hf-mirror.com)
### 2. Python 檔案推演 (使用 Transformers 載入)
```python
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "Yvthyvq/cantonese-qwen3-8b-instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# 提示詞請盡量使用 Liujgoj 粵語拼寫或地道口語進行互動
messages = [
{"role": "user", "content": "Neiq hour, neiq horyiq zouh dij mej?"} # 範例
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([prompt], return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.7)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))