How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="aripos1/gorani-3B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("aripos1/gorani-3B")
model = AutoModelForCausalLM.from_pretrained("aripos1/gorani-3B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Gorani Model Card

소개 (Introduce)

이 모델은 번역을 위한 모델입니다. 한국 고유어의 정확한 번역을 생성하기 위해 한국어, 영어, 일본어의 언어 데이터를 혼합하여 unsloth/Llama-3.2-3B-Instruct-bnb-4bit을 학습시켜 생성된 gorani-1B 입니다.
gorani는 현재 한국어, 영어, 일본어만 번역을 지원합니다.

모델 정보

  • 개발자: airpos1
  • 모델 유형: llama를 기반으로 하는 3B 매개변수 모델인 gorani-3B
  • 지원 언어: 한국어, 영어, 일본어
  • 라이센스: llama

Training Hyperparameters

  • per_device_train_batch_size: 8
  • gradient_accumulation_steps: 1
  • warmup_steps: 5
  • learning_rate: 2e-4
  • fp16: not is_bfloat16_supported()
  • num_train_epochs: 3
  • weight_decay: 0.01
  • lr_scheduler_type: "linear"

학습 데이터

데이터셋 링크

학습 성능 비교

image/png

Training Results

image/png

Downloads last month
6
Safetensors
Model size
3B params
Tensor type
F32
·
F16
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for aripos1/gorani-3B

Dataset used to train aripos1/gorani-3B