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
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.ec343b2 -
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