Downloads · 30 days
14
20% of all-time downloads
RichardErkhov/otonomy_-_Cn_2_9_3_Hinglish_llama3_7b_8kAk-4bits
otonomy_-_Cn_2_9_3_Hinglish_llama3_7b_8kAk-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
14
20% of all-time downloads
All-time downloads
69
Public
Parameters
8.1B
6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6 GB · 100%
How the weights are stored.
U87B · 86%
From the Hugging Face model README
Quantization made by Richard Erkhov.
Cn_2_9_3_Hinglish_llama3_7b_8kAk - bnb 4bits
base_model: cognitivecomputations/dolphin-2.9.3-llama-3-8b language:
from transformers import AutoTokenizer, LlamaForCausalLM
model = LlamaForCausalLM.from_pretrained("otonomy/Cn_2_9_3_Hinglish_llama3_7b_8kAk")
tokenizer = AutoTokenizer.from_pretrained("otonomy/Cn_2_9_3_Hinglish_llama3_7b_8kAK")
prompt = "ky tumhe la la land pasand hai?"
inputs = tokenizer(prompt, return_tensors="pt")
# Generate
generate_ids = model.generate(inputs.input_ids, max_length=30)
tokenizer.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0]
# Use a pipeline as a high-level helper
from transformers import pipeline
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe = pipeline("text-generation", model="otonomy/Cn_2_9_3_Hinglish_llama3_7b_8kAk")
pipe(messages)