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_pythia12-0b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ContextualAI/archangel_sft_pythia12-0b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ContextualAI/archangel_sft_pythia12-0b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ContextualAI/archangel_sft_pythia12-0b") model = AutoModelForCausalLM.from_pretrained("ContextualAI/archangel_sft_pythia12-0b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ContextualAI/archangel_sft_pythia12-0b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ContextualAI/archangel_sft_pythia12-0b" # 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_pythia12-0b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ContextualAI/archangel_sft_pythia12-0b
- SGLang
How to use ContextualAI/archangel_sft_pythia12-0b 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_pythia12-0b" \ --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_pythia12-0b", "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_pythia12-0b" \ --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_pythia12-0b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ContextualAI/archangel_sft_pythia12-0b with Docker Model Runner:
docker model run hf.co/ContextualAI/archangel_sft_pythia12-0b
Upload GPTNeoXForCausalLM
Browse files
model-00001-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4924047696
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c04da84caf875bec311ff1201bf34d9f77a56d2a56fce76b6f0eb4862d7faeb
|
| 3 |
size 4924047696
|
model-00002-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4824474112
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5333dc10c0c73f3f86c91da58c067d09de0e1cd93c73da9fd3193465781507f5
|
| 3 |
size 4824474112
|
model-00003-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4824484864
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:369a17b6dcf14a5f78856ab679dde168c93315bd1f2dd727ebba1f0472160731
|
| 3 |
size 4824484864
|
model-00004-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4981802000
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be0c85278013b75b594dd77cf630d958e8db5ee36374cbfaaef3327b54d23f12
|
| 3 |
size 4981802000
|
model-00005-of-00005.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4137388064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3e9b6c72c21be4f9ffb50b1a6e7f8539e9317525621db9fa865488814f338a1
|
| 3 |
size 4137388064
|