Instructions to use BikoRiko/GPT-2.3-High with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BikoRiko/GPT-2.3-High with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BikoRiko/GPT-2.3-High")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BikoRiko/GPT-2.3-High") model = AutoModelForCausalLM.from_pretrained("BikoRiko/GPT-2.3-High") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use BikoRiko/GPT-2.3-High with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BikoRiko/GPT-2.3-High" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BikoRiko/GPT-2.3-High", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BikoRiko/GPT-2.3-High
- SGLang
How to use BikoRiko/GPT-2.3-High 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 "BikoRiko/GPT-2.3-High" \ --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": "BikoRiko/GPT-2.3-High", "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 "BikoRiko/GPT-2.3-High" \ --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": "BikoRiko/GPT-2.3-High", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BikoRiko/GPT-2.3-High with Docker Model Runner:
docker model run hf.co/BikoRiko/GPT-2.3-High
GPT-2.3-High
GPT-2.3-High is the definitive fine-tuned iteration of the GPT-2 architecture in this series, specifically optimized for high-coherence long-form text generation.
Technical Specifications
- Model Name: GPT-2.3-High
- Base Architecture: GPT-2 (Small)
- Total Parameters: 125,226,240 (~124 Million)
- Context Window: Upgraded to 2048 tokens
- Training Dataset: Wikitext-2-raw-v1 (20% subset)
- Training Epochs: 3
- Framework: PyTorch & Hugging Face Transformers
Accuracy & Evaluation
Following the 'healing' fine-tune, the model was evaluated on the official unseen test split of the Wikitext-2 dataset.
- Test Set Perplexity (PPL): 4.06
- Training Set Perplexity (PPL): 2.25
- IF your going to test it use the dataset i trained it on witch is Wikitext-2-raw-v1
Overview & Capabilities
GPT-2.3-High was developed to solve the 'word salad' and repetition issues found in previous 2048-token iterations. By performing a 'healing' fine-tune on a larger dataset slice (20%), the model learned to manage the expanded positional embeddings effectively.
Usage Instructions
To use GPT-2.3-High, ensure you have the transformers library installed. Due to the manual context expansion, the ignore_mismatched_sizes=True flag is required during loading.
from transformers import GPT2LMHeadModel, GPT2Tokenizer
repo_id = "BikoRiko/GPT-2.3-High"
model = GPT2LMHeadModel.from_pretrained(repo_id, ignore_mismatched_sizes=True)
tokenizer = GPT2Tokenizer.from_pretrained(repo_id)
- Downloads last month
- 36