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
- 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
Upload folder using huggingface_hub
Upload folder using huggingface_hub
Multi commit ID: 753cec47b805967c07b722ce2a5d607f8ad9325eb9b83bfccafafa6639585928
Scheduled commits:
- Upload 21 file(s) totalling 2.0G (9baf68f25225e25f0cf14788e00887629a2702ae956b76bdb4f615262d70399f)
- Upload 21 file(s) totalling 2.1G (bcfd30e76af5602ad2559f23306420ddb15ba919478b3e9097b9165659af42cf)
- Upload 19 file(s) totalling 2.0G (29fd63f096633a662da3b0157d8625639e714d6d49cc62a738d2c59c171ebe8b)
- Upload 19 file(s) totalling 2.0G (327bc00096a042d80c44b7c57c067769a97b512f379d2beb83b59b8f87498dde)
- Upload 21 file(s) totalling 2.0G (672068cb6f8f3b30fb85a7f1a86373148199225903a05bef16376bd8cd708de5)
- Upload 24 file(s) totalling 2.1G (c17aba8cb1af1618c1913a34df7711ccd3acbe59b5ce7ab3ec15e358398527bf)
- Upload 24 file(s) totalling 2.0G (6b3602adc39bec31b0715f206bac9b7ffa5827eee0e502c861097fde1bbc5f4b)
- Upload 18 file(s) totalling 2.1G (a54ccd2453e6ac3062544174f0438f0304bd649997cb1830fb3e6c3f06001bcf)
- Upload 22 file(s) totalling 2.1G (54845a1e98f5aeffda8b745bcb06d69be14aa96dc97c201e552e52676ea11127)
- Upload 21 file(s) totalling 2.0G (a96e90a1dbbc338a4e66b273d4873e5167379a3263bf76104d43a985649d8259)
- Upload 22 file(s) totalling 2.0G (67c2d0c8bca4f0af46228fa2df85d4a9ad8e898e40b1c55adc326ca5e1f9ae80)
- Upload 20 file(s) totalling 2.0G (b103556ce7f2bcb66146e0f9f4048f151c32e65544b0e2fd199d6fd382f079a8)
- Upload 19 file(s) totalling 2.0G (4ba0587d21ffe08290719c2d0dbfbea8ffc709b98b329b13ccb2723af9a9aa2e)
- Upload 20 file(s) totalling 2.0G (995e9a82f940d57432ccb02fbd770ffaee43d9c169e0f411b0f090f692904d81)
- Upload 25 file(s) totalling 2.1G (e007c65a3117b0864bcc89eec1c3541ab929e0d0f29bcccb6284692f111448d4)
- Upload 24 file(s) totalling 2.0G (58974e6a639d3105476bf18887b5bcb12cbc91a090946c61cdce93b53391ea72)
- Upload 19 file(s) totalling 2.0G (c4d2a26bfe1f133ec70af9a741768e7599ef02f6c4122bc9588935c586a31eea)
- Upload 17 file(s) totalling 2.0G (f88a38b11ffcb39d1f076005f722ed3bc81dd19c93a42780110e9be9446f184c)
- Upload 18 file(s) totalling 2.0G (061b98c74770c9dd434338422be66b29c5bbf13d4542b7c96f169b62540a68cf)
- Upload 19 file(s) totalling 2.0G (aaeb82add04961495089fc545338f1c056af544f0a24e53effb9f6b94679a446)
- Upload 21 file(s) totalling 2.0G (3416af9117b1ef1880ab69e85fdeabdece14fd0a93e322afeaa5b876d7eac202)
- Upload 22 file(s) totalling 541.5M (f7a574324212988ab1253e410c391c52fc263936f123cf6cfba02c2e7b5d3f42)
This is a PR opened using the huggingface_hub library in the context of a multi-commit. PR can be commented as a usual PR. However, please be aware that manually updating the PR description, changing the PR status, or pushing new commits, is not recommended as it might corrupt the commit process. Learn more about multi-commits in this guide.
Multi-commit is now completed! You can ping the repo owner to review the changes. This PR can now be commented or modified without risking to corrupt it.
This is a comment posted using the huggingface_hub library in the context of a multi-commit. Learn more about multi-commits in this guide.
create_pr=False has been passed so PR is automatically merged.
This is a comment posted using the huggingface_hub library in the context of a multi-commit. Learn more about multi-commits in this guide.