Downloads · 30 days
64
31% of all-time downloads
kcoopermiller/llm-jp-1.3b-v1.0-aya
llm-jp-1.3b-v1.0-aya is a text generation model from kcoopermiller. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
llm-jp's llm-jp-1.3b-v1.0 model fine-tuned on the Japanese examples from Cohere's aya dataset
Downloads · 30 days
64
31% of all-time downloads
All-time downloads
209
Public
Parameters
1.3B
5.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.3 GB · 100%
From the Hugging Face model README
llm-jp's llm-jp-1.3b-v1.0 model fine-tuned on the Japanese examples from Cohere's aya dataset
| Model | llm-jp-eval AVG |
|---|---|
| kcoopermiller/llm-jp-1.3b-v1.0-aya | 0.0698 |
| llm-jp/llm-jp-1.3b-v1.0 | 0.047 |
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("kcoopermiller/llm-jp-1.3b-v1.0-aya")
model = AutoModelForCausalLM.from_pretrained("kcoopermiller/llm-jp-1.3b-v1.0-aya", device_map="auto")
text = "自然言語処理とは何か"
tokenized_input = tokenizer.encode(text, add_special_tokens=False, return_tensors="pt").to(model.device)
with torch.no_grad():
output = model.generate(
tokenized_input,
max_new_tokens=20,
do_sample=True,
top_p=0.90,
temperature=0.7,
)[0]
print(tokenizer.decode(output))