Instructions to use WonGrifferousAI/MisTraXLLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WonGrifferousAI/MisTraXLLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WonGrifferousAI/MisTraXLLM")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WonGrifferousAI/MisTraXLLM") model = AutoModelForCausalLM.from_pretrained("WonGrifferousAI/MisTraXLLM") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WonGrifferousAI/MisTraXLLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WonGrifferousAI/MisTraXLLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WonGrifferousAI/MisTraXLLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WonGrifferousAI/MisTraXLLM
- SGLang
How to use WonGrifferousAI/MisTraXLLM 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 "WonGrifferousAI/MisTraXLLM" \ --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": "WonGrifferousAI/MisTraXLLM", "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 "WonGrifferousAI/MisTraXLLM" \ --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": "WonGrifferousAI/MisTraXLLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WonGrifferousAI/MisTraXLLM with Docker Model Runner:
docker model run hf.co/WonGrifferousAI/MisTraXLLM
Update config.json
Browse files- config.json +37 -37
config.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
| 1 |
-
{
|
| 2 |
-
"_name_or_path": "Wonder-Griffin/TraXLMistral",
|
| 3 |
-
"architectures": [
|
| 4 |
-
"
|
| 5 |
-
],
|
| 6 |
-
"dropout": 0.1,
|
| 7 |
-
"dynamic_routing": true,
|
| 8 |
-
"ff_expansion_factor": 4,
|
| 9 |
-
"hidden_size": 768,
|
| 10 |
-
"id2label": {
|
| 11 |
-
"0": "LABEL_0",
|
| 12 |
-
"1": "LABEL_1",
|
| 13 |
-
"2": "LABEL_2",
|
| 14 |
-
"3": "LABEL_3",
|
| 15 |
-
"4": "LABEL_4"
|
| 16 |
-
},
|
| 17 |
-
"is_decoder": true,
|
| 18 |
-
"label2id": {
|
| 19 |
-
"LABEL_0": 0,
|
| 20 |
-
"LABEL_1": 1,
|
| 21 |
-
"LABEL_2": 2,
|
| 22 |
-
"LABEL_3": 3,
|
| 23 |
-
"LABEL_4": 4
|
| 24 |
-
},
|
| 25 |
-
"max_computation_steps": 5,
|
| 26 |
-
"max_len": 256,
|
| 27 |
-
"memory_size": 256,
|
| 28 |
-
"model_type": "
|
| 29 |
-
"n_embd": 128,
|
| 30 |
-
"n_head": 4,
|
| 31 |
-
"n_layer": 4,
|
| 32 |
-
"rnn_units": 128,
|
| 33 |
-
"sparse_attention": true,
|
| 34 |
-
"torch_dtype": "float32",
|
| 35 |
-
"transformers_version": "4.44.2",
|
| 36 |
-
"vocab_size": 50257
|
| 37 |
-
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "Wonder-Griffin/TraXLMistral",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"GPT2LMHeadModel"
|
| 5 |
+
],
|
| 6 |
+
"dropout": 0.1,
|
| 7 |
+
"dynamic_routing": true,
|
| 8 |
+
"ff_expansion_factor": 4,
|
| 9 |
+
"hidden_size": 768,
|
| 10 |
+
"id2label": {
|
| 11 |
+
"0": "LABEL_0",
|
| 12 |
+
"1": "LABEL_1",
|
| 13 |
+
"2": "LABEL_2",
|
| 14 |
+
"3": "LABEL_3",
|
| 15 |
+
"4": "LABEL_4"
|
| 16 |
+
},
|
| 17 |
+
"is_decoder": true,
|
| 18 |
+
"label2id": {
|
| 19 |
+
"LABEL_0": 0,
|
| 20 |
+
"LABEL_1": 1,
|
| 21 |
+
"LABEL_2": 2,
|
| 22 |
+
"LABEL_3": 3,
|
| 23 |
+
"LABEL_4": 4
|
| 24 |
+
},
|
| 25 |
+
"max_computation_steps": 5,
|
| 26 |
+
"max_len": 256,
|
| 27 |
+
"memory_size": 256,
|
| 28 |
+
"model_type": "gpt2",
|
| 29 |
+
"n_embd": 128,
|
| 30 |
+
"n_head": 4,
|
| 31 |
+
"n_layer": 4,
|
| 32 |
+
"rnn_units": 128,
|
| 33 |
+
"sparse_attention": true,
|
| 34 |
+
"torch_dtype": "float32",
|
| 35 |
+
"transformers_version": "4.44.2",
|
| 36 |
+
"vocab_size": 50257
|
| 37 |
+
}
|