Text Generation
Transformers
Safetensors
English
Hindi
llama
text-to-json
home-automation
tiny-model
from-scratch
experimental
edge-ai
conversational
text-generation-inference
Instructions to use sraivante/superfast-tiny-home-robotics-json-1m-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sraivante/superfast-tiny-home-robotics-json-1m-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sraivante/superfast-tiny-home-robotics-json-1m-v1") 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("sraivante/superfast-tiny-home-robotics-json-1m-v1") model = AutoModelForCausalLM.from_pretrained("sraivante/superfast-tiny-home-robotics-json-1m-v1", 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 sraivante/superfast-tiny-home-robotics-json-1m-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sraivante/superfast-tiny-home-robotics-json-1m-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sraivante/superfast-tiny-home-robotics-json-1m-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sraivante/superfast-tiny-home-robotics-json-1m-v1
- SGLang
How to use sraivante/superfast-tiny-home-robotics-json-1m-v1 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 "sraivante/superfast-tiny-home-robotics-json-1m-v1" \ --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": "sraivante/superfast-tiny-home-robotics-json-1m-v1", "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 "sraivante/superfast-tiny-home-robotics-json-1m-v1" \ --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": "sraivante/superfast-tiny-home-robotics-json-1m-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sraivante/superfast-tiny-home-robotics-json-1m-v1 with Docker Model Runner:
docker model run hf.co/sraivante/superfast-tiny-home-robotics-json-1m-v1
Download training/run.json from sraivante/superfast-tiny-home-robotics-json-1m-v1: direct link, hf CLI and curl.
- Browser
- Download file 1.02 kB
-
https://huggingface.co/sraivante/superfast-tiny-home-robotics-json-1m-v1/resolve/main/training/run.json
- Command line
-
hf download hf://sraivante/superfast-tiny-home-robotics-json-1m-v1/training/run.json
-
curl -L -o run.json https://huggingface.co/sraivante/superfast-tiny-home-robotics-json-1m-v1/resolve/main/training/run.json
1.02 kB
| { | |
| "fingerprint": "6927e6b2117b96a33e9d274070d784770782e9cedc39910a67bc733b1d7a134e", | |
| "settings": { | |
| "epochs": 1, | |
| "micro_batch": 128, | |
| "effective_batch": 512, | |
| "learning_rate": 0.001, | |
| "weight_decay": 0.1, | |
| "warmup_fraction": 0.05, | |
| "seed": 20260925, | |
| "validation_rows": 4096, | |
| "validation_every": 200, | |
| "objective": "causal next-token prediction on full input+JSON sequences; padding and first BOS excluded", | |
| "manifest_sha256": "2ead74207a38ad593819da12c52392bad8a273cc62e6842a8278ebffaa561eaa" | |
| }, | |
| "device": "NVIDIA A100-SXM4-80GB", | |
| "torch": "2.11.0+cu128", | |
| "data_manifest": "/content/tiny_json_workspace/prepared/home_commands_v1/manifest.json", | |
| "parameters": 1094240, | |
| "training_tokens_planned": 22655302, | |
| "unique_train_tokens_per_parameter": 20.70414351513379, | |
| "repeated_data_epochs": 1, | |
| "status": "completed", | |
| "step": 1778, | |
| "tokens_seen": 22655302, | |
| "actual_tokens_per_parameter": 20.70414351513379, | |
| "best_validation_response_nll": 3.4444619370388196e-06 | |
| } | |