Instructions to use GL3MON/tiny-aya-global-retail-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GL3MON/tiny-aya-global-retail-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GL3MON/tiny-aya-global-retail-sft") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("GL3MON/tiny-aya-global-retail-sft") model = AutoModelForCausalLM.from_pretrained("GL3MON/tiny-aya-global-retail-sft", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GL3MON/tiny-aya-global-retail-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GL3MON/tiny-aya-global-retail-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GL3MON/tiny-aya-global-retail-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/GL3MON/tiny-aya-global-retail-sft
- SGLang
How to use GL3MON/tiny-aya-global-retail-sft with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "GL3MON/tiny-aya-global-retail-sft" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GL3MON/tiny-aya-global-retail-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "GL3MON/tiny-aya-global-retail-sft" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GL3MON/tiny-aya-global-retail-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use GL3MON/tiny-aya-global-retail-sft with Docker Model Runner:
docker model run hf.co/GL3MON/tiny-aya-global-retail-sft
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
Model tree for GL3MON/tiny-aya-global-retail-sft
Base model
CohereLabs/tiny-aya-base