Text Generation
Transformers
TensorBoard
Safetensors
PEFT
gpt2
Trained with AutoTrain
text-generation-inference
conversational
Instructions to use WerddMana/ComfyTrain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WerddMana/ComfyTrain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WerddMana/ComfyTrain") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("WerddMana/ComfyTrain", device_map="auto") - PEFT
How to use WerddMana/ComfyTrain with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WerddMana/ComfyTrain with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WerddMana/ComfyTrain" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WerddMana/ComfyTrain", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/WerddMana/ComfyTrain
- SGLang
How to use WerddMana/ComfyTrain 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 "WerddMana/ComfyTrain" \ --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": "WerddMana/ComfyTrain", "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 "WerddMana/ComfyTrain" \ --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": "WerddMana/ComfyTrain", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use WerddMana/ComfyTrain with Docker Model Runner:
docker model run hf.co/WerddMana/ComfyTrain
Commit History
-
Create config.json
Verified signatureI have no clue9a35777 -
Upload folder using huggingface_hub
Verified signature1948e56 -
Upload folder using huggingface_hub
Verified signature168b87a -
Upload folder using huggingface_hub
Verified signature970d069 -
Upload folder using huggingface_hub
Verified signature1d821d0 -
Upload folder using huggingface_hub
Verified signature7952d4c -
Upload folder using huggingface_hub
Verified signature64d4953 -
Upload folder using huggingface_hub
Verified signature933844f -
Upload folder using huggingface_hub
Verified signatured7b5fa3 -
Upload folder using huggingface_hub
Verified signature9845658 -
Upload folder using huggingface_hub
Verified signaturedc591de -
Upload folder using huggingface_hub
Verified signaturefb44cac -
Upload folder using huggingface_hub
Verified signature6387d61 -
Upload folder using huggingface_hub
Verified signaturedaec77f -
initial commit
Verified signaturee230bb9