Text Generation
Transformers
Safetensors
English
mistral
finetuned
chatml
conversational
text-generation-inference
Instructions to use l3utterfly/mistral-7b-v0.1-layla-v4-chatml 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-chatml 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-chatml") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("l3utterfly/mistral-7b-v0.1-layla-v4-chatml") model = AutoModelForCausalLM.from_pretrained("l3utterfly/mistral-7b-v0.1-layla-v4-chatml") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use l3utterfly/mistral-7b-v0.1-layla-v4-chatml 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-chatml" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "l3utterfly/mistral-7b-v0.1-layla-v4-chatml", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/l3utterfly/mistral-7b-v0.1-layla-v4-chatml
- SGLang
How to use l3utterfly/mistral-7b-v0.1-layla-v4-chatml 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-chatml" \ --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": "l3utterfly/mistral-7b-v0.1-layla-v4-chatml", "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 "l3utterfly/mistral-7b-v0.1-layla-v4-chatml" \ --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": "l3utterfly/mistral-7b-v0.1-layla-v4-chatml", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use l3utterfly/mistral-7b-v0.1-layla-v4-chatml with Docker Model Runner:
docker model run hf.co/l3utterfly/mistral-7b-v0.1-layla-v4-chatml
Add model Avatar, tags and AWQ quant links
#2
by Kronikus - opened
- .gitattributes +1 -0
- Layla.png +3 -0
- README.md +20 -1
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Layla.png filter=lfs diff=lfs merge=lfs -text
|
Layla.png
ADDED
|
Git LFS Details
|
README.md
CHANGED
|
@@ -1,8 +1,23 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
# Model Card
|
| 5 |
|
|
|
|
|
|
|
| 6 |
### Model Description
|
| 7 |
|
| 8 |
Mistral 7B fine-tuned by the OpenHermes 2.5 dataset optimised for multi-turn conversation and character impersonation.
|
|
@@ -40,4 +55,8 @@ Sure! What do you want to know about?<|im_end|>
|
|
| 40 |
<|im_start|>Chiharu
|
| 41 |
```
|
| 42 |
|
| 43 |
-
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- finetuned
|
| 5 |
+
- text-generation
|
| 6 |
+
- autotrain_compatible
|
| 7 |
+
- endpoints_compatible
|
| 8 |
+
- chatml
|
| 9 |
+
library_name: transformers
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
model_creator: l3utterfly
|
| 13 |
+
model_name: mistral-7b-v0.1-layla-v4-chatml
|
| 14 |
+
model_type: mistral
|
| 15 |
+
pipeline_tag: text-generation
|
| 16 |
---
|
| 17 |
# Model Card
|
| 18 |
|
| 19 |
+

|
| 20 |
+
|
| 21 |
### Model Description
|
| 22 |
|
| 23 |
Mistral 7B fine-tuned by the OpenHermes 2.5 dataset optimised for multi-turn conversation and character impersonation.
|
|
|
|
| 55 |
<|im_start|>Chiharu
|
| 56 |
```
|
| 57 |
|
| 58 |
+
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
| 59 |
+
|
| 60 |
+
## Model Quants
|
| 61 |
+
|
| 62 |
+
[solidrust/-AWQ](https://huggingface.co/solidrust/Layla-7B-v4-AWQ)
|