Text Generation
Transformers
Safetensors
English
gpt_neox
human feedback
rlhf
preferences
alignment
HALO
halos
dpo
rl
text-generation-inference
Instructions to use ContextualAI/archangel_sft-ppo_pythia6-9b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ContextualAI/archangel_sft-ppo_pythia6-9b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ContextualAI/archangel_sft-ppo_pythia6-9b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ContextualAI/archangel_sft-ppo_pythia6-9b") model = AutoModelForCausalLM.from_pretrained("ContextualAI/archangel_sft-ppo_pythia6-9b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ContextualAI/archangel_sft-ppo_pythia6-9b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ContextualAI/archangel_sft-ppo_pythia6-9b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ContextualAI/archangel_sft-ppo_pythia6-9b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ContextualAI/archangel_sft-ppo_pythia6-9b
- SGLang
How to use ContextualAI/archangel_sft-ppo_pythia6-9b 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 "ContextualAI/archangel_sft-ppo_pythia6-9b" \ --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": "ContextualAI/archangel_sft-ppo_pythia6-9b", "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 "ContextualAI/archangel_sft-ppo_pythia6-9b" \ --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": "ContextualAI/archangel_sft-ppo_pythia6-9b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ContextualAI/archangel_sft-ppo_pythia6-9b with Docker Model Runner:
docker model run hf.co/ContextualAI/archangel_sft-ppo_pythia6-9b
Upload GPTNeoXForCausalLM
Browse files
model-00001-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4977795456
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d8a23e921cd44d4ebc2f249d94271147e9ec7c099651efe33d289e363759abc4
|
| 3 |
size 4977795456
|
model-00002-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4967384136
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a80b8e59d8bcb2dd94d8909dbb7cca49af5ad0a7b33b0a87d9ca2262252f6003
|
| 3 |
size 4967384136
|
model-00003-of-00003.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3769470736
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b819c59e5568d06d1517db6f096f01e795d062cf3cf39de7f1c105f45b6439a1
|
| 3 |
size 3769470736
|