Run this model with HF Jobs

Run suayptalha/FastLlama-3.2-3B-Instruct on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/suayptalha/FastLlama-3.2-3B-Instruct. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/suayptalha/FastLlama-3.2-3B-Instruct on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/suayptalha/FastLlama-3.2-3B-Instruct. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/suayptalha/FastLlama-3.2-3B-Instruct. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

FastLlama-Logo

You can use ChatML & Alpaca format.

You can chat with the model via this space.

Overview:

FastLlama-3.2-3B-Instruct is a highly optimized version of the Llama-3.2-3B-Instruct model. Designed for superior performance in constrained environments, it combines speed, compactness, and high accuracy. This version has been fine-tuned using the MetaMathQA-50k section of the HuggingFaceTB/smoltalk dataset to enhance its mathematical reasoning and problem-solving abilities.

Features:

Lightweight and Fast: Optimized to deliver Llama-class capabilities with reduced computational overhead.

Fine-Tuned for Math Reasoning: Utilizes MetaMathQA-50k for better handling of complex mathematical problems and logical reasoning tasks.

Instruction-Tuned: Pre-trained on instruction-following tasks, making it robust in understanding and executing detailed queries.

Versatile Use Cases: Suitable for educational tools, tutoring systems, or any application requiring mathematical reasoning.

Performance Highlights:

Smaller Footprint: The model delivers comparable results to larger counterparts while operating efficiently on smaller hardware.

Enhanced Accuracy: Demonstrates improved performance on mathematical QA benchmarks.

Instruction Adherence: Retains high fidelity in understanding and following user instructions, even for complex queries.

Loading the Model:

import torch
from transformers import pipeline

model_id = "suayptalha/FastLlama-3.2-3B-Instruct"
pipe = pipeline(
    "text-generation",
    model=model_id,
    device_map="auto",
)
messages = [
    {"role": "system", "content": "You are a friendly assistant named FastLlama."},
    {"role": "user", "content": "Who are you?"},
]
outputs = pipe(
    messages,
    max_new_tokens=256,
)
print(outputs[0]["generated_text"][-1])

Dataset:

Dataset: MetaMathQA-50k

The MetaMathQA-50k subset of HuggingFaceTB/smoltalk was selected for fine-tuning due to its focus on mathematical reasoning, multi-step problem-solving, and logical inference. The dataset includes:

Algebraic problems

Geometric reasoning tasks

Statistical and probabilistic questions

Logical deduction problems

Model Fine-Tuning:

Fine-tuning was conducted using the following configuration:

Learning Rate: 2e-4

Epochs: 1

Optimizer: AdamW

Framework: Unsloth

License:

This model is licensed under the Apache 2.0 License. See the LICENSE file for details.

Buy Me A Coffee

Downloads last month
20
Safetensors
Model size
3B params
Tensor type
F16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for suayptalha/FastLlama-3.2-3B-Instruct

Adapter
(904)
this model

Dataset used to train suayptalha/FastLlama-3.2-3B-Instruct

Collection including suayptalha/FastLlama-3.2-3B-Instruct