Downloads · 30 days
0
godellog/llm-jp-3-13b-it
llm-jp-3-13b-it is a machine learning model from godellog. 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 apache-2.0.
- Developed by: godellog - License: CC-BY-NC-SA 4.0 - Finetuned from model : llm-jp/llm-jp-3-13b
Downloads · 30 days
0
Access
Public
Updated Dec 16, 2024
Repo size
501 MB
Likes
0
Public
Click a slice to open those files.
.safetensors501 MB · 99%
From the Hugging Face model README
This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.
llm-jp-3-13b-itllm-jp-3-13bを基に、指示応答形式でのInstruction Tuningを行ったものです。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 = "your-hf-username/llm-jp-3-13b-it"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# 指示応答生成
instruction = "次の文章を要約してください。"
prompt = f"### 指示\n{instruction}\n### 回答\n"
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)
このプロジェクトでは以下を利用しています: