Downloads · 30 days
569
100% of all-time downloads
picur/picur-120M-base
picur-120M-base is a text generation model from picur. 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.
Downloads · 30 days
569
100% of all-time downloads
All-time downloads
569
Public
Parameters
120M
242 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors241 MB · 98%
From the Hugging Face model README
PREVIEW!
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "picur/picur-120M-base"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
prompt = "Egyszer volt hol nem volt, a digitális tengeren "
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=100,
do_sample=True,
temperature=0.7
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))