Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
English
gpt2
Generated from Trainer
text-generation-inference
Instructions to use 0Tick/danbooruTagAutocomplete with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 0Tick/danbooruTagAutocomplete with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="0Tick/danbooruTagAutocomplete")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("0Tick/danbooruTagAutocomplete") model = AutoModelForCausalLM.from_pretrained("0Tick/danbooruTagAutocomplete", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 0Tick/danbooruTagAutocomplete with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "0Tick/danbooruTagAutocomplete" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "0Tick/danbooruTagAutocomplete", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/0Tick/danbooruTagAutocomplete
- SGLang
How to use 0Tick/danbooruTagAutocomplete 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/danbooruTagAutocomplete" \ --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/danbooruTagAutocomplete", "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/danbooruTagAutocomplete" \ --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/danbooruTagAutocomplete", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use 0Tick/danbooruTagAutocomplete with Docker Model Runner:
docker model run hf.co/0Tick/danbooruTagAutocomplete
Commit History
-
Update README.md
4161cec -
Librarian Bot: Add base_model information to model (#3)
- Librarian Bot: Add base_model information to model (ae4f362ccb9c65d571842c9eca59060cd640110e) Co-authored-by: Librarian Bot (Bot) <librarian-bot@users.noreply.huggingface.co>4acf097
-
Adding `safetensors` variant of this model (#2)
- Adding `safetensors` variant of this model (702fdaaf8dcdc39bc316a9a2a851328609c4c098)5172900 -
Delete old model.safetensors
857d3a4 -
Upload version with tags in posts shuffled before training
This model was trained on the same dataset but the tags from each post were shuffled before used for training386ce94
-
Adding `safetensors` variant of this model (#1)
- Adding `safetensors` variant of this model (5887ee900cca18770fb16edbe13c114fb2140b16) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>7fe18e4
-
Update README.md
c04417e
-
Update README.md
569d06f -
Update README.md
2de9aca -
Add Model Files
74c72b6 -
initial commit
8f213de