Downloads · 30 days
53
9% of all-time downloads
sam2ai/falcon-base-1b-odia-pt
falcon-base-1b-odia-pt is a text generation model from sam2ai. 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
53
9% of all-time downloads
All-time downloads
611
Public
Repo size
5.7 GB
Likes
0
Public
Click a slice to open those files.
.bin2.9 GB · 100%
From the Hugging Face model README
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch
model = "sam2ai/falcon-base-1b-odia-pt"
tokenizer = AutoTokenizer.from_pretrained(model)
pipeline = transformers.pipeline(
"text-generation",
model=model,
tokenizer=tokenizer,
torch_dtype=torch.bfloat16,
device_map="auto",
)
sequences = pipeline(
"ମୁଁ ହେବାକୁ ଚାହେଁ",
max_length=1024,
do_sample=True,
top_k=10,
num_return_sequences=1,
eos_token_id=tokenizer.eos_token_id,
)
for seq in sequences:
print(f"Result: {seq['generated_text']}")