Instructions to use aws-neuron/SOLAR-10.7B-v1.0-neuron with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aws-neuron/SOLAR-10.7B-v1.0-neuron with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aws-neuron/SOLAR-10.7B-v1.0-neuron")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aws-neuron/SOLAR-10.7B-v1.0-neuron") model = AutoModelForCausalLM.from_pretrained("aws-neuron/SOLAR-10.7B-v1.0-neuron", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aws-neuron/SOLAR-10.7B-v1.0-neuron with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aws-neuron/SOLAR-10.7B-v1.0-neuron" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aws-neuron/SOLAR-10.7B-v1.0-neuron", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/aws-neuron/SOLAR-10.7B-v1.0-neuron
- SGLang
How to use aws-neuron/SOLAR-10.7B-v1.0-neuron 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 "aws-neuron/SOLAR-10.7B-v1.0-neuron" \ --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": "aws-neuron/SOLAR-10.7B-v1.0-neuron", "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 "aws-neuron/SOLAR-10.7B-v1.0-neuron" \ --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": "aws-neuron/SOLAR-10.7B-v1.0-neuron", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use aws-neuron/SOLAR-10.7B-v1.0-neuron with Docker Model Runner:
docker model run hf.co/aws-neuron/SOLAR-10.7B-v1.0-neuron
29fd63f096633a662da3b0157d8625639e714d6d49cc62a738d2c59c171ebe8b
Browse files- checkpoint/pytorch_model.bin/p133.model.layers.14.mlp.down_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p134.model.layers.14.input_layernorm.weight +3 -0
- checkpoint/pytorch_model.bin/p135.model.layers.14.post_attention_layernorm.weight +3 -0
- checkpoint/pytorch_model.bin/p136.model.layers.15.self_attn.q_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p137.model.layers.15.self_attn.k_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p138.model.layers.15.self_attn.v_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p139.model.layers.15.self_attn.o_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p14.model.layers.1.mlp.gate_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p140.model.layers.15.mlp.gate_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p141.model.layers.15.mlp.up_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p142.model.layers.15.mlp.down_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p143.model.layers.15.input_layernorm.weight +3 -0
- checkpoint/pytorch_model.bin/p144.model.layers.15.post_attention_layernorm.weight +3 -0
- checkpoint/pytorch_model.bin/p145.model.layers.16.self_attn.q_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p146.model.layers.16.self_attn.k_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p147.model.layers.16.self_attn.v_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p148.model.layers.16.self_attn.o_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p149.model.layers.16.mlp.gate_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p15.model.layers.1.mlp.up_proj.weight +3 -0
checkpoint/pytorch_model.bin/p133.model.layers.14.mlp.down_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e45fee4ee449cd779129af4077efb7b4da541432feb8543ee38275baa71a978
|
| 3 |
+
size 234881916
|
checkpoint/pytorch_model.bin/p134.model.layers.14.input_layernorm.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2be6913c8e37f39fe6316649504a089e387bbab2f7ccb8d05ebae3650020b641
|
| 3 |
+
size 17282
|
checkpoint/pytorch_model.bin/p135.model.layers.14.post_attention_layernorm.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1912b33a4d02d39963fc860f40171f3cca5080226603dcac6b20eca246f7bd38
|
| 3 |
+
size 17309
|
checkpoint/pytorch_model.bin/p136.model.layers.15.self_attn.q_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e15b224fbd38c764bfa3a0ddcee77e3b3112e8df5a2cb026b85cb336f7fefb11
|
| 3 |
+
size 67109765
|
checkpoint/pytorch_model.bin/p137.model.layers.15.self_attn.k_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4b7baf33248957b34e92cc479b78ae7915842743d248e4c08a7d0e6fc14655a
|
| 3 |
+
size 16778117
|
checkpoint/pytorch_model.bin/p138.model.layers.15.self_attn.v_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:baa51b5d85b8325cb6f11555071e8fa1663eb0799be27c0c5d3e7ac40dff7410
|
| 3 |
+
size 16778117
|
checkpoint/pytorch_model.bin/p139.model.layers.15.self_attn.o_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:221c0fa02b4ed0dab30d6b99a21c1d95c3beeee2a778c243df60d2b7cf0c7092
|
| 3 |
+
size 67109765
|
checkpoint/pytorch_model.bin/p14.model.layers.1.mlp.gate_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:978cef26c0a3d72a894475eac3c15626b0e477edc5407a17fddfb97eb3ad5710
|
| 3 |
+
size 234881910
|
checkpoint/pytorch_model.bin/p140.model.layers.15.mlp.gate_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:36479e36537af9e3fd0f74fe2e99a42799ddd73bb92c54cf051148c679e613bd
|
| 3 |
+
size 234881916
|
checkpoint/pytorch_model.bin/p141.model.layers.15.mlp.up_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eec66c313d8cf6b08a12b2ffdd15a207a6ca0b5513a1683c6a13699d1585de73
|
| 3 |
+
size 234881910
|
checkpoint/pytorch_model.bin/p142.model.layers.15.mlp.down_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:791e24715bc308fb40d29304bea7c82269f754f94eb158598e74744bc17d92de
|
| 3 |
+
size 234881916
|
checkpoint/pytorch_model.bin/p143.model.layers.15.input_layernorm.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d02dd87dad4ea711399e6084cbdb7ff3e5826030b50372dd0421ac64914cabd
|
| 3 |
+
size 17282
|
checkpoint/pytorch_model.bin/p144.model.layers.15.post_attention_layernorm.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59c933ca80adf2c83c8ec3d19cd56deaa074ff552042c4f1b9bf74c6699c3826
|
| 3 |
+
size 17309
|
checkpoint/pytorch_model.bin/p145.model.layers.16.self_attn.q_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3018a8574c72c3738d16250e5c358ff0d9dd8402ec52406308fda9c8e9cc9be2
|
| 3 |
+
size 67109765
|
checkpoint/pytorch_model.bin/p146.model.layers.16.self_attn.k_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e41287ef733040ca3b5307940714ebc429d2ec8298f969562d4d1ebd6693f186
|
| 3 |
+
size 16778117
|
checkpoint/pytorch_model.bin/p147.model.layers.16.self_attn.v_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:37fc85b3befe0b9cd386a707bb829e356b97abf468730cb181f86b86a15c8fad
|
| 3 |
+
size 16778117
|
checkpoint/pytorch_model.bin/p148.model.layers.16.self_attn.o_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:77502c44f853fe161c3069bc8d45769cc4681eff03b2bbf920091f161b31a811
|
| 3 |
+
size 67109765
|
checkpoint/pytorch_model.bin/p149.model.layers.16.mlp.gate_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab183c957464919820ee3c7797726b9839a6144e20f83aec1c4bfe6552901268
|
| 3 |
+
size 234881916
|
checkpoint/pytorch_model.bin/p15.model.layers.1.mlp.up_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c4f166b8734eb1f21bafe3350ce478f512673202690626d570da9cdab9525dc
|
| 3 |
+
size 234881904
|