Instructions to use Reverb/GPyT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Reverb/GPyT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Reverb/GPyT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Reverb/GPyT") model = AutoModelForCausalLM.from_pretrained("Reverb/GPyT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Reverb/GPyT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Reverb/GPyT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Reverb/GPyT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Reverb/GPyT
- SGLang
How to use Reverb/GPyT 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 "Reverb/GPyT" \ --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": "Reverb/GPyT", "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 "Reverb/GPyT" \ --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": "Reverb/GPyT", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Reverb/GPyT with Docker Model Runner:
docker model run hf.co/Reverb/GPyT
Update README.md
Browse files
README.md
CHANGED
|
@@ -41,8 +41,6 @@ import pytest
|
|
| 41 |
import pandas as pd<N
|
| 42 |
```
|
| 43 |
|
| 44 |
-
This model does a ton more than just imports, however. For a bunch of examples and a better understanding of the model's capabilities: https://pythonprogramming.net/GPT-python-code-transformer-model-GPyT/
|
| 45 |
-
|
| 46 |
## Considerations:
|
| 47 |
|
| 48 |
> - This model is intended for educational and research use only. Do not trust model outputs.
|
|
|
|
| 41 |
import pandas as pd<N
|
| 42 |
```
|
| 43 |
|
|
|
|
|
|
|
| 44 |
## Considerations:
|
| 45 |
|
| 46 |
> - This model is intended for educational and research use only. Do not trust model outputs.
|