Text Generation
Transformers
Safetensors
Greek
English
mistral
finetuned
conversational
text-generation-inference
Instructions to use ilsp/Meltemi-7B-Instruct-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ilsp/Meltemi-7B-Instruct-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ilsp/Meltemi-7B-Instruct-v1") 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("ilsp/Meltemi-7B-Instruct-v1") model = AutoModelForCausalLM.from_pretrained("ilsp/Meltemi-7B-Instruct-v1", 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 ilsp/Meltemi-7B-Instruct-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ilsp/Meltemi-7B-Instruct-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ilsp/Meltemi-7B-Instruct-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ilsp/Meltemi-7B-Instruct-v1
- SGLang
How to use ilsp/Meltemi-7B-Instruct-v1 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 "ilsp/Meltemi-7B-Instruct-v1" \ --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": "ilsp/Meltemi-7B-Instruct-v1", "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 "ilsp/Meltemi-7B-Instruct-v1" \ --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": "ilsp/Meltemi-7B-Instruct-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ilsp/Meltemi-7B-Instruct-v1 with Docker Model Runner:
docker model run hf.co/ilsp/Meltemi-7B-Instruct-v1
Commit History
-
Update README.md
Verified signature3067a42
-
Update README.md
Verified signature9d528b9 -
Update README.md
Verified signature560588b -
Update README.md
Verified signature84ed671 -
Update README.md
Verified signature229833f
-
Update README.md
Verified signature423bfde -
Update README.md (#5)
Verified signature- Update README.md (bd16249dd7da0af6824ff1dbd08ccbd4dcf6115d) Co-authored-by: JB D. <IAMJB@users.noreply.huggingface.co>3772792
-
Update README.md
Verified signaturea21172a -
Update README.md
Verified signature3aa342f -
Update README.md
Verified signaturee466263
-
template usage fix
Verified signaturea9f6aab -
Update tokenizer_config.json
Verified signature4517e4c -
Fix apply_chat_template bug.
Verified signature682f499
-
Update README.md
Verified signaturec6a7ec9 -
Update README.md
Verified signaturea9e93bd -
Update README.md
Verified signaturef0c09e7 -
Update README.md
Verified signaturea253edf
-
Update README.md
Verified signatured5f4f7e -
Update README.md
Verified signature1a4892d -
Update README.md
Verified signature730462b -
Update README.md
Verified signature26f9b7e
-
Update README.md
Verified signature9d66dfd
-
Update README.md
Verified signature978bc34 -
Update config.json
Verified signature943e914 -
Upload tokenizer.json with huggingface_hub
Verified signatured78affd -
Upload special_tokens_map.json with huggingface_hub
Verified signaturefd34e1a -
Upload model.safetensors.index.json with huggingface_hub
Verified signature3e30835 -
Upload generation_config.json with huggingface_hub
Verified signaturea4ea5a5 -
Upload model-00002-of-00002.safetensors with huggingface_hub
Verified signature14109ec -
Update README.md
Verified signatured4ddaf0 -
Update README.md
Verified signaturea0eedaf -
Update README.md
Verified signature9372cc1 -
Delete meltemi-mistral.png
Verified signature83dedd7 -
Update config.json
Verified signature3650a02 -
Upload tokenizer_config.json with huggingface_hub
Verified signature2d2749d -
Upload tokenizer.model with huggingface_hub
Verified signature8059ac8 -
Upload added_tokens.json with huggingface_hub
Verified signature6ae6425 -
Upload config.json with huggingface_hub
Verified signatureb48e1aa -
Upload model-00001-of-00002.safetensors with huggingface_hub
Verified signature8c3bacd -
Delete niaou.txt
Verified signature3fa82b4 -
Upload niaou.txt with huggingface_hub
Verified signaturec7531ab -
Update README.md
Verified signature178b23a -
Update README.md
Verified signature541a737 -
Upload meltemi-mistral.png
Verified signature4a6681d -
Update README.md
Verified signature7363203 -
Update README.md
Verified signature631cf57 -
initial commit
Verified signature2a6fdf6