Instructions to use notexist/tttw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use notexist/tttw with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="notexist/tttw")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("notexist/tttw") model = AutoModelForCausalLM.from_pretrained("notexist/tttw", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use notexist/tttw with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "notexist/tttw" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "notexist/tttw", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/notexist/tttw
- SGLang
How to use notexist/tttw 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 "notexist/tttw" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "notexist/tttw", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "notexist/tttw" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "notexist/tttw", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use notexist/tttw with Docker Model Runner:
docker model run hf.co/notexist/tttw
| { | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 3.0, | |
| "global_step": 5700, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "epoch": 1.0, | |
| "learning_rate": 3.7037037037037037e-05, | |
| "loss": 2.3085, | |
| "step": 1900 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "eval_loss": 1.9560242891311646, | |
| "eval_runtime": 18.4661, | |
| "eval_samples_per_second": 269.196, | |
| "eval_steps_per_second": 2.112, | |
| "step": 1900 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "learning_rate": 1.8518518518518518e-05, | |
| "loss": 1.9363, | |
| "step": 3800 | |
| }, | |
| { | |
| "epoch": 2.0, | |
| "eval_loss": 1.87827467918396, | |
| "eval_runtime": 4.2837, | |
| "eval_samples_per_second": 1160.433, | |
| "eval_steps_per_second": 9.104, | |
| "step": 3800 | |
| }, | |
| { | |
| "epoch": 3.0, | |
| "learning_rate": 0.0, | |
| "loss": 1.873, | |
| "step": 5700 | |
| }, | |
| { | |
| "epoch": 3.0, | |
| "eval_loss": 1.8482314348220825, | |
| "eval_runtime": 4.2658, | |
| "eval_samples_per_second": 1165.318, | |
| "eval_steps_per_second": 9.143, | |
| "step": 5700 | |
| } | |
| ], | |
| "max_steps": 5700, | |
| "num_train_epochs": 3, | |
| "total_flos": 1.1914279759872e+16, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |