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
4271339d2a45cc4abbbd6c9e78fc569f61b5be6263aed8d1136c1c79881b1f04
Browse filesFiles changed (19)
- pytorch_model.bin/p41.model.layers.4.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p42.model.layers.4.mlp.up_proj.weightAdded+3
- pytorch_model.bin/p43.model.layers.4.mlp.down_proj.weightAdded+3
- pytorch_model.bin/p44.model.layers.4.input_layernorm.weightAdded+3
- pytorch_model.bin/p45.model.layers.4.post_attention_layernorm.weightAdded+3
- pytorch_model.bin/p46.model.layers.5.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p47.model.layers.5.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p48.model.layers.5.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p49.model.layers.5.self_attn.o_proj.weightAdded+3
- pytorch_model.bin/p5.model.layers.0.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p50.model.layers.5.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p51.model.layers.5.mlp.up_proj.weightAdded+3
- pytorch_model.bin/p52.model.layers.5.mlp.down_proj.weightAdded+3
- pytorch_model.bin/p53.model.layers.5.input_layernorm.weightAdded+3
- pytorch_model.bin/p54.model.layers.5.post_attention_layernorm.weightAdded+3
- pytorch_model.bin/p55.model.layers.6.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p56.model.layers.6.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p57.model.layers.6.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p58.model.layers.6.self_attn.o_proj.weightAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:ef871b55637b5b4ba603284bb38839f70efe7badc822bcd3b0d3464fcb64abe8size 234881910123version https://git-lfs.github.com/spec/v1oid sha256:114d56e6d618f165d53fb57c41a4d3f521f069de0343283aa42d1fb63cbe2502size 234881904123version https://git-lfs.github.com/spec/v1oid sha256:0e0a22fcc5afc536fc03ec5786eda27391d2fa1478306bc96336c07b4e912839size 234881910123version https://git-lfs.github.com/spec/v1oid sha256:5ef6817d37d74a3c93fd11abaab32f4153f948c51db2c3139647a13eddfe6e41size 17276123version https://git-lfs.github.com/spec/v1oid sha256:9c44c2f850c9a11f4aedc7050200ee58a9959ee4edce4894517472da36886c6bsize 17303123version https://git-lfs.github.com/spec/v1oid sha256:7349917cd5ac9cba7665c4cd8dda951c9e18082aff702b492302b6a5c66804d4size 67109759123version https://git-lfs.github.com/spec/v1oid sha256:ec7f299c23f69d5713efead9b90f2b07cbc91874397cb31d97fe0185921777e1size 16778111123version https://git-lfs.github.com/spec/v1oid sha256:f7cbb7e6f194dbe74b6df7f62698122c98119f0299511186856ba90cea09e37esize 16778111123version https://git-lfs.github.com/spec/v1oid sha256:737cd0361b6d38cfd04ceddc2d917d917c381a81cc7296de2a62462e9a24e1c6size 67109759123version https://git-lfs.github.com/spec/v1oid sha256:1e3cd26a8367c1304003f4bcd4571cb323cc7f9e521291be9e0313068d5cd3b2size 234881907123version https://git-lfs.github.com/spec/v1oid sha256:f75db04f584e692adac9bb7bdc5bbde4904191c2ea44add06c63c66c4f15bd88size 234881910123version https://git-lfs.github.com/spec/v1oid sha256:c25f963887dcf34aa9b810e30241387b890e853635d201788de2feed495458fbsize 234881904123version https://git-lfs.github.com/spec/v1oid sha256:fb5e57930837c487e3bbe4ecd7ba19066a4728c4fb9314a769a7bdf6423731bdsize 234881910123version https://git-lfs.github.com/spec/v1oid sha256:e6a4a5b9cbf734824e76b2a3942db6d5ab4a85bc7c5c3e823cbf3f17a57bf45asize 17276123version https://git-lfs.github.com/spec/v1oid sha256:3e2aaff3b25fc903841425247785dd1a19992c1cbb3e2283d513d90363dcb28esize 17303123version https://git-lfs.github.com/spec/v1oid sha256:6cc787d02b9923e325376e12a3d954034dc30b21c42b6ec34b5c95ff0da9d08fsize 67109759123version https://git-lfs.github.com/spec/v1oid sha256:de0239c1f61abd843de3951cbf1ef8b8e2990a13917902ba7d21c50884e398f9size 16778111123version https://git-lfs.github.com/spec/v1oid sha256:7e68fa23db7fb5ed5db5b600ebd1b0e91eb67384f6dbb1a50098129bedfaeb96size 16778111123version https://git-lfs.github.com/spec/v1oid sha256:d6bbdf9cab12241a52284bc38193241cb9f3e9c21cca92beba7ab3d2cbbc3e2dsize 67109759pytorch_model.bin/p41.model.layers.4.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p42.model.layers.4.mlp.up_proj.weightAdded+3
pytorch_model.bin/p43.model.layers.4.mlp.down_proj.weightAdded+3
pytorch_model.bin/p44.model.layers.4.input_layernorm.weightAdded+3
pytorch_model.bin/p45.model.layers.4.post_attention_layernorm.weightAdded+3
pytorch_model.bin/p46.model.layers.5.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p47.model.layers.5.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p48.model.layers.5.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p49.model.layers.5.self_attn.o_proj.weightAdded+3
pytorch_model.bin/p5.model.layers.0.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p50.model.layers.5.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p51.model.layers.5.mlp.up_proj.weightAdded+3
pytorch_model.bin/p52.model.layers.5.mlp.down_proj.weightAdded+3
pytorch_model.bin/p53.model.layers.5.input_layernorm.weightAdded+3
pytorch_model.bin/p54.model.layers.5.post_attention_layernorm.weightAdded+3
pytorch_model.bin/p55.model.layers.6.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p56.model.layers.6.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p57.model.layers.6.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p58.model.layers.6.self_attn.o_proj.weightAdded+3