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="Ramikan-BR/tinyllama-coder-py-v11")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("Ramikan-BR/tinyllama-coder-py-v11")
model = AutoModelForCausalLM.from_pretrained("Ramikan-BR/tinyllama-coder-py-v11")
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

datasets: code.evol.instruct.wiz.oss_python.json

==((====))==  Unsloth - 2x faster free finetuning | Num GPUs = 1
   \\   /|    Num examples = 937 | Num Epochs = 2
O^O/ \_/ \    Batch size per device = 2 | Gradient Accumulation steps = 256
\        /    Total batch size = 512 | Total steps = 2
 "-____-"     Number of trainable parameters = 201,850,880
 [2/2 22:36, Epoch 1/2]
Step	Training Loss
1	0.707400
2	0.717800

Uploaded model

  • Developed by: Ramikan-BR
  • License: apache-2.0
  • Finetuned from model : unsloth/tinyllama-chat-bnb-4bit

This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.

Downloads last month
807
Safetensors
Model size
1B params
Tensor type
F16
·
Inference Providers NEW
Input a message to start chatting with Ramikan-BR/tinyllama-coder-py-v11.

Model tree for Ramikan-BR/tinyllama-coder-py-v11

Quantized
(63)
this model

Dataset used to train Ramikan-BR/tinyllama-coder-py-v11

Space using Ramikan-BR/tinyllama-coder-py-v11 1