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
ce773abb7e7e1d8ec1b83953e6895d8c3c83332d8ee573928c2a30e41a47913d
Browse filesFiles changed (21)
- pytorch_model.bin/p168.model.layers.18.mlp.up_proj.weightAdded+3
- pytorch_model.bin/p169.model.layers.18.mlp.down_proj.weightAdded+3
- pytorch_model.bin/p17.model.layers.1.input_layernorm.weightAdded+3
- pytorch_model.bin/p170.model.layers.18.input_layernorm.weightAdded+3
- pytorch_model.bin/p171.model.layers.18.post_attention_layernorm.weightAdded+3
- pytorch_model.bin/p172.model.layers.19.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p173.model.layers.19.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p174.model.layers.19.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p175.model.layers.19.self_attn.o_proj.weightAdded+3
- pytorch_model.bin/p176.model.layers.19.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p177.model.layers.19.mlp.up_proj.weightAdded+3
- pytorch_model.bin/p178.model.layers.19.mlp.down_proj.weightAdded+3
- pytorch_model.bin/p179.model.layers.19.input_layernorm.weightAdded+3
- pytorch_model.bin/p18.model.layers.1.post_attention_layernorm.weightAdded+3
- pytorch_model.bin/p180.model.layers.19.post_attention_layernorm.weightAdded+3
- pytorch_model.bin/p181.model.layers.20.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p182.model.layers.20.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p183.model.layers.20.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p184.model.layers.20.self_attn.o_proj.weightAdded+3
- pytorch_model.bin/p185.model.layers.20.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p186.model.layers.20.mlp.up_proj.weightAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:53b123e08c43155eb96e23ee222215234f48adefe791e0cd2b569691fb91e2d4size 234881910123version https://git-lfs.github.com/spec/v1oid sha256:b9d2c7d860cd864ec01eb3addcf50c754096230ab22b21743274e6f79881f860size 234881916123version https://git-lfs.github.com/spec/v1oid sha256:a388cd62391edae69389910c50819a23920663a87481fdc95a113d0ac33508c7size 17276123version https://git-lfs.github.com/spec/v1oid sha256:8660b1ebafd3a3b3b2df0fb33e2e2aa1fd0c04ccc73c81eb97e00239ad2f269esize 17282123version https://git-lfs.github.com/spec/v1oid sha256:7d5a1ffc21af6e8421a939fdc82c5a866398165671299f2ec1d349fced5edeeasize 17309123version https://git-lfs.github.com/spec/v1oid sha256:d2f1bb29c28c680c1def080de77ccbf4c091f120916d5bc4d993b40e0c2b2a98size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:39ff34c0273975d57e35df7ed7553c8ee05f2d07aa28efe178e7e759c4ca270bsize 16778117123version https://git-lfs.github.com/spec/v1oid sha256:c8bcffdc65f0e10119e2b67f406b987879818518e1858cb712f999e610403906size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:4685749705c6cadbcac71e18bd5ee74bf27eecce8b1faff477dc2becce923475size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:4d89e04f01281668b86a84f26609d8ec4d88a5c9c02d75ca1ac6ee9a94833242size 234881916123version https://git-lfs.github.com/spec/v1oid sha256:c5f7d3190174c085ea36bfc546d953d3b43a762f3af729effa79c78d45c89f97size 234881910123version https://git-lfs.github.com/spec/v1oid sha256:db9c5dc54a57ec9fc5e4075b8e17c9ce9176d555ca67faa29505c56d6fe3bc33size 234881916123version https://git-lfs.github.com/spec/v1oid sha256:e03588519988b460a8901da48cd49e5652c0d4140af9acec0819ef1d84d2f026size 17282123version https://git-lfs.github.com/spec/v1oid sha256:f16f81ca617cddfd4cec91d0a965e83cd43cd95fb7dffa3de0d6c2806e90c3fbsize 17303123version https://git-lfs.github.com/spec/v1oid sha256:e02a9c4289abb6a9a23b72192c0812759fb4e8244cce74d418521cdfc69d0e5fsize 17309123version https://git-lfs.github.com/spec/v1oid sha256:0cb8f0bdee912a185b5602cd715913fe063d6931f5ed24a3211da80514015fb5size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:43825832801e41dc189d466a08e4700296674006fdbbe450041026a5c7cf91cfsize 16778117123version https://git-lfs.github.com/spec/v1oid sha256:86f90a9af09674fb509a6c9ff26dbd95234c781b7f527dafcc360e2c134edfc7size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:307e5ad4d6ce0c175073d8e2d0b92f3174be6a9cd6a74c814ee63cd1999a99d3size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:d247f21e05c7beb836b0a80ba6d5accf1ff65dd7765493c9697fb3752d642ca2size 234881916123version https://git-lfs.github.com/spec/v1oid sha256:ce7ed137884f8d60c9f81a0c29e86f4718a2e2e1cd0d63f5f484e8f4093603a5size 234881910pytorch_model.bin/p168.model.layers.18.mlp.up_proj.weightAdded+3
pytorch_model.bin/p169.model.layers.18.mlp.down_proj.weightAdded+3
pytorch_model.bin/p17.model.layers.1.input_layernorm.weightAdded+3
pytorch_model.bin/p170.model.layers.18.input_layernorm.weightAdded+3
pytorch_model.bin/p171.model.layers.18.post_attention_layernorm.weightAdded+3
pytorch_model.bin/p172.model.layers.19.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p173.model.layers.19.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p174.model.layers.19.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p175.model.layers.19.self_attn.o_proj.weightAdded+3
pytorch_model.bin/p176.model.layers.19.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p177.model.layers.19.mlp.up_proj.weightAdded+3
pytorch_model.bin/p178.model.layers.19.mlp.down_proj.weightAdded+3
pytorch_model.bin/p179.model.layers.19.input_layernorm.weightAdded+3
pytorch_model.bin/p18.model.layers.1.post_attention_layernorm.weightAdded+3
pytorch_model.bin/p180.model.layers.19.post_attention_layernorm.weightAdded+3
pytorch_model.bin/p181.model.layers.20.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p182.model.layers.20.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p183.model.layers.20.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p184.model.layers.20.self_attn.o_proj.weightAdded+3
pytorch_model.bin/p185.model.layers.20.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p186.model.layers.20.mlp.up_proj.weightAdded+3