Instructions to use notexist/ttt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use notexist/ttt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="notexist/ttt")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("notexist/ttt") model = AutoModelForCausalLM.from_pretrained("notexist/ttt", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use notexist/ttt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "notexist/ttt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "notexist/ttt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/notexist/ttt
- SGLang
How to use notexist/ttt 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/ttt" \ --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/ttt", "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/ttt" \ --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/ttt", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use notexist/ttt with Docker Model Runner:
docker model run hf.co/notexist/ttt
File size: 1,936 Bytes
80295e8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | {
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 5.0,
"global_step": 14505,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 1.0,
"learning_rate": 4.4446146774934886e-05,
"loss": 3.7196,
"step": 2901
},
{
"epoch": 1.0,
"eval_loss": 3.2220306396484375,
"eval_runtime": 19.7102,
"eval_samples_per_second": 49.822,
"eval_steps_per_second": 0.406,
"step": 2901
},
{
"epoch": 2.0,
"learning_rate": 3.3334610081201164e-05,
"loss": 3.082,
"step": 5802
},
{
"epoch": 2.0,
"eval_loss": 3.0640523433685303,
"eval_runtime": 1.501,
"eval_samples_per_second": 654.215,
"eval_steps_per_second": 5.33,
"step": 5802
},
{
"epoch": 3.0,
"learning_rate": 2.2223073387467443e-05,
"loss": 2.8677,
"step": 8703
},
{
"epoch": 3.0,
"eval_loss": 2.9952707290649414,
"eval_runtime": 1.4746,
"eval_samples_per_second": 665.928,
"eval_steps_per_second": 5.425,
"step": 8703
},
{
"epoch": 4.0,
"learning_rate": 1.1111536693733721e-05,
"loss": 2.7326,
"step": 11604
},
{
"epoch": 4.0,
"eval_loss": 2.962789535522461,
"eval_runtime": 1.4981,
"eval_samples_per_second": 655.5,
"eval_steps_per_second": 5.34,
"step": 11604
},
{
"epoch": 5.0,
"learning_rate": 0.0,
"loss": 2.647,
"step": 14505
},
{
"epoch": 5.0,
"eval_loss": 2.953909158706665,
"eval_runtime": 1.5027,
"eval_samples_per_second": 653.503,
"eval_steps_per_second": 5.324,
"step": 14505
}
],
"max_steps": 14505,
"num_train_epochs": 5,
"total_flos": 6.06254671872e+16,
"trial_name": null,
"trial_params": null
}
|