Downloads · 30 days
0
momo0729/llm-jp-3-13b-finetune
llm-jp-3-13b-finetune is a machine learning model from momo0729. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as cc-by-nc-sa-4.0.
basemodel: llm-jp/llm-jp-3-13b tags: - text-generation-inference - transformers - unsloth - llama - trl license: cc-by-nc-sa-4.0 language: - ja --- - Developed by: momo0729 - License: CC-BY-NC-SA 4.0 - Finetuned from…
Downloads · 30 days
0
Access
Public
Updated Dec 17, 2024
Repo size
250 MB
Likes
0
Public
Click a slice to open those files.
.safetensors250 MB · 98%
From the Hugging Face model README
base_model: llm-jp/llm-jp-3-13b tags:
"llm-jp-3-13b-it"llm-jp-3-13bichikara-instruction-003-001-1.json{
"text": "文章の要約を生成してください。",
"output": "この文章の要約です。"
}
per_device_train_batch_size: 2gradient_accumulation_steps: 4num_train_epochs: 1learning_rate: 2e-4fp16: 使用bf16: 使用(ハードウェアでサポートされる場合)max_seq_length: 512ichikara-instruction-003-001-1.jsonをロードし、textとoutputを使用してプロンプト形式に変換。llm-jp-3-13b。q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj。r=32lora_alpha=32lora_dropout=0.05以下は、このモデルを使用して指示応答を生成する方法です。
from transformers import AutoTokenizer, AutoModelForCausalLM
# モデルとトークナイザーのロード
model_name = "momo0729/llm-jp-3-13b-it"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# 指示応答生成
instruction = "次の文章を要約してください。"
prompt = f"### 指示
{} ステップバイステップで考えて。深呼吸して考えてください。
### 回答
{}"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
# 出力結果
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
このプロジェクトでは以下を利用しています: