Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
mistral
axolotl
7b
Generated from Trainer
conversational
text-generation-inference
Instructions to use MaziyarPanahi/Mistral-7B-Instruct-Aya-101 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaziyarPanahi/Mistral-7B-Instruct-Aya-101 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MaziyarPanahi/Mistral-7B-Instruct-Aya-101") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/Mistral-7B-Instruct-Aya-101") model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/Mistral-7B-Instruct-Aya-101", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MaziyarPanahi/Mistral-7B-Instruct-Aya-101 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/Mistral-7B-Instruct-Aya-101" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/Mistral-7B-Instruct-Aya-101", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MaziyarPanahi/Mistral-7B-Instruct-Aya-101
- SGLang
How to use MaziyarPanahi/Mistral-7B-Instruct-Aya-101 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 "MaziyarPanahi/Mistral-7B-Instruct-Aya-101" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/Mistral-7B-Instruct-Aya-101", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "MaziyarPanahi/Mistral-7B-Instruct-Aya-101" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/Mistral-7B-Instruct-Aya-101", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MaziyarPanahi/Mistral-7B-Instruct-Aya-101 with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/Mistral-7B-Instruct-Aya-101
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- a1ac4215f8af5d71588a5dcd9af832d8c62eb9200fe1c5f9e56804a596b4f6cf (576fa6120fb65545a685bff02230b170f0a33efa) - 3d5d5e1b8590cbe2bccbcc73047c3d30cd0c396b9b29e5035528cd4c98863a19 (a78f4d256469d543ebde672c3992ad1b3f327fe5) - 4049a0b41699b823037fd165d46be1775c29f8a47ce0dc1d11301d54722ef1c9 (9866f58d462bebfaa0a8fc8f180b88c15ebccecd) - cdf2112c650781cc9aa6973fbae5dc083bc3a8f66f77ead68fdf9e5d8d2a4b0f (049b4eaa5811ccf90b3c19ee3f9d0a668fd2bae6) - fe24cb1052f0f769210046d5d4fc8c4c77eb087cec6c3efd6d41845173c5692e (ed9583dfdbcc6d4d54a5f47263c6beb2e31dc7f1) - 640e9547693e1ce868d75781d745093f09255b48afda86d0aa22d5966322f42c (f0d4a815b09d02bf76793cb78434b72493603459) - 0e3814069bbed0627fbc7f1f9a8904c1b0719d54fce256b1cb7055bec6c2df41 (154d0a14a16e1ec5915a519d64b2d27f1db08b11) - 0c4b478dcfc155aa8aa32f466b0d0ee6b6f9614fb261af9206da1137885ac09d (20dd295e1b7a8a824c74907bbec4a763fcc2a9d2) - 617f37714df2af0f088148b4d25be4b1c4735664e293f7967df1f5ce2e188dbe (9d376894baaadb2cf422fb9d810f1d5a19b3bce4) - 61811f76…eaa0920