Downloads · 30 days
2
11% of all-time downloads
RichardErkhov/Corianas_-_tiny-llama-miniguanaco-1.5T-4bits
Corianas_-_tiny-llama-miniguanaco-1.5T-4bits is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
2
11% of all-time downloads
All-time downloads
18
Public
Parameters
1.1B
808 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors807 MB · 100%
How the weights are stored.
U8969M · 87%
From the Hugging Face model README
Quantization made by Richard Erkhov.
tiny-llama-miniguanaco-1.5T - bnb 4bits
language:
TinyLLama 1.5T checkpoint trained to answer questions.
f"{'prompt'}\n{'completion'}\n<END>"
No special formatting, just question, then newline to begin the answer.
from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
pipe = pipeline("text-generation", model="Corianas/tiny-llama-miniguanaco-1.5T")# Load model directly
tokenizer = AutoTokenizer.from_pretrained("Corianas/tiny-llama-miniguanaco-1.5T")
model = AutoModelForCausalLM.from_pretrained("Corianas/tiny-llama-miniguanaco-1.5T")
# Run text generation pipeline with our next model
prompt = "What is a large language model?"
pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=500)
result = pipe(f"<s>{prompt}")
print(result[0]['generated_text'])
Result will have the answer, ending with <END> on a new line.