Instructions to use Triangles/gpt-Neo_Russell with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Triangles/gpt-Neo_Russell with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Triangles/gpt-Neo_Russell")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Triangles/gpt-Neo_Russell") model = AutoModelForCausalLM.from_pretrained("Triangles/gpt-Neo_Russell", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Triangles/gpt-Neo_Russell with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Triangles/gpt-Neo_Russell" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Triangles/gpt-Neo_Russell", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Triangles/gpt-Neo_Russell
- SGLang
How to use Triangles/gpt-Neo_Russell 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 "Triangles/gpt-Neo_Russell" \ --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": "Triangles/gpt-Neo_Russell", "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 "Triangles/gpt-Neo_Russell" \ --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": "Triangles/gpt-Neo_Russell", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Triangles/gpt-Neo_Russell with Docker Model Runner:
docker model run hf.co/Triangles/gpt-Neo_Russell
Commit History
-
Update config.json
41439ed -
Update config.json
2d1402b
-
Update config.json
1c06047 -
Update config.json
63b5f02 -
Update config.json
62fb491 -
Update config.json
c199544 -
Update config.json
bce75d6 -
Update config.json
1f86da0 -
Update config.json
09fbb7d -
Update config.json
2acde23 -
Update README.md
8d2a72b -
Upload . with huggingface_hub
aba229a
-
Upload . with huggingface_hub
d548878
-
Update config.json
424d732
-
Update config.json
d32a670 -
Update config.json
fc91012 -
Update config.json
7a7391f -
Update config.json
9280bbc -
Update tokenizer_config.json
35a6e60 -
Update config.json
28d73c3 -
Update config.json
eb98aad -
Update README.md
This is a GPT-Neo model trained on Bertrand Russell's Problems of Philosophy. It is currently used in the game Cloud Theory For more, see: https://colleenmacklin.com/cloudtheory707a752 -
Update README.md
0c4f0e1 -
Update config.json
2212ddf -
Update config.json
f385dd5 -
Update config.json
1fca5fe -
Upload . with huggingface_hub
ce6e0ed -
initial commit
74d0ba6