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")# pip install -U transformers accelerate # 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
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- 9baf68f25225e25f0cf14788e00887629a2702ae956b76bdb4f615262d70399f (67b593a99f65cc2a5545766f59ced0000daebddb) - bcfd30e76af5602ad2559f23306420ddb15ba919478b3e9097b9165659af42cf (7a06bea762f20de5a62a5e77c2013de859a31f39) - 29fd63f096633a662da3b0157d8625639e714d6d49cc62a738d2c59c171ebe8b (b9252227d4df812c38c42c874bf9ed195f102472) - 327bc00096a042d80c44b7c57c067769a97b512f379d2beb83b59b8f87498dde (375e3349716026d0cc6454b505ddae9f54fde234) - 672068cb6f8f3b30fb85a7f1a86373148199225903a05bef16376bd8cd708de5 (6e0ef4758f73ba9700889717afdb60e8e74648b3) - c17aba8cb1af1618c1913a34df7711ccd3acbe59b5ce7ab3ec15e358398527bf (1b8c5a00714b08c875fab9932430c5515615954d) - 6b3602adc39bec31b0715f206bac9b7ffa5827eee0e502c861097fde1bbc5f4b (00cd3f2ab991c8d7c1ffa8dfc661129c150c68ae) - a54ccd2453e6ac3062544174f0438f0304bd649997cb1830fb3e6c3f06001bcf (74902c074de9cc6ba9be7e05f2039e17622b2351) - 54845a1e98f5aeffda8b745bcb06d69be14aa96dc97c201e552e52676ea11127 (9504409e05b500c4fe3f9e8fff8816d6f5af9e0c) - a96e90a1…e4a13b3