Downloads · 30 days
13
9% of all-time downloads
Tlgoa/tmr-ai-nano
tmr-ai-nano is a machine learning model from Tlgoa. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for mlx. The card lists the license as other.
This is a fine-tuned version of Google's gemma-3-270m-it model, adapted for financial instruction-following tasks.
Downloads · 30 days
13
9% of all-time downloads
All-time downloads
137
Public
Parameters
268M
1.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors1.1 GB · 96%
From the Hugging Face model README
This is a fine-tuned version of Google's gemma-3-270m-it model, adapted for financial instruction-following tasks.
This model was fine-tuned using the Apple MLX framework. The goal was to specialize the base model for financial reporting summary and decision-making assistance. It was trained on the Josephgflowers/Finance-Instruct-500k dataset.
This model is intended for tasks related to the financial domain, such as:
You can use this model with the transformers library just like any other standard Hugging Face model.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "tlgoa/tmr-ai-nano"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Note: Gemma 3 uses a specific chat template.
# For single-turn inference, you can format it like this:
prompt = "What is the difference between revenue and profit?"
formatted_prompt = f"### User:\n{prompt}\n\n### Assistant:"
inputs = tokenizer(formatted_prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
# Clean up the response to only show the assistant's part
assistant_response = response.split("### Assistant:")[1].strip()
print(assistant_response)
The model was fine-tuned on the Josephgflowers/Finance-Instruct-500k dataset. The data was preprocessed to fit the following format:
### User:
{user_prompt}
### Assistant:
{assistant_response}
The model was fine-tuned directly (full parameter tuning) using an Adam optimizer. Due to challenges with LoRA implementation in the available MLX version, a full fine-tuning approach was chosen. The fine-tuned weights were originally saved in MLX's .npz format and subsequently converted back to Hugging Face safetensors format for distribution.
Josephgflowers/Finance-Instruct-500k is available under the Apache 2.0 License.