You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Tiny Aya Global retail SFT

Merged BF16 retail SFT checkpoint 158 from the 700-example retail synthetic-data run (630 training and 70 validation examples, two epochs). The complete corpus contains 500 clean conversations, including calculator examples, and 200 tool-error recovery conversations. Injected failed calls were context-only training inputs, excluded from supervised targets.

This export preserves the checkpoint's exact tokenizer and Jinja chat template. Assistant actions use <tool_call>{"name":"...","arguments":{...}}</tool_call>. Store actual tool results with role="tool"; the template renders them in the Aya tool-response format used during SFT. Use the included retail_system_prompt.txt for the retail policy and catalog.

from pathlib import Path
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
from huggingface_hub import hf_hub_download

repo = "GL3MON/tiny-aya-global-retail-sft"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo, dtype=torch.bfloat16, device_map="auto")
policy = Path(hf_hub_download(repo, "retail_system_prompt.txt")).read_text()
messages = [{"role": "system", "content": policy},
            {"role": "user", "content": "I need help with an order."}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True,
    return_dict=True, return_tensors="pt").to(model.device)
with torch.inference_mode():
    result = model.generate(**inputs, max_new_tokens=256, do_sample=False, logits_to_keep=1)
print(tokenizer.decode(result[0, inputs["input_ids"].shape[1]:], skip_special_tokens=True))

Use Transformers for this checkpoint. The tested vLLM 0.17.1 configuration produced incoherent long-prompt outputs; compatibility has not been established. Validation loss does not establish successful end-to-end retail task execution. Tool calls require application-side schema checks and execution.

source_adapter/ preserves the unmerged source LoRA and tokenizer. export_manifest.json records the exact checkpoint, hashes, and upstream revision. Refer to the upstream model and dataset terms for applicable licenses.

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

Model tree for GL3MON/tiny-aya-global-retail-sft