Text Generation
Transformers
Safetensors
German
gpt2
legal
GPT
medium
GPT1.5
GPT1
GPT 1
Chat
text-generation-inference
Instructions to use Loewolf/GPT_1.5-medium with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Loewolf/GPT_1.5-medium with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Loewolf/GPT_1.5-medium")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Loewolf/GPT_1.5-medium") model = AutoModelForCausalLM.from_pretrained("Loewolf/GPT_1.5-medium", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Loewolf/GPT_1.5-medium with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Loewolf/GPT_1.5-medium" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Loewolf/GPT_1.5-medium", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Loewolf/GPT_1.5-medium
- SGLang
How to use Loewolf/GPT_1.5-medium 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 "Loewolf/GPT_1.5-medium" \ --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": "Loewolf/GPT_1.5-medium", "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 "Loewolf/GPT_1.5-medium" \ --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": "Loewolf/GPT_1.5-medium", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Loewolf/GPT_1.5-medium with Docker Model Runner:
docker model run hf.co/Loewolf/GPT_1.5-medium
Commit History
-
Upload 9 files
13e5290 -
Delete vocab.json
b4d781d -
Delete tokenizer_config.json
14f41e9 -
Delete tokenizer (1).json
32b7fbd -
Delete special_tokens_map.json
b84826a -
Delete model.safetensors
736e49c -
Delete merges.txt
f007d3d -
Delete generation_config.json
1fa91e5 -
Delete config.json
3060ce7 -
Delete added_tokens.json
8e114bb
-
Update README.md
6bf6a9c -
Upload 9 files
14a6bb6 -
Update README.md
94b3799 -
initial commit
bf176cf