Text Generation
Transformers
Safetensors
English
mistral
Eval Results (legacy)
text-generation-inference
Instructions to use l3utterfly/mistral-7b-v0.1-layla-v4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use l3utterfly/mistral-7b-v0.1-layla-v4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="l3utterfly/mistral-7b-v0.1-layla-v4")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("l3utterfly/mistral-7b-v0.1-layla-v4") model = AutoModelForCausalLM.from_pretrained("l3utterfly/mistral-7b-v0.1-layla-v4") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use l3utterfly/mistral-7b-v0.1-layla-v4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "l3utterfly/mistral-7b-v0.1-layla-v4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "l3utterfly/mistral-7b-v0.1-layla-v4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/l3utterfly/mistral-7b-v0.1-layla-v4
- SGLang
How to use l3utterfly/mistral-7b-v0.1-layla-v4 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 "l3utterfly/mistral-7b-v0.1-layla-v4" \ --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": "l3utterfly/mistral-7b-v0.1-layla-v4", "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 "l3utterfly/mistral-7b-v0.1-layla-v4" \ --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": "l3utterfly/mistral-7b-v0.1-layla-v4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use l3utterfly/mistral-7b-v0.1-layla-v4 with Docker Model Runner:
docker model run hf.co/l3utterfly/mistral-7b-v0.1-layla-v4
How to use from
SGLangUse 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 "l3utterfly/mistral-7b-v0.1-layla-v4" \
--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": "l3utterfly/mistral-7b-v0.1-layla-v4",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'Quick Links
Model Card
Model Description
Mistral 7B fine-tuned by the OpenHermes 2.5 dataset optimised for multi-turn conversation and character impersonation.
The dataset has been pre-processed by doing the following:
- remove all refusals
- remove any mention of AI assistant
- split any multi-turn dialog generated in the dataset into multi-turn conversations records
- added nfsw generated conversations from the Teatime dataset
- Developed by: l3utterfly
- Funded by: Layla Network
- Model type: Mistral
- Language(s) (NLP): English
- License: Apache-2.0
- Finetuned from model: Mistral 7B
Uses
Base model used by Layla - the offline personal assistant: https://www.layla-network.ai
Help & support: https://discord.gg/x546YJ6nYC
Prompt:
USER:
ASSISTANT:
Open LLM Leaderboard Evaluation Results
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 64.69 |
| AI2 Reasoning Challenge (25-Shot) | 62.29 |
| HellaSwag (10-Shot) | 83.36 |
| MMLU (5-Shot) | 64.32 |
| TruthfulQA (0-shot) | 43.14 |
| Winogrande (5-shot) | 79.56 |
| GSM8k (5-shot) | 55.50 |
- Downloads last month
- 93
Model tree for l3utterfly/mistral-7b-v0.1-layla-v4
Spaces using l3utterfly/mistral-7b-v0.1-layla-v4 8
π
Darok/Featherless-Feud
π»
Granther/try-this-model
π»
featherless-ai/try-this-model
π»
emekaboris/try-this-model
π»
SC999/NV_Nemotron
Evaluation results
- normalized accuracy on AI2 Reasoning Challenge (25-Shot)test set Open LLM Leaderboard62.290
- normalized accuracy on HellaSwag (10-Shot)validation set Open LLM Leaderboard83.360
- accuracy on MMLU (5-Shot)test set Open LLM Leaderboard64.320
- mc2 on TruthfulQA (0-shot)validation set Open LLM Leaderboard43.140
- accuracy on Winogrande (5-shot)validation set Open LLM Leaderboard79.560
- accuracy on GSM8k (5-shot)test set Open LLM Leaderboard55.500
Install from pip and serve model
# Install SGLang from pip: pip install sglang# Start the SGLang server: python3 -m sglang.launch_server \ --model-path "l3utterfly/mistral-7b-v0.1-layla-v4" \ --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": "l3utterfly/mistral-7b-v0.1-layla-v4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'