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
3fc26f8097a3bef6dfb56109b77ed587a6ba3023ba1c8df3cac7cbe84da92943
Browse filesFiles changed (19)
- pytorch_model.bin/p133.model.layers.14.mlp.down_proj.weightAdded+3
- pytorch_model.bin/p134.model.layers.14.input_layernorm.weightAdded+3
- pytorch_model.bin/p135.model.layers.14.post_attention_layernorm.weightAdded+3
- pytorch_model.bin/p136.model.layers.15.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p137.model.layers.15.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p138.model.layers.15.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p139.model.layers.15.self_attn.o_proj.weightAdded+3
- pytorch_model.bin/p14.model.layers.1.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p140.model.layers.15.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p141.model.layers.15.mlp.up_proj.weightAdded+3
- pytorch_model.bin/p142.model.layers.15.mlp.down_proj.weightAdded+3
- pytorch_model.bin/p143.model.layers.15.input_layernorm.weightAdded+3
- pytorch_model.bin/p144.model.layers.15.post_attention_layernorm.weightAdded+3
- pytorch_model.bin/p145.model.layers.16.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p146.model.layers.16.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p147.model.layers.16.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p148.model.layers.16.self_attn.o_proj.weightAdded+3
- pytorch_model.bin/p149.model.layers.16.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p15.model.layers.1.mlp.up_proj.weightAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:7ecc74d181354e5f6dc3f854a78eabed9db77cd2dc32a53cb79b6feaa566ff9asize 234881916123version https://git-lfs.github.com/spec/v1oid sha256:b8f79fc4e572a39a39ebcf2322b9020629d39deae74299f0c63cd828cd3bc139size 17282123version https://git-lfs.github.com/spec/v1oid sha256:c62eede7347abe4a886c313aac47f19006ce9821ff1e6a17326c179c19146cebsize 17309123version https://git-lfs.github.com/spec/v1oid sha256:d7ed881f5377a31fb6d44329868281825b0dae1ccff966632649e99d6de2e893size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:d287f3e6d00c352c5d35887a5b9e579fe316c01c5856d4e91fea63fd06027295size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:d73cae9a997142c3f17f0534af4c5bb70b140db79c439e96b7c7e3373f3062b7size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:007a7bd7f9f51672954024581cfdd907670f34fb417e78b6e9a224f4f1793825size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:27d949fbe99ba9efb7ff6c3b042d631383f303cf4606c615edcd85d929aa03besize 234881910123version https://git-lfs.github.com/spec/v1oid sha256:be10fcce36a4cf62341eaa834cfd6b18fd0878b1e479482bb618a19f68632a85size 234881916123version https://git-lfs.github.com/spec/v1oid sha256:7bc4ac3ac2a035010f906cd34861b0e2824c1f4b1942e951b0bbb81aedb8e230size 234881910123version https://git-lfs.github.com/spec/v1oid sha256:c7dabd8cc77fafbb30b9c96cacc2604515eaea529dd4de6a161c28b2f9eba4absize 234881916123version https://git-lfs.github.com/spec/v1oid sha256:0ccf183d1c9f0129201c125b7d810f4bd1de6365e79f4b64fffd9615b8f79c6bsize 17282123version https://git-lfs.github.com/spec/v1oid sha256:9db1becfa7fcab4b43e92d9ca3ed995c3bc83ea748cb32daf97add8de8654dd8size 17309123version https://git-lfs.github.com/spec/v1oid sha256:bcf4304589263bd8ddb8bef4aa72faf821e16cf0e6a6b854bc17674371d0deb8size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:9984b89fa0a124dcc8a7a46ceb15cf8d55035ead75ce7a7392122b7ad2a33661size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:1bd2823fd35ce254ed931cd8137e3c89f2f0dc7e41ab90f5e6ee8bcb23893e40size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:d7857c2a550690dff969a041699fd07aaed5bdf6dafd2494f672687693553264size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:8372a112202c3f3bde1e7fc6d99399666e5346470c920f585bc2548c7f3e65ebsize 234881916123version https://git-lfs.github.com/spec/v1oid sha256:d6e806861dd267d9c2b8f7365d6eeff2baf1aea5d8d35c4c376af8e957ce245esize 234881904pytorch_model.bin/p133.model.layers.14.mlp.down_proj.weightAdded+3
pytorch_model.bin/p134.model.layers.14.input_layernorm.weightAdded+3
pytorch_model.bin/p135.model.layers.14.post_attention_layernorm.weightAdded+3
pytorch_model.bin/p136.model.layers.15.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p137.model.layers.15.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p138.model.layers.15.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p139.model.layers.15.self_attn.o_proj.weightAdded+3
pytorch_model.bin/p14.model.layers.1.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p140.model.layers.15.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p141.model.layers.15.mlp.up_proj.weightAdded+3
pytorch_model.bin/p142.model.layers.15.mlp.down_proj.weightAdded+3
pytorch_model.bin/p143.model.layers.15.input_layernorm.weightAdded+3
pytorch_model.bin/p144.model.layers.15.post_attention_layernorm.weightAdded+3
pytorch_model.bin/p145.model.layers.16.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p146.model.layers.16.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p147.model.layers.16.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p148.model.layers.16.self_attn.o_proj.weightAdded+3
pytorch_model.bin/p149.model.layers.16.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p15.model.layers.1.mlp.up_proj.weightAdded+3