How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="atharvanighot/tinyllama-cpt")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("atharvanighot/tinyllama-cpt")
model = AutoModelForCausalLM.from_pretrained("atharvanighot/tinyllama-cpt")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Model Card for Model ID

Reupload of unsloth/tinyllama model with custom Hindi Tokenizer having vocab size of around 57K tokens. 32K base tokens + Additional Hindi Tokens.

Trained on Harshitkaran/Hindi and AIR-Bench/qa_news_hi

Model Details

This model is under development and not finished for final usage.

Model Description

  • Developed by: [More Information Needed]
  • Funded by [optional]: [More Information Needed]
  • Shared by [optional]: [More Information Needed]
  • Model type: [More Information Needed]
  • Language(s) (NLP): [More Information Needed]
  • License: [More Information Needed]
  • Finetuned from model [optional]: [More Information Needed]
 _   _ _           _ _   _     _          __  __    _
| | | (_)_ __   __| (_) | |   | |    __ _|  \/  |  / \
| |_| | | '_ \ / _` | | | |   | |   / _` | |\/| | / _ \
|  _  | | | | | (_| | | | |___| |__| (_| | |  | |/ ___ \
|_| |_|_|_| |_|\__,_|_| |_____|_____\__,_|_|  |_/_/   \_\
Downloads last month
1
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for atharvanighot/tinyllama-cpt

Finetunes
1 model
Quantizations
1 model