Instructions to use FatUnc6969/tiny-aya-borderland-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use FatUnc6969/tiny-aya-borderland-sft with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("CohereLabs/tiny-aya-global") model = PeftModel.from_pretrained(base_model, "FatUnc6969/tiny-aya-borderland-sft") - Transformers
How to use FatUnc6969/tiny-aya-borderland-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FatUnc6969/tiny-aya-borderland-sft") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("FatUnc6969/tiny-aya-borderland-sft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FatUnc6969/tiny-aya-borderland-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FatUnc6969/tiny-aya-borderland-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": "FatUnc6969/tiny-aya-borderland-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FatUnc6969/tiny-aya-borderland-sft
- SGLang
How to use FatUnc6969/tiny-aya-borderland-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 "FatUnc6969/tiny-aya-borderland-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": "FatUnc6969/tiny-aya-borderland-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 "FatUnc6969/tiny-aya-borderland-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": "FatUnc6969/tiny-aya-borderland-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FatUnc6969/tiny-aya-borderland-sft with Docker Model Runner:
docker model run hf.co/FatUnc6969/tiny-aya-borderland-sft
Download train_log.json from FatUnc6969/tiny-aya-borderland-sft: direct link, hf CLI and curl.
- Browser
- Download file 8.7 kB
-
https://huggingface.co/FatUnc6969/tiny-aya-borderland-sft/resolve/main/train_log.json
- Command line
-
hf download hf://FatUnc6969/tiny-aya-borderland-sft/train_log.json
-
curl -L -o train_log.json https://huggingface.co/FatUnc6969/tiny-aya-borderland-sft/resolve/main/train_log.json
8.7 kB
| { | |
| "stats": { | |
| "rows": 2240, | |
| "by_room": { | |
| "1": 210, | |
| "2": 350, | |
| "3": 420, | |
| "4": 420, | |
| "5": 140, | |
| "6": 420, | |
| "7": 280 | |
| }, | |
| "by_tool": { | |
| "exit_room": 420, | |
| "read_record": 350, | |
| "notebook_write": 140, | |
| "certify_roster": 70, | |
| "move": 70, | |
| "settle": 70, | |
| "set_switch": 70, | |
| "accuse": 70, | |
| "revoke": 70, | |
| "question": 70, | |
| "probe": 70, | |
| "activate_relay": 70, | |
| "survey": 70, | |
| "allocate_points": 70, | |
| "accept_amendment": 70, | |
| "validate_registry": 70, | |
| "wait": 70, | |
| "choose_door": 70, | |
| "energize": 70, | |
| "team_step": 70, | |
| "submit_bid": 70, | |
| "unlock": 70 | |
| }, | |
| "total_steps": 140, | |
| "warmup_steps": 7, | |
| "length_check": { | |
| "kept": 2240, | |
| "dropped_too_long": 0, | |
| "tokens_p50": 3311, | |
| "tokens_p95": 4925, | |
| "tokens_max": 5536 | |
| } | |
| }, | |
| "log_history": [ | |
| { | |
| "loss": 2.3082555770874023, | |
| "grad_norm": 1.8011609315872192, | |
| "learning_rate": 5.714285714285714e-05, | |
| "entropy": 1.924007774889469, | |
| "num_tokens": 253809.0, | |
| "mean_token_accuracy": 0.599230021238327, | |
| "epoch": 0.03571428571428571, | |
| "step": 5 | |
| }, | |
| { | |
| "loss": 1.4077128410339355, | |
| "grad_norm": 0.9954639077186584, | |
| "learning_rate": 9.99442152244292e-05, | |
| "entropy": 1.7174856968224048, | |
| "num_tokens": 502202.0, | |
| "mean_token_accuracy": 0.7338622957468033, | |
| "epoch": 0.07142857142857142, | |
| "step": 10 | |
| }, | |
| { | |
| "loss": 0.6519043445587158, | |
| "grad_norm": 0.8197742104530334, | |
| "learning_rate": 9.931806517013612e-05, | |
| "entropy": 0.9993893440812827, | |
| "num_tokens": 757964.0, | |
| "mean_token_accuracy": 0.8630569271743298, | |
| "epoch": 0.10714285714285714, | |
| "step": 15 | |
| }, | |
| { | |
| "loss": 0.3550464153289795, | |
| "grad_norm": 0.49438920617103577, | |
| "learning_rate": 9.800478715695163e-05, | |
| "entropy": 0.3915622474625707, | |
| "num_tokens": 1009008.0, | |
| "mean_token_accuracy": 0.9089780665934086, | |
| "epoch": 0.14285714285714285, | |
| "step": 20 | |
| }, | |
| { | |
| "loss": 0.21887736320495604, | |
| "grad_norm": 0.36409586668014526, | |
| "learning_rate": 9.602267853773301e-05, | |
| "entropy": 0.2362796171568334, | |
| "num_tokens": 1259491.0, | |
| "mean_token_accuracy": 0.933514841645956, | |
| "epoch": 0.17857142857142858, | |
| "step": 25 | |
| }, | |
| { | |
| "loss": 0.1587940812110901, | |
| "grad_norm": 0.5853434801101685, | |
| "learning_rate": 9.339935520221816e-05, | |
| "entropy": 0.17388242047745733, | |
| "num_tokens": 1509873.0, | |
| "mean_token_accuracy": 0.9394914679229259, | |
| "epoch": 0.21428571428571427, | |
| "step": 30 | |
| }, | |
| { | |
| "loss": 0.11007497310638428, | |
| "grad_norm": 0.6032337546348572, | |
| "learning_rate": 9.017136681639307e-05, | |
| "entropy": 0.11828422436956317, | |
| "num_tokens": 1758977.0, | |
| "mean_token_accuracy": 0.9520887114107609, | |
| "epoch": 0.25, | |
| "step": 35 | |
| }, | |
| { | |
| "loss": 0.12803417444229126, | |
| "grad_norm": 0.3280295729637146, | |
| "learning_rate": 8.638368759129432e-05, | |
| "entropy": 0.13663853462785483, | |
| "num_tokens": 2002833.0, | |
| "mean_token_accuracy": 0.9474316641688347, | |
| "epoch": 0.2857142857142857, | |
| "step": 40 | |
| }, | |
| { | |
| "loss": 0.07791627049446107, | |
| "grad_norm": 0.20620518922805786, | |
| "learning_rate": 8.208908967615159e-05, | |
| "entropy": 0.0921334425918758, | |
| "num_tokens": 2262629.0, | |
| "mean_token_accuracy": 0.9643924929201603, | |
| "epoch": 0.32142857142857145, | |
| "step": 45 | |
| }, | |
| { | |
| "loss": 0.0867004632949829, | |
| "grad_norm": 0.2634517252445221, | |
| "learning_rate": 7.734740790612136e-05, | |
| "entropy": 0.09652150864712894, | |
| "num_tokens": 2515849.0, | |
| "mean_token_accuracy": 0.9604796424508095, | |
| "epoch": 0.35714285714285715, | |
| "step": 50 | |
| }, | |
| { | |
| "loss": 0.07734505534172058, | |
| "grad_norm": 0.2421739101409912, | |
| "learning_rate": 7.22247061485738e-05, | |
| "entropy": 0.08714312266092747, | |
| "num_tokens": 2770055.0, | |
| "mean_token_accuracy": 0.9640277430415154, | |
| "epoch": 0.39285714285714285, | |
| "step": 55 | |
| }, | |
| { | |
| "loss": 0.07502096891403198, | |
| "grad_norm": 0.2778087854385376, | |
| "learning_rate": 6.679235686288114e-05, | |
| "entropy": 0.08495358861982823, | |
| "num_tokens": 3021942.0, | |
| "mean_token_accuracy": 0.961622005701065, | |
| "epoch": 0.42857142857142855, | |
| "step": 60 | |
| }, | |
| { | |
| "loss": 0.07568947672843933, | |
| "grad_norm": 0.3631487488746643, | |
| "learning_rate": 6.112604669781572e-05, | |
| "entropy": 0.08415966737084091, | |
| "num_tokens": 3272935.0, | |
| "mean_token_accuracy": 0.9626090429723263, | |
| "epoch": 0.4642857142857143, | |
| "step": 65 | |
| }, | |
| { | |
| "loss": 0.05559830069541931, | |
| "grad_norm": 0.20246540009975433, | |
| "learning_rate": 5.5304721981152906e-05, | |
| "entropy": 0.0698808248678688, | |
| "num_tokens": 3529729.0, | |
| "mean_token_accuracy": 0.9714247591793537, | |
| "epoch": 0.5, | |
| "step": 70 | |
| }, | |
| { | |
| "loss": 0.06579182147979737, | |
| "grad_norm": 0.29757779836654663, | |
| "learning_rate": 4.940948879353078e-05, | |
| "entropy": 0.06531957963015884, | |
| "num_tokens": 3786562.0, | |
| "mean_token_accuracy": 0.9715603567659855, | |
| "epoch": 0.5357142857142857, | |
| "step": 75 | |
| }, | |
| { | |
| "loss": 0.08219568729400635, | |
| "grad_norm": 0.23626039922237396, | |
| "learning_rate": 4.352248295137739e-05, | |
| "entropy": 0.08536248205928132, | |
| "num_tokens": 4034716.0, | |
| "mean_token_accuracy": 0.9576827511191368, | |
| "epoch": 0.5714285714285714, | |
| "step": 80 | |
| }, | |
| { | |
| "loss": 0.07122420668601989, | |
| "grad_norm": 0.24073101580142975, | |
| "learning_rate": 3.772572564296005e-05, | |
| "entropy": 0.08287469877395778, | |
| "num_tokens": 4279841.0, | |
| "mean_token_accuracy": 0.9620555654168129, | |
| "epoch": 0.6071428571428571, | |
| "step": 85 | |
| }, | |
| { | |
| "loss": 0.07137401700019837, | |
| "grad_norm": 0.3494947850704193, | |
| "learning_rate": 3.209998066150102e-05, | |
| "entropy": 0.07777745738858358, | |
| "num_tokens": 4535827.0, | |
| "mean_token_accuracy": 0.9645444139838218, | |
| "epoch": 0.6428571428571429, | |
| "step": 90 | |
| }, | |
| { | |
| "loss": 0.06917027831077575, | |
| "grad_norm": 0.20226973295211792, | |
| "learning_rate": 2.6723629157051844e-05, | |
| "entropy": 0.07576370115857571, | |
| "num_tokens": 4805997.0, | |
| "mean_token_accuracy": 0.9665109172463417, | |
| "epoch": 0.6785714285714286, | |
| "step": 95 | |
| }, | |
| { | |
| "loss": 0.06458954811096192, | |
| "grad_norm": 0.17830058932304382, | |
| "learning_rate": 2.16715775847379e-05, | |
| "entropy": 0.06994976347195916, | |
| "num_tokens": 5054641.0, | |
| "mean_token_accuracy": 0.9714701123535633, | |
| "epoch": 0.7142857142857143, | |
| "step": 100 | |
| }, | |
| { | |
| "loss": 0.05846306085586548, | |
| "grad_norm": 0.12310705333948135, | |
| "learning_rate": 1.7014214064472643e-05, | |
| "entropy": 0.07151234462508001, | |
| "num_tokens": 5303440.0, | |
| "mean_token_accuracy": 0.9699518702924251, | |
| "epoch": 0.75, | |
| "step": 105 | |
| }, | |
| { | |
| "loss": 0.07360235452651978, | |
| "grad_norm": 0.24493782222270966, | |
| "learning_rate": 1.281642769274552e-05, | |
| "entropy": 0.08582098101032898, | |
| "num_tokens": 5547681.0, | |
| "mean_token_accuracy": 0.9633615992963314, | |
| "epoch": 0.7857142857142857, | |
| "step": 110 | |
| }, | |
| { | |
| "loss": 0.05608382225036621, | |
| "grad_norm": 0.16091300547122955, | |
| "learning_rate": 9.1367044700011e-06, | |
| "entropy": 0.06272797302226536, | |
| "num_tokens": 5806379.0, | |
| "mean_token_accuracy": 0.9729494743049145, | |
| "epoch": 0.8214285714285714, | |
| "step": 115 | |
| }, | |
| { | |
| "loss": 0.05381621122360229, | |
| "grad_norm": 0.20473070442676544, | |
| "learning_rate": 6.026312439675552e-06, | |
| "entropy": 0.06497956082457676, | |
| "num_tokens": 6052516.0, | |
| "mean_token_accuracy": 0.9735886611044406, | |
| "epoch": 0.8571428571428571, | |
| "step": 120 | |
| }, | |
| { | |
| "loss": 0.0619437038898468, | |
| "grad_norm": 0.24766595661640167, | |
| "learning_rate": 3.5285873920067157e-06, | |
| "entropy": 0.07086375729413703, | |
| "num_tokens": 6307257.0, | |
| "mean_token_accuracy": 0.9696942292153835, | |
| "epoch": 0.8928571428571429, | |
| "step": 125 | |
| }, | |
| { | |
| "loss": 0.040760698914527896, | |
| "grad_norm": 0.17959436774253845, | |
| "learning_rate": 1.6783290846078714e-06, | |
| "entropy": 0.05524607709958218, | |
| "num_tokens": 6574483.0, | |
| "mean_token_accuracy": 0.9763940751552582, | |
| "epoch": 0.9285714285714286, | |
| "step": 130 | |
| }, | |
| { | |
| "loss": 0.05032203197479248, | |
| "grad_norm": 0.23235975205898285, | |
| "learning_rate": 5.013163920110864e-07, | |
| "entropy": 0.06416633104963694, | |
| "num_tokens": 6838827.0, | |
| "mean_token_accuracy": 0.9710250571370125, | |
| "epoch": 0.9642857142857143, | |
| "step": 135 | |
| }, | |
| { | |
| "loss": 0.0721033275127411, | |
| "grad_norm": 0.252513587474823, | |
| "learning_rate": 1.394813939862849e-08, | |
| "entropy": 0.08034163875854575, | |
| "num_tokens": 7096614.0, | |
| "mean_token_accuracy": 0.9656541526317597, | |
| "epoch": 1.0, | |
| "step": 140 | |
| }, | |
| { | |
| "train_runtime": 6465.3444, | |
| "train_samples_per_second": 0.346, | |
| "train_steps_per_second": 0.022, | |
| "total_flos": 1.2232349391635251e+17, | |
| "train_loss": 0.23851468126688685, | |
| "epoch": 1.0, | |
| "step": 140 | |
| } | |
| ] | |
| } |