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