Instructions to use athirdpath/BigMistral-13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use athirdpath/BigMistral-13b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="athirdpath/BigMistral-13b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("athirdpath/BigMistral-13b") model = AutoModelForCausalLM.from_pretrained("athirdpath/BigMistral-13b") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use athirdpath/BigMistral-13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "athirdpath/BigMistral-13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "athirdpath/BigMistral-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/athirdpath/BigMistral-13b
- SGLang
How to use athirdpath/BigMistral-13b 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 "athirdpath/BigMistral-13b" \ --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": "athirdpath/BigMistral-13b", "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 "athirdpath/BigMistral-13b" \ --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": "athirdpath/BigMistral-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use athirdpath/BigMistral-13b with Docker Model Runner:
docker model run hf.co/athirdpath/BigMistral-13b
Commit ·
efcea59
1
Parent(s): b3dfbc3
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
EDIT: Works pretty well for a model with no finetuning, has promise. Better and lighter than the 14b.
|
| 5 |
+
|
| 6 |
+
A 13b Mistral base model, based on the NeverSleep recipe. We've had second Mistral, why not third Mistral?
|
| 7 |
+
|
| 8 |
+
### Recipe
|
| 9 |
+
|
| 10 |
+
slices
|
| 11 |
+
|
| 12 |
+
- sources:
|
| 13 |
+
-
|
| 14 |
+
- model: mistralai/Mistral-7B-v0.1
|
| 15 |
+
-
|
| 16 |
+
layer_range: [0, 24]
|
| 17 |
+
|
| 18 |
+
- sources:
|
| 19 |
+
-
|
| 20 |
+
- model: mistralai/Mistral-7B-v0.1
|
| 21 |
+
-
|
| 22 |
+
layer_range: [12, 24]
|
| 23 |
+
|
| 24 |
+
- sources:
|
| 25 |
+
-
|
| 26 |
+
- model: mistralai/Mistral-7B-v0.1
|
| 27 |
+
-
|
| 28 |
+
layer_range: [8, 32]
|
| 29 |
+
|
| 30 |
+
merge_method: passthrough
|
| 31 |
+
|
| 32 |
+
dtype: bfloat16
|