Instructions to use EmbeddedLLM/Mistral-7B-Merge-14-v0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EmbeddedLLM/Mistral-7B-Merge-14-v0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EmbeddedLLM/Mistral-7B-Merge-14-v0")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EmbeddedLLM/Mistral-7B-Merge-14-v0") model = AutoModelForCausalLM.from_pretrained("EmbeddedLLM/Mistral-7B-Merge-14-v0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EmbeddedLLM/Mistral-7B-Merge-14-v0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EmbeddedLLM/Mistral-7B-Merge-14-v0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EmbeddedLLM/Mistral-7B-Merge-14-v0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/EmbeddedLLM/Mistral-7B-Merge-14-v0
- SGLang
How to use EmbeddedLLM/Mistral-7B-Merge-14-v0 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 "EmbeddedLLM/Mistral-7B-Merge-14-v0" \ --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": "EmbeddedLLM/Mistral-7B-Merge-14-v0", "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 "EmbeddedLLM/Mistral-7B-Merge-14-v0" \ --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": "EmbeddedLLM/Mistral-7B-Merge-14-v0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use EmbeddedLLM/Mistral-7B-Merge-14-v0 with Docker Model Runner:
docker model run hf.co/EmbeddedLLM/Mistral-7B-Merge-14-v0
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,9 +1,19 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
---
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Model Description
|
| 8 |
This is an experiment to test merging 14 models using DARE TIES 🦙
|
| 9 |
|
|
@@ -90,9 +100,9 @@ models:
|
|
| 90 |
weight: 0.08
|
| 91 |
density: 0.5
|
| 92 |
merge_method: dare_ties
|
| 93 |
-
base_model: /
|
| 94 |
parameters:
|
| 95 |
int8_mask: true
|
| 96 |
dtype: bfloat16
|
| 97 |
|
| 98 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
---
|
| 6 |
|
| 7 |
+
# Update 2023-12-19
|
| 8 |
+
|
| 9 |
+
In light of [dataset contamination issue among the merged models](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard/discussions/474)
|
| 10 |
+
raised by the community in recent days, in particular
|
| 11 |
+
[berkeley-nest/Starling-LM-7B-alpha](https://huggingface.co/berkeley-nest/Starling-LM-7B-alpha), and
|
| 12 |
+
[Q-bert/MetaMath-Cybertron-Starling](https://huggingface.co/Q-bert/MetaMath-Cybertron-Starling),
|
| 13 |
+
we decided to remake another model without the models mentioned.
|
| 14 |
+
Additionally, their CC-by-NC-4.0 license is restrictive and thus are not suitable for an open model.
|
| 15 |
+
|
| 16 |
+
|
| 17 |
# Model Description
|
| 18 |
This is an experiment to test merging 14 models using DARE TIES 🦙
|
| 19 |
|
|
|
|
| 100 |
weight: 0.08
|
| 101 |
density: 0.5
|
| 102 |
merge_method: dare_ties
|
| 103 |
+
base_model: mistralai/Mistral-7B-v0.1
|
| 104 |
parameters:
|
| 105 |
int8_mask: true
|
| 106 |
dtype: bfloat16
|
| 107 |
|
| 108 |
+
```
|