Run this model with HF Jobs
Run aws-neuron/Mistral-neuron on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/aws-neuron/Mistral-neuron. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/aws-neuron/Mistral-neuron on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/aws-neuron/Mistral-neuron. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/aws-neuron/Mistral-neuron. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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
385aed300fe75cdbcb9714e7b4ef82e4b8029c25d0cb046330c63282d7f4ac19
Browse filesFiles changed (22)
- pytorch_model.bin/p246.model.layers.27.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p247.model.layers.27.self_attn.o_proj.weightAdded+3
- pytorch_model.bin/p248.model.layers.27.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p249.model.layers.27.mlp.up_proj.weightAdded+3
- pytorch_model.bin/p25.model.layers.2.mlp.down_proj.weightAdded+3
- pytorch_model.bin/p250.model.layers.27.mlp.down_proj.weightAdded+3
- pytorch_model.bin/p251.model.layers.27.input_layernorm.weightAdded+3
- pytorch_model.bin/p252.model.layers.27.post_attention_layernorm.weightAdded+3
- pytorch_model.bin/p253.model.layers.28.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p254.model.layers.28.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p255.model.layers.28.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p256.model.layers.28.self_attn.o_proj.weightAdded+3
- pytorch_model.bin/p257.model.layers.28.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p258.model.layers.28.mlp.up_proj.weightAdded+3
- pytorch_model.bin/p259.model.layers.28.mlp.down_proj.weightAdded+3
- pytorch_model.bin/p26.model.layers.2.input_layernorm.weightAdded+3
- pytorch_model.bin/p260.model.layers.28.input_layernorm.weightAdded+3
- pytorch_model.bin/p261.model.layers.28.post_attention_layernorm.weightAdded+3
- pytorch_model.bin/p262.model.layers.29.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p263.model.layers.29.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p264.model.layers.29.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p265.model.layers.29.self_attn.o_proj.weightAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:eda19b30926843ac426ad3cd411b79099feb32731e382b9a95780aae63e36ec1size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:0c165530f25b360131dd7201508dd892c06a1ee388f0d8cdd8a059eb7b7bf177size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:f050ab7b33955b87fcdc200750e7d61d98c590ce7a064f614f7339bda44420b7size 234881916123version https://git-lfs.github.com/spec/v1oid sha256:86b24a9d259c99212b150761c3c5a3978baf5ec555c20d0e8ff505c228f2ad5dsize 234881910123version https://git-lfs.github.com/spec/v1oid sha256:fa93ae7b073bff946b1117eaaea17adfc57b55a4136236200d19831a0bcc5ca5size 234881910123version https://git-lfs.github.com/spec/v1oid sha256:ab90724b086488f965502539b58627eb699a8edafdc5ce31cf93268c8239bfcdsize 234881916123version https://git-lfs.github.com/spec/v1oid sha256:5079368a28ca2125ef4aa6d24aaea3fa1a0afce42447ea5c3e4843e643d5bf1fsize 17282123version https://git-lfs.github.com/spec/v1oid sha256:827d0914ee5a67937e88cd41fc57739eb1a2ef5709b6583b98b5b922e58b8ee9size 17309123version https://git-lfs.github.com/spec/v1oid sha256:8b788d3dc43609c3757cfb9a07e0896601a03aefe72c18e87ab8fbe6ddbf29absize 67109765123version https://git-lfs.github.com/spec/v1oid sha256:093bbb8a83e7da75117877173b821700fec6ada5c837d56d1107d993e5b30aadsize 16778117123version https://git-lfs.github.com/spec/v1oid sha256:4787af2ca97f473b47e856a3bf02484dc24779c97d8e791a5edb3a91008a7982size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:838b0c69c268e8c596b1ab907835b1be1f4ca0f87eecf508f29399be56770f9fsize 67109765123version https://git-lfs.github.com/spec/v1oid sha256:feb2f597180d6d1e662e79965dcdc8577d943931e8969277b510d453b4c8ac53size 234881916123version https://git-lfs.github.com/spec/v1oid sha256:6b47cdfd733d30cba70e5c363ae27ecc41808e46aa5a726ce3ecd474b5801c9fsize 234881910123version https://git-lfs.github.com/spec/v1oid sha256:75af37dac5595596830760b2f582093e32d84dd20198066a888de8805535042dsize 234881916123version https://git-lfs.github.com/spec/v1oid sha256:6d3aeed851052d2fbbe051a612e26504c3b370a0771aab47b3af24a3a057c62asize 17276123version https://git-lfs.github.com/spec/v1oid sha256:df4816a9ee16a3c5e0f8091e236c7750bf28e37b7030b44594d846a50c140f8asize 17282123version https://git-lfs.github.com/spec/v1oid sha256:cb538c5ab716f86cdb15b95d65322b68dca3fa9c5e7b2845837b34cd0cd73cf4size 17309123version https://git-lfs.github.com/spec/v1oid sha256:d355c8913d44d5b2e1dc25e3ee9c249e2c84b3d82d839e68467bd3ff41d5ce37size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:6702a0224cabaa60e36f88fefff2a92454b08fd5e3294b5538f75666647a5262size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:a8d74354d534a82cb91ebc39f61c9aeee5d154f5379a22e110da7dcb972763f6size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:8f69481dba46502b1f178054cb35c92dfeb9b4ed2d49be9c29e04bf4f72d41afsize 67109765pytorch_model.bin/p246.model.layers.27.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p247.model.layers.27.self_attn.o_proj.weightAdded+3
pytorch_model.bin/p248.model.layers.27.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p249.model.layers.27.mlp.up_proj.weightAdded+3
pytorch_model.bin/p25.model.layers.2.mlp.down_proj.weightAdded+3
pytorch_model.bin/p250.model.layers.27.mlp.down_proj.weightAdded+3
pytorch_model.bin/p251.model.layers.27.input_layernorm.weightAdded+3
pytorch_model.bin/p252.model.layers.27.post_attention_layernorm.weightAdded+3
pytorch_model.bin/p253.model.layers.28.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p254.model.layers.28.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p255.model.layers.28.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p256.model.layers.28.self_attn.o_proj.weightAdded+3
pytorch_model.bin/p257.model.layers.28.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p258.model.layers.28.mlp.up_proj.weightAdded+3
pytorch_model.bin/p259.model.layers.28.mlp.down_proj.weightAdded+3
pytorch_model.bin/p26.model.layers.2.input_layernorm.weightAdded+3
pytorch_model.bin/p260.model.layers.28.input_layernorm.weightAdded+3
pytorch_model.bin/p261.model.layers.28.post_attention_layernorm.weightAdded+3
pytorch_model.bin/p262.model.layers.29.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p263.model.layers.29.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p264.model.layers.29.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p265.model.layers.29.self_attn.o_proj.weightAdded+3