Instructions to use aws-neuron/Mistral-neuron with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aws-neuron/Mistral-neuron with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aws-neuron/Mistral-neuron")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aws-neuron/Mistral-neuron") model = AutoModelForCausalLM.from_pretrained("aws-neuron/Mistral-neuron", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aws-neuron/Mistral-neuron with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aws-neuron/Mistral-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/Mistral-neuron", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/aws-neuron/Mistral-neuron
- SGLang
How to use aws-neuron/Mistral-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/Mistral-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/Mistral-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/Mistral-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/Mistral-neuron", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use aws-neuron/Mistral-neuron with Docker Model Runner:
docker model run hf.co/aws-neuron/Mistral-neuron
Commit History
-
Update README.md
Verified signatureadding v0.2 redirectcfffeb2
-
Update README.md
Verified signatureAdding apparently needed emphasis008d4dc
-
updated link
Verified signaturec4a7890 -
referring out to updated models
Verified signature117698a
-
Update README.md
updating path after repo movef6c7a57 -
Update README.md
Forgot the tagsdddd050 -
Update README.md
Missed a space!!14d9009 -
Update README.md
Original versiondd0f01e
-
Upload folder using huggingface_hub (#1)
- 35c78188f8b28e788904281210efde979c4200378843b3ec70de3b04e391c433 (c8928ee48fd458fe166cacaced80a48af7048fc6) - 12921ed9c4993dff71badf93c660e917ff8aaea69efcaeb860854f5b2a0fbbb0 (7a6e1c2defc0b7e5ee5211c2851139d1ca6c9510) - 3fc26f8097a3bef6dfb56109b77ed587a6ba3023ba1c8df3cac7cbe84da92943 (a782784a03439e309e72c4d700fc5acc62ef22fc) - 3a9c3fc5dd2478d36f41dc0609b6521fd14e3ae4d1aad35baa1c159e2c539240 (483bf933fc57b1ff670e4d515efda822f12ecaba) - ce773abb7e7e1d8ec1b83953e6895d8c3c83332d8ee573928c2a30e41a47913d (88210cb5094f52adab0ea1d8f8fcd28571e990f4) - e5bbc6ac1518183adffe256ac9df49f53b150c0d395ea45f14d8d97b684e7541 (749a8941811575ebb6a9afc23c78df7844b70e92) - 234cd4f60532cbe12934831b0c6767536507f68f29308456188b36491f526890 (fa9c0e51230647120ac42af286739cba8c31aca4) - 16d0bd4df4cb13054896675a4bcd91fb300a22ff17ce32557c827e330aa34a10 (36c0ef2b056dd80b9d52f2688b5350460a1648a0) - 385aed300fe75cdbcb9714e7b4ef82e4b8029c25d0cb046330c63282d7f4ac19 (03cf14c00f6a5c80b16db09bd7e242db5a57404e) - 71b32bdc…815fa61 -
initial commit
43adb64