NilanE/ParallelFiction-Ja_En-100k
Viewer • Updated • 106k • 116 • 82
How to use mpasila/JP-EN-Translator-1K-Steps-V2-LoRA-7B with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("augmxnt/shisa-base-7b-v1")
model = PeftModel.from_pretrained(base_model, "mpasila/JP-EN-Translator-1K-Steps-V2-LoRA-7B")How to use mpasila/JP-EN-Translator-1K-Steps-V2-LoRA-7B with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("mpasila/JP-EN-Translator-1K-Steps-V2-LoRA-7B", device_map="auto")This was trained on the updated version of the previous dataset, and it appears to have improved it a little bit. Further training seems to reduce accuracy of the model.
Dataset used is a modified version of NilanE/ParallelFiction-Ja_En-100k.
Below is a translation task. Write a response with the translation.
### Instruction:
{}
### Response:
{}
This mistral model was trained 2x faster with Unsloth and Huggingface's TRL library.
Base model
augmxnt/shisa-base-7b-v1