How to use from
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 soichi1208/Soichi-gemma4-31B-FT 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 soichi1208/Soichi-gemma4-31B-FT to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required
# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for soichi1208/Soichi-gemma4-31B-FT to start chatting
Quick Links

Soichi-gemma4-31B-FT

unsloth/gemma-4-31B-it-unsloth-bnb-4bitを僕のツイートデータ約1万件ちょっとを用いてQLoRAにてSFTしたものです。関わってるユーザー名は一樹くん(@L_port8000など)、あきのはらそうや(@soyaakinohara3など)以外は伏せています。 また、会話形式にする上での補完はQwen3.5-9Bを使用しています。

概要

  • ベースモデル: unsloth/gemma-4-31B-it-unsloth-bnb-4bit
  • 手法: QLoRA (rank=16, alpha=16, target: q/k/v/o/gate/up/down_proj) ローカルのRTX 3090で。
  • 学習データ: 個人の Twitter (X) 投稿約 12,000 件(会話ペア形式に変換)
  • 目的: 特定人物の語調・文体・意見傾向を模倣するキャラクター LoRA

使い方

llama-cppとかでggufを使うか直接ロードするかしてください。

from unsloth import FastModel

model, tokenizer = FastModel.from_pretrained(
    "soichi1208/Soichi-gemma4-31B-FT",
    load_in_4bit=True,
    max_seq_length=512,
)
FastModel.for_inference(model)

prompt=input("このSoichiに、何をお聞きかね?:")

messages = [{"role": "user", "content": prompt}]
inputs = tokenizer.apply_chat_template(
    messages, tokenize=True, add_generation_prompt=True, return_tensors="pt"
).to(model.device)

outputs = model.generate(
    inputs,
    max_new_tokens=100,
    do_sample=True,
    temperature=0.9,
    repetition_penalty=1.2,
    pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))

謝辞


Downloads last month
15
GGUF
Model size
31B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

2-bit

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for soichi1208/Soichi-gemma4-31B-FT

Quantized
(1)
this model