Downloads · 30 days
60
32% of all-time downloads
hillfieldhonest/aozoranemo292m
aozoranemo292m is a text generation model from hillfieldhonest. 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.
Japanese mini LLM (~292M params). SentencePiece 16k.
Downloads · 30 days
60
32% of all-time downloads
All-time downloads
188
Public
Parameters
279M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
From the Hugging Face model README
Japanese mini LLM (~292M params). SentencePiece 16k.
checkpoint-100(継続学習は step=600 まで)from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
repo = "hillfieldhonest/aozoranemo292m"
tok = AutoTokenizer.from_pretrained(repo, use_fast=False)
if tok.pad_token is None: tok.pad_token = tok.eos_token
dtype = (torch.bfloat16 if torch.cuda.is_available() and torch.cuda.is_bf16_supported()
else torch.float16 if torch.cuda.is_available() else torch.float32)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=dtype, device_map="auto").eval()
out = model.generate(**tok("2文以内で自己紹介して。", return_tensors="pt").to(model.device),
max_new_tokens=96, do_sample=True, temperature=0.7, top_p=0.9)
print(tok.decode(out[0], skip_special_tokens=True))