Downloads · 30 days
92
1% of all-time downloads
ai-nexuz/llama-3.2-1b-instruct-fine-tuned
llama-3.2-1b-instruct-fine-tuned is a text generation model from ai-nexuz. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
92
1% of all-time downloads
All-time downloads
9K
Public
Parameters
1.2B
17.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin2.5 GB · 50%
From the Hugging Face model README
Model Card for Hugging Face Repository
This is a fine-tuned version of the LLaMA-3.2-1B-Instruct model. Fine-tuned using the kanhatakeyama/wizardlm8x22b-logical-math-coding-sft dataset, this model is specialized in logical reasoning, mathematical problem-solving, and coding tasks. Training was performed using Unsloth on Google Colab, optimized for performance and usability.
kanhatakeyama/wizardlm8x22b-logical-math-coding-sftllama, fine-tuning, instruction-following, math, coding, logical-reasoning, unslothThe fine-tuning dataset, kanhatakeyama/wizardlm8x22b-logical-math-coding-sft, is curated for advanced reasoning tasks. It contains:
Dataset Link: kanhatakeyama/wizardlm8x22b-logical-math-coding-sft
This model is ideal for tasks such as:
To use this model, install the required dependencies:
pip install transformers datasets torch accelerate
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load the fine-tuned model and tokenizer
model_name = "ai-nexuz/llama-3.2-1b-instruct-fine-tuned"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "Solve this equation: 2x + 3 = 7. Find x."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
While this model is highly proficient in logical reasoning, mathematics, and coding tasks, there are some limitations:
pip install gradio
import gradio as gr
def generate_response(prompt):
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=200)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
gr.Interface(fn=generate_response, inputs="text", outputs="text").launch()
This model can also be accessed using the Hugging Face Inference API for hosted deployment:
from transformers import pipeline
pipe = pipeline("text-generation", model="ai-nexuz/llama-3.2-1b-instruct-fine-tuned")
result = pipe("Explain the concept of recursion in programming.")
print(result)
This fine-tuning work was made possible by:
If you use this model in your research or project, please cite it as:
@model{llama31b_instruct_finetuned,
title={Fine-Tuned LLaMA-3.2-1B-Instruct},
author={Your Name},
year={2024},
url={https://huggingface.co/your-huggingface-repo/llama-3.2-1b-instruct-finetuned},
}
This model is released under the Apache 2.0 License. See LICENSE for details.
Tags:
llama fine-tuning math coding logical-reasoning instruction-following transformers
Summary:
A fine-tuned version of LLaMA-3.2-1B-Instruct specializing in logical reasoning, math problem-solving, and code generation. Perfect for AI-driven tutoring, programming assistance, and logical problem-solving tasks.