Downloads · 30 days
8
42% of all-time downloads
ystk-kai/raven
raven is a text generation model from ystk-kai. 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.
Downloads · 30 days
8
42% of all-time downloads
All-time downloads
19
Public
Repo size
115 MB
Likes
0
Public
Click a slice to open those files.
.safetensors113 MB · 93%
From the Hugging Face model README
日本語書籍アーカイブファイル名の正規化用LoRAモデル
このモデルは、日本語の書籍・漫画アーカイブファイル名を標準的な形式に正規化するためのQLoRA(量子化LoRA)アダプターです。
用途例:
[イチヒ] おとなのほうかご 第04巻w → [イチヒ] おとなのほうかご 第04巻[藤島康介] トップウGP 第08巻 fix → [藤島康介] トップウGP 第08巻[著者名] タイトル cXX → [著者名] タイトル 第XX話pip install transformers peft torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
# ベースモデルとトークナイザーをロード
base_model = AutoModelForCausalLM.from_pretrained(
"sbintuitions/sarashina2.2-1b-instruct-v0.1",
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("sbintuitions/sarashina2.2-1b-instruct-v0.1")
# LoRAアダプターをロード
model = PeftModel.from_pretrained(base_model, "ystk-kai/raven")
# プロンプト構築
prompt = """### 入力:
[イチヒ] おとなのほうかご 第04巻w
### 出力:
"""
# 推論実行
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=128)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
# 出力: [イチヒ] おとなのほうかご 第04巻
# 最新版
huggingface-cli download ystk-kai/raven
# v1.0.0固定
huggingface-cli download ystk-kai/raven --revision v1.0.0
以下のパターンに対応:
w, s, b, fix等)x → × 変換(作者名区切り)cXX → 第XX話 変換2022年 No.10 → 2022年10号)@software{raven_book_normalizer,
title = {Raven Book Normalizer},
author = {Raven Project},
year = {2025},
url = {https://huggingface.co/ystk-kai/raven}
}
Apache License 2.0