Downloads · 30 days
17
47% of all-time downloads
RichardErkhov/damerajee_-_tinyllama-sft-small-v2-awq
damerajee_-_tinyllama-sft-small-v2-awq 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
17
47% of all-time downloads
All-time downloads
36
Public
Parameters
1.1B
766 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors766 MB · 99%
How the weights are stored.
I32969M · 88%
From the Hugging Face model README
Quantization made by Richard Erkhov.
tinyllama-sft-small-v2 - AWQ
library_name: transformers base_model: unsloth/tinyllama-bnb-4bit license: mit datasets:
alpaca_prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
{}
### Input:
{}
### Response:
{}"""
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("damerajee/tinyllama-sft-small-v2")
model = AutoModelForCausalLM.from_pretrained("damerajee/tinyllama-sft-small-v2")
inputs = tokenizer(
[
alpaca_prompt.format(
"best places to visit in india", # instruction
"", # input
"", # output
)
]*1, return_tensors = "pt")
outputs = model.generate(**inputs, max_new_tokens = 128, use_cache = True)
tokenizer.batch_decode(outputs)
The base model unsloth/tinyllama-bnb-4bit was Instruct finetuned using Unsloth
The model was trained on a very small dataset so it might not be as good ,will be training on larger dataset soon
The model was trained for 1 epoch on a free goggle colab which took about 1 hour and 30 mins approximately