LoRA: Low-Rank Adaptation of Large Language Models
Paper • 2106.09685 • Published • 61
How to use niclasgriesshaber/gemma-2-9b-it-bnb-4bit-lora-en-to-embg with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("niclasgriesshaber/gemma-2-9b-it-bnb-4bit-lora-en-to-embg", dtype="auto")How to use niclasgriesshaber/gemma-2-9b-it-bnb-4bit-lora-en-to-embg with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for niclasgriesshaber/gemma-2-9b-it-bnb-4bit-lora-en-to-embg to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for niclasgriesshaber/gemma-2-9b-it-bnb-4bit-lora-en-to-embg to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for niclasgriesshaber/gemma-2-9b-it-bnb-4bit-lora-en-to-embg to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="niclasgriesshaber/gemma-2-9b-it-bnb-4bit-lora-en-to-embg",
max_seq_length=2048,
)This model translates from English to Early Modern Bohemian German (EMBG). It was fine-tuned using LoRA on a unique historical dataset of 3,873 paragraph-level translation pairs sourced from legal court records. The dataset was meticulously transcribed and translated by the Chichele Professor of Economic History, Sheilagh Ogilvie, from All Souls College, University of Oxford.
unsloth/gemma-2-9b-it-bnb-4bit Base model
google/gemma-2-9b
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("niclasgriesshaber/gemma-2-9b-it-bnb-4bit-lora-en-to-embg", dtype="auto")