Text Generation
Transformers
TensorBoard
Safetensors
gpt_neox
Generated from Trainer
trl
sft
text-generation-inference
Instructions to use chardizard/Pythia410mRE-WILD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use chardizard/Pythia410mRE-WILD with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="chardizard/Pythia410mRE-WILD")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("chardizard/Pythia410mRE-WILD") model = AutoModelForCausalLM.from_pretrained("chardizard/Pythia410mRE-WILD") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use chardizard/Pythia410mRE-WILD with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "chardizard/Pythia410mRE-WILD" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "chardizard/Pythia410mRE-WILD", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/chardizard/Pythia410mRE-WILD
- SGLang
How to use chardizard/Pythia410mRE-WILD 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 "chardizard/Pythia410mRE-WILD" \ --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": "chardizard/Pythia410mRE-WILD", "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 "chardizard/Pythia410mRE-WILD" \ --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": "chardizard/Pythia410mRE-WILD", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use chardizard/Pythia410mRE-WILD with Docker Model Runner:
docker model run hf.co/chardizard/Pythia410mRE-WILD
Ctrl+K
- initgoogle_syslog_dir.0
- runs
- tmp6yvqll6r
- tmpbvdhyx0x
- tmpd0hvda45
- tmpi7jhzfdl
- tmpw5xj0cz8
- 1.52 kB
- 1.65 kB
- 758 Bytes
- 1.3 kB
- 1.3 kB
- 1.3 kB
- 1.3 kB
- 1.3 kB
- 1.3 kB
- 1.35 kB
- 1.35 kB
- 2.11 kB
- 5.08 kB
- 2.11 kB
- 754 Bytes
- 2.11 kB
- 2.82 kB
- 3.55 kB
- 3 kB
- 5.08 kB
- 754 Bytes
- 2.11 kB
- 111 Bytes
- 3.93 kB
- 358 Bytes
- 3.33 kB
- 6.4 kB
- 8.17 kB
- 358 Bytes
- 10.4 kB
- 6.4 kB
- 5.86 kB
- 2.63 kB
- 358 Bytes
- 8.33 kB
- 2.23 kB
- 5.86 kB
- 6.4 kB
- 10.4 kB
- 6.4 kB
- 2.03 kB
- 358 Bytes
- 4.94 kB