Instructions to use artek0chumak/TestMixtral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use artek0chumak/TestMixtral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="artek0chumak/TestMixtral")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("artek0chumak/TestMixtral") model = AutoModelForCausalLM.from_pretrained("artek0chumak/TestMixtral") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use artek0chumak/TestMixtral with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "artek0chumak/TestMixtral" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "artek0chumak/TestMixtral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/artek0chumak/TestMixtral
- SGLang
How to use artek0chumak/TestMixtral 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 "artek0chumak/TestMixtral" \ --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": "artek0chumak/TestMixtral", "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 "artek0chumak/TestMixtral" \ --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": "artek0chumak/TestMixtral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use artek0chumak/TestMixtral with Docker Model Runner:
docker model run hf.co/artek0chumak/TestMixtral
change float type
Browse files- config.json +1 -1
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
| 23 |
"router_aux_loss_coef": 0.001,
|
| 24 |
"sliding_window": null,
|
| 25 |
"tie_word_embeddings": false,
|
| 26 |
-
"torch_dtype": "
|
| 27 |
"transformers_version": "4.39.3",
|
| 28 |
"use_cache": true,
|
| 29 |
"vocab_size": 32005
|
|
|
|
| 23 |
"router_aux_loss_coef": 0.001,
|
| 24 |
"sliding_window": null,
|
| 25 |
"tie_word_embeddings": false,
|
| 26 |
+
"torch_dtype": "bfloat16",
|
| 27 |
"transformers_version": "4.39.3",
|
| 28 |
"use_cache": true,
|
| 29 |
"vocab_size": 32005
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a260b8590ae82e8e99c7b9963bebb6c5279db84f8a1440845b2ed6546e72aef6
|
| 3 |
+
size 13194088
|