Downloads · 30 days
10
6% of all-time downloads
yoikoarmor/yoiko-Qwen3.5-9B-lora
yoiko-Qwen3.5-9B-lora is a text generation model from yoikoarmor. Use it when you need the model to write or continue text. It is set up for peft. The card lists the license as apache-2.0.
Stable diffusion-forge-add-on https://github.com/yoikoarmor/sd-forge-llm-prompt-gen-yoiko
Downloads · 30 days
10
6% of all-time downloads
All-time downloads
164
Public
Repo size
193 MB
Likes
0
Public
Click a slice to open those files.
.safetensors173 MB · 90%
From the Hugging Face model README
Stable diffusion-forge-add-on https://github.com/yoikoarmor/sd-forge-llm-prompt-gen-yoiko
yoiko-Qwen3.5-9B-lora is a LoRA adapter package for Qwen/Qwen3.5-9B.
This package contains the adapter only.
It does not include:
This adapter is intended for prompt generation / prompt rewriting workflows, including use inside a Stable Diffusion Forge extension.
Expected base model:
Qwen/Qwen3.5-9BUsers must obtain the base model separately and must review the base model's own license and usage terms.
This LoRA adapter package is released under the Apache License 2.0.
This license applies to the adapter package contents in this directory.
The base model is not included here and may have its own separate license.
Typical tested setup:
device_map="auto"adapter_model.safetensorsadapter_config.jsonchat_template.jinjatokenizer.jsontokenizer_config.jsonREADME.mdLICENSEfrom transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
from peft import PeftModel
import torch
base_model = "Qwen/Qwen3.5-9B"
adapter_path = "yoikoarmor/yoiko-Qwen3.5-9B-lora"
tokenizer = AutoTokenizer.from_pretrained(adapter_path, trust_remote_code=False)
quant_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True,
)
model = AutoModelForCausalLM.from_pretrained(
base_model,
device_map="auto",
quantization_config=quant_config,
torch_dtype=torch.bfloat16,
trust_remote_code=False,
)
model = PeftModel.from_pretrained(model, adapter_path, is_trainable=False)
model.eval()