Instructions to use MaziyarPanahi/Calme-7B-Instruct-v0.9 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MaziyarPanahi/Calme-7B-Instruct-v0.9 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MaziyarPanahi/Calme-7B-Instruct-v0.9")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/Calme-7B-Instruct-v0.9") model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/Calme-7B-Instruct-v0.9") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MaziyarPanahi/Calme-7B-Instruct-v0.9 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MaziyarPanahi/Calme-7B-Instruct-v0.9" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MaziyarPanahi/Calme-7B-Instruct-v0.9", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MaziyarPanahi/Calme-7B-Instruct-v0.9
- SGLang
How to use MaziyarPanahi/Calme-7B-Instruct-v0.9 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/Calme-7B-Instruct-v0.9" \ --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": "MaziyarPanahi/Calme-7B-Instruct-v0.9", "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 "MaziyarPanahi/Calme-7B-Instruct-v0.9" \ --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": "MaziyarPanahi/Calme-7B-Instruct-v0.9", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MaziyarPanahi/Calme-7B-Instruct-v0.9 with Docker Model Runner:
docker model run hf.co/MaziyarPanahi/Calme-7B-Instruct-v0.9
MaziyarPanahi/Calme-7B-Instruct-v0.9
Model Description
Calme-7B is a state-of-the-art language model with 7 billion parameters, fine-tuned over high-quality datasets on top of Mistral-7B. The Calme-7B models excel in generating text that resonates with clarity, calmness, and coherence.
How to Use
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="MaziyarPanahi/Calme-7B-Instruct-v0.9")
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/Calme-7B-Instruct-v0.9")
model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/Calme-7B-Instruct-v0.9")
Quantized Models
I love how GGUF democratizes the use of Large Language Models (LLMs) on commodity hardware, more specifically, personal computers without any accelerated hardware. Because of this, I am committed to converting and quantizing any models I fine-tune to make them accessible to everyone!
- GGUF (2/3/4/5/6/8 bits): MaziyarPanahi/Calme-7B-Instruct-v0.9-GGUF
Examples
<s>[INST] You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
describe about pros and cons of docker system. [/INST]
Show me the response
Show me the response
<s> [INST] Mark is faster than Mary, Mary is faster than Joe. Is Joe faster than Mark? Let's think step by step [/INST]
Show me the response
Show me the response
<s> [INST] explain step by step 25-4*2+3=? [/INST]
Show me the response
Multilingual:
<s> [INST] Vous Γͺtes un assistant utile, respectueux et honnΓͺte. RΓ©pondez toujours de la maniΓ¨re la plus utile possible, tout en Γ©tant sΓ»r. Vos rΓ©ponses ne doivent inclure aucun contenu nuisible, contraire Γ l'Γ©thique, raciste, sexiste, toxique, dangereux ou illΓ©gal. Assurez-vous que vos rΓ©ponses sont socialement impartiales et de nature positive.
Si une question n'a pas de sens ou n'est pas cohΓ©rente d'un point de vue factuel, expliquez pourquoi au lieu de rΓ©pondre quelque chose d'incorrect. Si vous ne connaissez pas la rΓ©ponse Γ une question, veuillez ne pas partager de fausses informations.
Décrivez les avantages et les inconvénients du système Docker.[/INST]
Show me the response
Show me the response
<s>[INST] ΠΠΈ - ΠΊΠΎΡΠΈΡΠ½ΠΈΠΉ, ΠΏΠΎΠ²Π°ΠΆΠ½ΠΈΠΉ ΡΠ° ΡΠ΅ΡΠ½ΠΈΠΉ ΠΏΠΎΠΌΡΡΠ½ΠΈΠΊ. ΠΠ°Π²ΠΆΠ΄ΠΈ Π²ΡΠ΄ΠΏΠΎΠ²ΡΠ΄Π°ΠΉΡΠ΅ ΠΌΠ°ΠΊΡΠΈΠΌΠ°Π»ΡΠ½ΠΎ ΠΊΠΎΡΠΈΡΠ½ΠΎ, Π±ΡΠ΄ΡΡΠΈ Π±Π΅Π·ΠΏΠ΅ΡΠ½ΠΈΠΌ. ΠΠ°ΡΡ Π²ΡΠ΄ΠΏΠΎΠ²ΡΠ΄Ρ Π½Π΅ ΠΏΠΎΠ²ΠΈΠ½Π½Ρ ΠΌΡΡΡΠΈΡΠΈ ΡΠΊΡΠ΄Π»ΠΈΠ²ΠΎΠ³ΠΎ, Π½Π΅Π΅ΡΠΈΡΠ½ΠΎΠ³ΠΎ, ΡΠ°ΡΠΈΡΡΡΡΠΊΠΎΠ³ΠΎ, ΡΠ΅ΠΊΡΠΈΡΡΡΡΠΊΠΎΠ³ΠΎ, ΡΠΎΠΊΡΠΈΡΠ½ΠΎΠ³ΠΎ, Π½Π΅Π±Π΅Π·ΠΏΠ΅ΡΠ½ΠΎΠ³ΠΎ Π°Π±ΠΎ Π½Π΅Π»Π΅Π³Π°Π»ΡΠ½ΠΎΠ³ΠΎ ΠΊΠΎΠ½ΡΠ΅Π½ΡΡ. ΠΡΠ΄Ρ Π»Π°ΡΠΊΠ°, ΠΏΠ΅ΡΠ΅ΠΊΠΎΠ½Π°ΠΉΡΠ΅ΡΡ, ΡΠΎ Π²Π°ΡΡ Π²ΡΠ΄ΠΏΠΎΠ²ΡΠ΄Ρ ΡΠΎΡΡΠ°Π»ΡΠ½ΠΎ Π½Π΅ΡΠΏΠ΅ΡΠ΅Π΄ΠΆΠ΅Π½Ρ ΡΠ° ΠΌΠ°ΡΡΡ ΠΏΠΎΠ·ΠΈΡΠΈΠ²Π½ΠΈΠΉ Ρ
Π°ΡΠ°ΠΊΡΠ΅Ρ.
Π―ΠΊΡΠΎ ΠΏΠΈΡΠ°Π½Π½Ρ Π½Π΅ ΠΌΠ°Ρ ΡΠ΅Π½ΡΡ Π°Π±ΠΎ Π½Π΅ Ρ ΡΠ°ΠΊΡΠΈΡΠ½ΠΎ ΠΏΠΎΡΠ»ΡΠ΄ΠΎΠ²Π½ΠΈΠΌ, ΠΏΠΎΡΡΠ½ΡΡΡ ΡΠΎΠΌΡ, Π·Π°ΠΌΡΡΡΡ ΡΠΎΠ³ΠΎ, ΡΠΎΠ± Π²ΡΠ΄ΠΏΠΎΠ²ΡΠ΄Π°ΡΠΈ ΡΠΎΡΡ Π½Π΅ΠΊΠΎΡΠ΅ΠΊΡΠ½Π΅. Π―ΠΊΡΠΎ Π²ΠΈ Π½Π΅ Π·Π½Π°ΡΡΠ΅ Π²ΡΠ΄ΠΏΠΎΠ²ΡΠ΄Ρ Π½Π° ΠΏΠΈΡΠ°Π½Π½Ρ, Π±ΡΠ΄Ρ Π»Π°ΡΠΊΠ°, Π½Π΅ Π΄ΡΠ»ΡΡΡΡΡ Π½Π΅ΠΏΡΠ°Π²Π΄ΠΈΠ²ΠΎΡ ΡΠ½ΡΠΎΡΠΌΠ°ΡΡΡΡ.
ΠΠΏΠΈΡ ΠΏΡΠΎ ΠΏΠ΅ΡΠ΅Π²Π°Π³ΠΈ ΡΠ° Π½Π΅Π΄ΠΎΠ»ΡΠΊΠΈ ΡΠΈΡΡΠ΅ΠΌΠΈ Docker.[/INST]
Show me the response
- Downloads last month
- 73