Downloads · 30 days
23
3% of all-time downloads
OdiaGenAI/odiagenAI_llama7b_base_v1
odiagenAI_llama7b_base_v1 is a text generation model from OdiaGenAI. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
Downloads · 30 days
23
3% of all-time downloads
All-time downloads
808
Public
Repo size
27 GB
Likes
0
Public
Click a slice to open those files.
.bin13.5 GB · 100%
From the Hugging Face model README
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "OdiaGenAI/odiagenAI_llama7b_base_v1"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code = True)
prompt = "ଭାରତ ବିଷୟରେ କିଛି କୁହନ୍ତୁ"
inputs = tokenizer.encode(prompt, return_tensors="pt").to(device)
device = "cuda" if torch.cuda.is_available() else "cpu"
model = AutoModelForCausalLM.from_pretrained(model_id).to(device)
outputs = model.generate(inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))