Instructions to use peril10/play_time with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use peril10/play_time with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="peril10/play_time")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("peril10/play_time") model = AutoModelForCausalLM.from_pretrained("peril10/play_time", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use peril10/play_time with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "peril10/play_time" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "peril10/play_time", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/peril10/play_time
- SGLang
How to use peril10/play_time 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 "peril10/play_time" \ --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": "peril10/play_time", "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 "peril10/play_time" \ --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": "peril10/play_time", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use peril10/play_time with Docker Model Runner:
docker model run hf.co/peril10/play_time
Download tf_model.h5 from peril10/play_time: direct link, hf CLI and curl.
- Browser
- Download file 498 MB
-
https://huggingface.co/peril10/play_time/resolve/main/tf_model.h5
- Command line
-
hf download hf://peril10/play_time/tf_model.h5
-
curl -L -o tf_model.h5 https://huggingface.co/peril10/play_time/resolve/main/tf_model.h5
498 MB
- Xet hash:
- 4ddf0bd88ada34092cdeebf52e0625e46665d0c43b570207983cd5a61bd3e476
- Size of remote file:
- 498 MB
- SHA256:
- bbf74e094d777ccb25935c63b027dc53e8d0070ca946e69c2db6c719eede481b
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.