Safetensors
GGUF
Chinese
English
lora
qlora
roleplay
character-ai
taiwanese-mandarin
llama-factory
conversational
Instructions to use RX5950XT/silicon-based-girlfriend 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 RX5950XT/silicon-based-girlfriend 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 RX5950XT/silicon-based-girlfriend:Q8_0 # Run inference directly in the terminal: llama cli -hf RX5950XT/silicon-based-girlfriend:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf RX5950XT/silicon-based-girlfriend:Q8_0 # Run inference directly in the terminal: llama cli -hf RX5950XT/silicon-based-girlfriend:Q8_0
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 RX5950XT/silicon-based-girlfriend:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf RX5950XT/silicon-based-girlfriend:Q8_0
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 RX5950XT/silicon-based-girlfriend:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf RX5950XT/silicon-based-girlfriend:Q8_0
Use Docker
docker model run hf.co/RX5950XT/silicon-based-girlfriend:Q8_0
- LM Studio
- Jan
- Ollama
How to use RX5950XT/silicon-based-girlfriend with Ollama:
ollama run hf.co/RX5950XT/silicon-based-girlfriend:Q8_0
- Unsloth Studio
How to use RX5950XT/silicon-based-girlfriend with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for RX5950XT/silicon-based-girlfriend to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for RX5950XT/silicon-based-girlfriend to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for RX5950XT/silicon-based-girlfriend to start chatting
- Pi
How to use RX5950XT/silicon-based-girlfriend with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf RX5950XT/silicon-based-girlfriend:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "RX5950XT/silicon-based-girlfriend:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use RX5950XT/silicon-based-girlfriend with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf RX5950XT/silicon-based-girlfriend:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default RX5950XT/silicon-based-girlfriend:Q8_0
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use RX5950XT/silicon-based-girlfriend with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf RX5950XT/silicon-based-girlfriend:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "RX5950XT/silicon-based-girlfriend:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use RX5950XT/silicon-based-girlfriend with Docker Model Runner:
docker model run hf.co/RX5950XT/silicon-based-girlfriend:Q8_0
- Lemonade
How to use RX5950XT/silicon-based-girlfriend with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RX5950XT/silicon-based-girlfriend:Q8_0
Run and chat with the model
lemonade run user.silicon-based-girlfriend-Q8_0
List all available models
lemonade list
| language: | |
| - zh | |
| - en | |
| license: apache-2.0 | |
| base_model: Qwen/Qwen3.5-4B | |
| tags: | |
| - lora | |
| - qlora | |
| - roleplay | |
| - character-ai | |
| - taiwanese-mandarin | |
| - llama-factory | |
| - gguf | |
| datasets: | |
| - RX5950XTP/silicon-girlfriend-dataset | |
| # Silicon-Based-Girlfriend — QLoRA Adapter | |
| --- | |
| 基於 **Qwen3.5-4B** 的 QLoRA 微調 Adapter,訓練目標為沉浸式繁體中文角色扮演。本倉庫包含 LoRA Adapter 權重與 GGUF 格式模型。 | |
| --- | |
| ## Model Details / 模型資訊 | |
| | 項目 | 內容 | | |
| | ------------------ | ------------------------------------------------------ | | |
| | Base Model | [Qwen/Qwen3.5-4B](https://huggingface.co/Qwen/Qwen3.5-4B) | | |
| | Fine-tuning Method | QLoRA (4-bit NF4) | | |
| | LoRA Rank | 32 | | |
| | LoRA Alpha | 64 | | |
| | LoRA Dropout | 0.05 | | |
| | LoRA Target | All linear layers | | |
| | Training Epochs | 5 | | |
| | Context Length | 8192 tokens | | |
| | Learning Rate | 1e-4 | | |
| | LR Scheduler | Cosine | | |
| | Optimizer | paged_adamw_8bit | | |
| | Training Samples | 985 | | |
| | Train Loss | 1.108 | | |
| | Eval Loss | 1.434 | | |
| | Hardware | NVIDIA RTX A6000 (48GB VRAM) | | |
| | Training Time | ~19 hours | | |
| | Framework | [LLaMA-Factory](https://github.com/hiyouga/LLaMA-Factory) | | |
| | Chat Template | `qwen3_5_nothink` (non-thinking mode) | | |
| --- | |
| ## Files / 檔案說明 | |
| | 檔案 | 說明 | | |
| | ------------------------------- | ---------------------------------------------------- | | |
| | `adapter_config.json` | LoRA 設定檔 | | |
| | `adapter_model.safetensors` | LoRA 權重(248 MB) | | |
| | `tokenizer_config.json` | Tokenizer 設定(含 nothink chat template) | | |
| | `tokenizer.json` | Tokenizer | | |
| | `vocab.json` / `merges.txt` | Vocabulary | | |
| | `silicon-gf-q8_0.gguf` | Q8_0 量化 GGUF(4.2 GB,適用 llama.cpp / LM Studio) | | |
| | `training_loss.png` | 訓練 Loss 曲線 | | |
| | `training_eval_loss.png` | 評估 Loss 曲線 | | |
| --- | |
| ## Usage / 使用方式 | |
| ### Option 1: GGUF (Recommended / 推薦) | |
| 直接在 **LM Studio** 或 **llama.cpp** 載入 `silicon-gf-q8_0.gguf`,無需額外安裝。 | |
| ```bash | |
| # llama.cpp | |
| ./llama-cli -m silicon-gf-q8_0.gguf -c 8192 --temp 0.8 | |
| ``` | |
| ### Option 2: LoRA Adapter with transformers + PEFT | |
| ```python | |
| from peft import PeftModel | |
| from transformers import AutoModelForCausalLM, AutoTokenizer | |
| base_model = "Qwen/Qwen3.5-4B" | |
| adapter = "RX5950XTP/silicon-based-girlfriend" | |
| tokenizer = AutoTokenizer.from_pretrained(adapter) | |
| model = AutoModelForCausalLM.from_pretrained(base_model, device_map="auto") | |
| model = PeftModel.from_pretrained(model, adapter) | |
| messages = [ | |
| {"role": "user", "content": "嘿,你在幹嘛?"} | |
| ] | |
| text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True) | |
| inputs = tokenizer(text, return_tensors="pt").to(model.device) | |
| outputs = model.generate(**inputs, max_new_tokens=512, temperature=0.8, do_sample=True) | |
| print(tokenizer.decode(outputs[0][inputs.input_ids.shape[1]:], skip_special_tokens=True)) | |
| ``` | |
| ### Option 3: LLaMA-Factory inference | |
| ```bash | |
| llamafactory-cli chat \ | |
| --model_name_or_path Qwen/Qwen3.5-4B \ | |
| --adapter_name_or_path RX5950XTP/silicon-based-girlfriend \ | |
| --template qwen3_5_nothink \ | |
| --finetuning_type lora | |
| ``` | |
| --- | |
| ## Training Curves / 訓練曲線 | |
|  | |
|  | |
| --- | |
| ## Dataset / 訓練資料集 | |
| - **倉庫**:[RX5950XTP/silicon-girlfriend-dataset](https://huggingface.co/datasets/RX5950XTP/silicon-girlfriend-dataset) | |
| - **格式**:ShareGPT(`system` + `conversations` with `from`/`value`) | |
| - **筆數**:985 筆多輪對話 | |
| - **語言**:繁體中文(臺灣用語) | |
| - **生成方式**:由 Kimi K2.5 根據角色設定生成 | |
| --- | |
| ## Notes / 注意事項 | |
| - 本模型使用 `qwen3_5_nothink` chat template,**預設不啟用思考模式**,回覆會直接輸出角色對話。 | |
| - 角色設定包含不良用語與成人主題,請自行評估使用場景。 | |
| - 模型以 QLoRA 訓練,推理時需搭配 base model(Qwen3.5-4B)一同載入,或直接使用 GGUF。 | |
| --- | |
| ## License | |
| Apache 2.0(遵循 Qwen3.5-4B 原授權) | |