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
35c78188f8b28e788904281210efde979c4200378843b3ec70de3b04e391c433
Browse filesFiles changed (26)
- .gitattributes+4
- 0e72957392b3a5897c20.neffAdded+3
- 188bb34b13539c76dd99.neffAdded+3
- 97cfc2d8d6c59d12a28f.neffAdded+3
- cd15a292fcfa32df7f51.neffAdded+3
- config.jsonAdded+25
- generation_config.jsonAdded+6
- pytorch_model.bin/key_to_filename.jsonAdded+3
- pytorch_model.bin/p0.model.embed_tokens.weightAdded+3
- pytorch_model.bin/p1.model.layers.0.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p10.model.layers.1.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p100.model.layers.11.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p101.model.layers.11.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p102.model.layers.11.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p103.model.layers.11.self_attn.o_proj.weightAdded+3
- pytorch_model.bin/p104.model.layers.11.mlp.gate_proj.weightAdded+3
- pytorch_model.bin/p105.model.layers.11.mlp.up_proj.weightAdded+3
- pytorch_model.bin/p106.model.layers.11.mlp.down_proj.weightAdded+3
- pytorch_model.bin/p107.model.layers.11.input_layernorm.weightAdded+3
- pytorch_model.bin/p108.model.layers.11.post_attention_layernorm.weightAdded+3
- pytorch_model.bin/p109.model.layers.12.self_attn.q_proj.weightAdded+3
- pytorch_model.bin/p11.model.layers.1.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p110.model.layers.12.self_attn.k_proj.weightAdded+3
- pytorch_model.bin/p111.model.layers.12.self_attn.v_proj.weightAdded+3
- pytorch_model.bin/p112.model.layers.12.self_attn.o_proj.weightAdded+3
- pytorch_model.bin/p113.model.layers.12.mlp.gate_proj.weightAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353637383932 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text0e72957392b3a5897c20.neff filter=lfs diff=lfs merge=lfs -text188bb34b13539c76dd99.neff filter=lfs diff=lfs merge=lfs -text97cfc2d8d6c59d12a28f.neff filter=lfs diff=lfs merge=lfs -textcd15a292fcfa32df7f51.neff filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:02b549a81664d600c7ec9d5bc351dcef30a35775f16cf33df06a78aa60bb6edbsize 9688064123version https://git-lfs.github.com/spec/v1oid sha256:172d12e12470522562645e4c4ff9d1021a433ac9356a642d5a6984dfa6237d73size 8592384123version https://git-lfs.github.com/spec/v1oid sha256:9940b833a836c604a4ba0ff55427089c8681994afb3cad7f841f25c4264e15bbsize 8530944123version https://git-lfs.github.com/spec/v1oid sha256:d22324417523a6b332a4847778aee4096d0320ff810f6bd3fc149247056f16f6size 907366412345678910111213141516171819202122232425{ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.1", "architectures": [ "MistralForCausalLM" ], "bos_token_id": 1, "eos_token_id": 2, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 14336, "max_position_embeddings": 32768, "model_type": "mistral", "num_attention_heads": 32, "num_hidden_layers": 32, "num_key_value_heads": 8, "rms_norm_eps": 1e-05, "rope_theta": 10000.0, "sliding_window": 4096, "tie_word_embeddings": false, "torch_dtype": "float32", "transformers_version": "4.35.0", "use_cache": true, "vocab_size": 32000}123456{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 2, "transformers_version": "4.35.0"}123version https://git-lfs.github.com/spec/v1oid sha256:825d20f4a18183eff3963e805edd13ef7eb35b0aff7a850e8153ca1eeeb37970size 26397123version https://git-lfs.github.com/spec/v1oid sha256:7fece946a037f1875b65e8b481c243a5eb18deeeb4abb9378b1a12fbf69f6d20size 524288789123version https://git-lfs.github.com/spec/v1oid sha256:86f38324df4de55f8ee2935c344c62fa44551ab73747b6571b29d72a620e409dsize 67109756123version https://git-lfs.github.com/spec/v1oid sha256:e71552fc62e605445573da7c03604463a2c047196449ee84c2045cff1d79d46bsize 67109759123version https://git-lfs.github.com/spec/v1oid sha256:cec8baad6317aed7da66896ce384bf37a9a780b03c6db1889f38674fd418d1acsize 67109765123version https://git-lfs.github.com/spec/v1oid sha256:45e7cdd33c6a8ed277e01a9cd426a0dfdf2e21b48fbc089853926d41a264b5bcsize 16778117123version https://git-lfs.github.com/spec/v1oid sha256:19c3eb5fbbf50940f17af3953f2457f2f241a6b72992805e5a5041af279cc8c0size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:37ea7f34e5567a9e49e7c4662d666db90931f44ee9be8940bd13d62df04b12e2size 67109765123version https://git-lfs.github.com/spec/v1oid sha256:5dd936141ee0fe85bcdbdf025731b0bad43bd2c6d28b534d49f6a0930c813dc9size 234881916123version https://git-lfs.github.com/spec/v1oid sha256:5dedb343ca3c4d9cca2a1ec5f7f76aac91e1711106b76cc346057c81cd5c9fc3size 234881910123version https://git-lfs.github.com/spec/v1oid sha256:cb96bdf9378a00e63a6be9dbed2d785154cdd9fcb34a10d822775c356ed827c8size 234881916123version https://git-lfs.github.com/spec/v1oid sha256:ecc88f93271c42494a122857d03368e6b149ea437666041adcbfbda98fb879a4size 17282123version https://git-lfs.github.com/spec/v1oid sha256:02ebda0d8b1f9d8ace310144bec1f62aee85dbe3135f3cd1964f3a748d33a54asize 17309123version https://git-lfs.github.com/spec/v1oid sha256:cfb50db117af5c79203580d0883e586bafcff6111a3f361bdd6a2ce7e776308asize 67109765123version https://git-lfs.github.com/spec/v1oid sha256:259258e7a0d922ca7620dc8af2ab75843384761a0bd83ccc725d9f42f68e5d0csize 16778111123version https://git-lfs.github.com/spec/v1oid sha256:c56ea7f39f20b4c5bb7bcef169a1de98b2fbd9bc51317e91d90194b9b13371casize 16778117123version https://git-lfs.github.com/spec/v1oid sha256:1a3085e8397e9a6880e09666324d6e7bf2d7bbb9651915e7d7f5ba6297b36fd5size 16778117123version https://git-lfs.github.com/spec/v1oid sha256:79e7ffb98aac0ba71632b0dbbff156f23a3719e8ac84f67b902053107fe07a8esize 67109765123version https://git-lfs.github.com/spec/v1oid sha256:a785f23db614522b2167cf41f019aaa3704c3cfc002ed3aa1fb5d0c4fd6e5e1fsize 234881916.gitattributes+4
0e72957392b3a5897c20.neffAdded+3
188bb34b13539c76dd99.neffAdded+3
97cfc2d8d6c59d12a28f.neffAdded+3
cd15a292fcfa32df7f51.neffAdded+3
config.jsonAdded+25
generation_config.jsonAdded+6
pytorch_model.bin/key_to_filename.jsonAdded+3
pytorch_model.bin/p0.model.embed_tokens.weightAdded+3
pytorch_model.bin/p1.model.layers.0.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p10.model.layers.1.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p100.model.layers.11.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p101.model.layers.11.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p102.model.layers.11.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p103.model.layers.11.self_attn.o_proj.weightAdded+3
pytorch_model.bin/p104.model.layers.11.mlp.gate_proj.weightAdded+3
pytorch_model.bin/p105.model.layers.11.mlp.up_proj.weightAdded+3
pytorch_model.bin/p106.model.layers.11.mlp.down_proj.weightAdded+3
pytorch_model.bin/p107.model.layers.11.input_layernorm.weightAdded+3
pytorch_model.bin/p108.model.layers.11.post_attention_layernorm.weightAdded+3
pytorch_model.bin/p109.model.layers.12.self_attn.q_proj.weightAdded+3
pytorch_model.bin/p11.model.layers.1.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p110.model.layers.12.self_attn.k_proj.weightAdded+3
pytorch_model.bin/p111.model.layers.12.self_attn.v_proj.weightAdded+3
pytorch_model.bin/p112.model.layers.12.self_attn.o_proj.weightAdded+3
pytorch_model.bin/p113.model.layers.12.mlp.gate_proj.weightAdded+3