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")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("0Tick/danbooruTagAutocomplete") model = AutoModelForCausalLM.from_pretrained("0Tick/danbooruTagAutocomplete") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
Upload version with tags in posts shuffled before training
Browse filesThis model was trained on the same dataset but the tags from each post were shuffled before used for training
config.json
CHANGED
|
@@ -40,7 +40,7 @@
|
|
| 40 |
}
|
| 41 |
},
|
| 42 |
"torch_dtype": "float32",
|
| 43 |
-
"transformers_version": "4.
|
| 44 |
"use_cache": true,
|
| 45 |
"vocab_size": 50257
|
| 46 |
}
|
|
|
|
| 40 |
}
|
| 41 |
},
|
| 42 |
"torch_dtype": "float32",
|
| 43 |
+
"transformers_version": "4.31.0.dev0",
|
| 44 |
"use_cache": true,
|
| 45 |
"vocab_size": 50257
|
| 46 |
}
|
merges.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
#version: 0.2
|
| 2 |
Ġ t
|
| 3 |
Ġ a
|
| 4 |
h e
|
|
|
|
| 1 |
+
#version: 0.2
|
| 2 |
Ġ t
|
| 3 |
Ġ a
|
| 4 |
h e
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99e39f00ff01123155098e7ec9fdc36432ba403c5d4182a59f2affb76d05a828
|
| 3 |
+
size 327674773
|
runs/Jun08_11-12-20_671aa6aed209/events.out.tfevents.1686222803.671aa6aed209.1153.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a2d97deabcf9a45ed754f0fcd585686c3b89b48c616d33e9205d00d3dfe9284
|
| 3 |
+
size 6931
|
runs/Jun08_11-12-20_671aa6aed209/events.out.tfevents.1686232154.671aa6aed209.1153.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1a15fd04acb34741f690785349d2fdaa82f9627a84c18ff520b73509541313a
|
| 3 |
+
size 411
|
tokenizer.json
CHANGED
|
@@ -39,6 +39,7 @@
|
|
| 39 |
"continuing_subword_prefix": "",
|
| 40 |
"end_of_word_suffix": "",
|
| 41 |
"fuse_unk": false,
|
|
|
|
| 42 |
"vocab": {
|
| 43 |
"!": 0,
|
| 44 |
"\"": 1,
|
|
|
|
| 39 |
"continuing_subword_prefix": "",
|
| 40 |
"end_of_word_suffix": "",
|
| 41 |
"fuse_unk": false,
|
| 42 |
+
"byte_fallback": false,
|
| 43 |
"vocab": {
|
| 44 |
"!": 0,
|
| 45 |
"\"": 1,
|
tokenizer_config.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"add_prefix_space": false,
|
| 3 |
"bos_token": "<|endoftext|>",
|
|
|
|
| 4 |
"eos_token": "<|endoftext|>",
|
| 5 |
"model_max_length": 1024,
|
| 6 |
-
"special_tokens_map_file": null,
|
| 7 |
"tokenizer_class": "GPT2Tokenizer",
|
| 8 |
"unk_token": "<|endoftext|>"
|
| 9 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"add_prefix_space": false,
|
| 3 |
"bos_token": "<|endoftext|>",
|
| 4 |
+
"clean_up_tokenization_spaces": true,
|
| 5 |
"eos_token": "<|endoftext|>",
|
| 6 |
"model_max_length": 1024,
|
|
|
|
| 7 |
"tokenizer_class": "GPT2Tokenizer",
|
| 8 |
"unk_token": "<|endoftext|>"
|
| 9 |
}
|