Instructions to use anezatra/gpt2-HxH with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anezatra/gpt2-HxH with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anezatra/gpt2-HxH")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("anezatra/gpt2-HxH") model = AutoModelForCausalLM.from_pretrained("anezatra/gpt2-HxH") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use anezatra/gpt2-HxH with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anezatra/gpt2-HxH" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anezatra/gpt2-HxH", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/anezatra/gpt2-HxH
- SGLang
How to use anezatra/gpt2-HxH 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 "anezatra/gpt2-HxH" \ --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": "anezatra/gpt2-HxH", "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 "anezatra/gpt2-HxH" \ --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": "anezatra/gpt2-HxH", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use anezatra/gpt2-HxH with Docker Model Runner:
docker model run hf.co/anezatra/gpt2-HxH
GPT-2 HxH
Model Description
Hunter x Hunter" is a manga and anime series created by Yoshihiro Togashi, which has millions of fans. Known for its adventure, fantastical elements, and complex character development, this series offers a deep world and a rich story. Large-scale language models like GPT-2 can be used to analyze this rich dataset to understand the universe and characters of the series, and even to create new scenarios. The dataset was collected by combining subtitle files from all 148 episodes of the series. This dataset was used to train the model Anezatra.
Authors
- Developed by: Anezatra
- Model type: GPT2
- Contacts: https://github.com/anezatra
- Downloads last month
- 2
