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") - 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
3416af9117b1ef1880ab69e85fdeabdece14fd0a93e322afeaa5b876d7eac202
Browse files- checkpoint/pytorch_model.bin/p77.model.layers.8.mlp.gate_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p78.model.layers.8.mlp.up_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p79.model.layers.8.mlp.down_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p8.model.layers.0.input_layernorm.weight +3 -0
- checkpoint/pytorch_model.bin/p80.model.layers.8.input_layernorm.weight +3 -0
- checkpoint/pytorch_model.bin/p81.model.layers.8.post_attention_layernorm.weight +3 -0
- checkpoint/pytorch_model.bin/p82.model.layers.9.self_attn.q_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p83.model.layers.9.self_attn.k_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p84.model.layers.9.self_attn.v_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p85.model.layers.9.self_attn.o_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p86.model.layers.9.mlp.gate_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p87.model.layers.9.mlp.up_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p88.model.layers.9.mlp.down_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p89.model.layers.9.input_layernorm.weight +3 -0
- checkpoint/pytorch_model.bin/p9.model.layers.0.post_attention_layernorm.weight +3 -0
- checkpoint/pytorch_model.bin/p90.model.layers.9.post_attention_layernorm.weight +3 -0
- checkpoint/pytorch_model.bin/p91.model.layers.10.self_attn.q_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p92.model.layers.10.self_attn.k_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p93.model.layers.10.self_attn.v_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p94.model.layers.10.self_attn.o_proj.weight +3 -0
- checkpoint/pytorch_model.bin/p95.model.layers.10.mlp.gate_proj.weight +3 -0
checkpoint/pytorch_model.bin/p77.model.layers.8.mlp.gate_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:efbbd2c49044006991356fa08ff3a4e753c30f98f68317f57e47eb96d7709590
|
| 3 |
+
size 234881910
|
checkpoint/pytorch_model.bin/p78.model.layers.8.mlp.up_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8ebdfa53a2af7e43ca41fb313665a9611cb9af9c0a42c336e3f8f656a30da5f
|
| 3 |
+
size 234881904
|
checkpoint/pytorch_model.bin/p79.model.layers.8.mlp.down_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d81b6de1f1055fa3c42778ddf4265cb0b2f7ca0b6a84de9b8b86131dc32934dd
|
| 3 |
+
size 234881910
|
checkpoint/pytorch_model.bin/p8.model.layers.0.input_layernorm.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4984dad04fd30dcc5e2b5072dc8638c6696257b7a050dae5051b0416dc0670a
|
| 3 |
+
size 17273
|
checkpoint/pytorch_model.bin/p80.model.layers.8.input_layernorm.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04fcc9579ed7344317a4972c52500afe01736496919229fdf5cf33528e2f30fa
|
| 3 |
+
size 17276
|
checkpoint/pytorch_model.bin/p81.model.layers.8.post_attention_layernorm.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d139d3b79f50373b51be9c2d21ff07302024223d431443998342a13c57757cf
|
| 3 |
+
size 17303
|
checkpoint/pytorch_model.bin/p82.model.layers.9.self_attn.q_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ae5b97b3ebde16e2a371804d83a2989de1e1e695989a7acc164682409f2d7f9
|
| 3 |
+
size 67109759
|
checkpoint/pytorch_model.bin/p83.model.layers.9.self_attn.k_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c1582d3932e47bf4c50f2b7bc903c17c8e526f033fd59c166e2bac438a49e40
|
| 3 |
+
size 16778111
|
checkpoint/pytorch_model.bin/p84.model.layers.9.self_attn.v_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65a500b09a16a67b4e2d11a078adda0261bdb96b4d54a8c99a052497fc28c857
|
| 3 |
+
size 16778111
|
checkpoint/pytorch_model.bin/p85.model.layers.9.self_attn.o_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5232f3fa8cc3157ea276e71c8be9c2cf8fee5d3c86878da1b095e986c68182d9
|
| 3 |
+
size 67109759
|
checkpoint/pytorch_model.bin/p86.model.layers.9.mlp.gate_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b167d674c4eab8fd580a6d3439201eaed625d9cfd5e706bacfd1ce361dc8a594
|
| 3 |
+
size 234881910
|
checkpoint/pytorch_model.bin/p87.model.layers.9.mlp.up_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5cf935fa0929cfe965af88871a4e28dc71bfd19a84350c89b507c6d278cc990
|
| 3 |
+
size 234881904
|
checkpoint/pytorch_model.bin/p88.model.layers.9.mlp.down_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff9c5299a5dffd8d376828dcd0c6c2196ff736024beee48d6b76d96ad0bf6522
|
| 3 |
+
size 234881910
|
checkpoint/pytorch_model.bin/p89.model.layers.9.input_layernorm.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d3cfd4da9f56e38c7fb3f3b27cb8deb9917a6159f60c12659a8f75be4ce77499
|
| 3 |
+
size 17276
|
checkpoint/pytorch_model.bin/p9.model.layers.0.post_attention_layernorm.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c7446dbb157f5ff2c27228ad4e72f73696956d52d7a1488af02e004ed7947657
|
| 3 |
+
size 17300
|
checkpoint/pytorch_model.bin/p90.model.layers.9.post_attention_layernorm.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c800210224e05771071a9ad700af4e011a420e7af0b9cba8220b160d2f923cd3
|
| 3 |
+
size 17303
|
checkpoint/pytorch_model.bin/p91.model.layers.10.self_attn.q_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f19c5a1016925f8dd31cc490b72dc3e6e78ebe34bb10f71d5e575642934e795
|
| 3 |
+
size 67109762
|
checkpoint/pytorch_model.bin/p92.model.layers.10.self_attn.k_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c81ac75e2859ed4ffdec2a1ea996887314dbae14660ee47628468e1fcf40657e
|
| 3 |
+
size 16778114
|
checkpoint/pytorch_model.bin/p93.model.layers.10.self_attn.v_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c020b24d70c6716e64f4fc0b6f9663d3df3f4727c29457930b22de8cf77f3fd
|
| 3 |
+
size 16778114
|
checkpoint/pytorch_model.bin/p94.model.layers.10.self_attn.o_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0cdb3dd70f19bc1487cd7e7a61db6e9ae10f165c54e1329d30dea7711d541b9
|
| 3 |
+
size 67109762
|
checkpoint/pytorch_model.bin/p95.model.layers.10.mlp.gate_proj.weight
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7d72124cc46cced5a125cbaf769152db7407f4bc800a0019b584947b7f46f25
|
| 3 |
+
size 234881913
|