Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
English
gpt2
Generated from Trainer
text-generation-inference
Instructions to use 0Tick/e621TagAutocomplete with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 0Tick/e621TagAutocomplete with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="0Tick/e621TagAutocomplete")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("0Tick/e621TagAutocomplete") model = AutoModelForCausalLM.from_pretrained("0Tick/e621TagAutocomplete", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 0Tick/e621TagAutocomplete with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "0Tick/e621TagAutocomplete" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "0Tick/e621TagAutocomplete", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/0Tick/e621TagAutocomplete
- SGLang
How to use 0Tick/e621TagAutocomplete 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 "0Tick/e621TagAutocomplete" \ --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": "0Tick/e621TagAutocomplete", "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 "0Tick/e621TagAutocomplete" \ --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": "0Tick/e621TagAutocomplete", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use 0Tick/e621TagAutocomplete with Docker Model Runner:
docker model run hf.co/0Tick/e621TagAutocomplete
Commit History
-
Librarian Bot: Add base_model information to model (#3)
- Librarian Bot: Add base_model information to model (e3a71b6ca0799af4126dd97d1fc4b8678e88c3a7) Co-authored-by: Librarian Bot (Bot) <librarian-bot@users.noreply.huggingface.co>111edf4
-
Adding `safetensors` variant of this model (#2)
- Adding `safetensors` variant of this model (ec343b20efd1cd40659bebaa3e6540ffe2b5fb35)09aec6d -
Delete old model.safetensors
39b36a6 -
Trained with tags scrambled
This is a new version of the model where the tags of each image were scrambled before training so it should have better completion features.7897c96
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (6c70cdf95173a02215ad8f763c4aa449bab51906) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>75fc7c6
-
Include Dataset
0076716
-
Add tokenizer_config.json
9284789 -
Update README.md
9c8232e -
Add required files
38cc64e -
initial commit
d585801