Downloads · 30 days
14
5% of all-time downloads
ION-Communications/gemma-3n-E2B-ko
gemma-3n-E2B-ko is a text generation model from ION-Communications. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as gemma.
google/gemma-3n-E2B-it 를 한국어 instruction 데이터(KoAlpaca v1.1a)로 QLoRA 추가 학습한 모델입니다.
Downloads · 30 days
14
5% of all-time downloads
All-time downloads
268
Public
Parameters
5.4B
21.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors10.9 GB · 100%
From the Hugging Face model README
google/gemma-3n-E2B-it 를 한국어 instruction 데이터(KoAlpaca v1.1a)로 QLoRA 추가 학습한 모델입니다.
from transformers import AutoProcessor, AutoModelForImageTextToText
import torch
model_id = "ION-Communications/gemma-3n-E2B-ko"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(
model_id,
dtype=torch.bfloat16,
device_map="auto",
)
messages = [
{
"role": "user",
"content": [
{"type": "text", "text": "한국의 수도는?"}
],
}
]
input_ids = processor.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_tensors="pt",
).to(model.device)
out = model.generate(
input_ids=input_ids,
max_new_tokens=128,
)
print(processor.decode(out[0], skip_special_tokens=True))