Text Generation
Transformers
Safetensors
English
Japanese
mistral_mosaic
memory-mosaics
distillation
research
custom_code
Instructions to use Eureka-COM/MistralMosaic-24B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Eureka-COM/MistralMosaic-24B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Eureka-COM/MistralMosaic-24B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Eureka-COM/MistralMosaic-24B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Eureka-COM/MistralMosaic-24B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Eureka-COM/MistralMosaic-24B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Eureka-COM/MistralMosaic-24B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Eureka-COM/MistralMosaic-24B
- SGLang
How to use Eureka-COM/MistralMosaic-24B 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 "Eureka-COM/MistralMosaic-24B" \ --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": "Eureka-COM/MistralMosaic-24B", "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 "Eureka-COM/MistralMosaic-24B" \ --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": "Eureka-COM/MistralMosaic-24B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Eureka-COM/MistralMosaic-24B with Docker Model Runner:
docker model run hf.co/Eureka-COM/MistralMosaic-24B
add MemoryMosaics.sha256
Browse files- MemoryMosaics.sha256 +32 -0
MemoryMosaics.sha256
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30 LICENSE.txt
|
| 2 |
+
8db40dd2791e141850e1c410a7aae0a763fba660eea6cbac136fc83ce0f4eacd README.md
|
| 3 |
+
136cacba4fab7c61a875b25a273b3d36dac369fa3edd05e8301a05d76bbed4d1 configs/mosaics/two-stage_memory_mosaics+.yaml
|
| 4 |
+
9f87440b48c3bef74325662ef3f183e5050b80876ff63512e5dd9fc03c837242 model/__init__.py
|
| 5 |
+
ea86d14bd07993a312a01bc41410c5623d8b0a51579160e8d8111d92e9b56e6f model/common/__init__.py
|
| 6 |
+
f8a3b02089a40245a64e6cb1575779f19853433183a8bbc41dd51e755c6cb4c9 model/common/attention.py
|
| 7 |
+
82122e16b9cf53d912554fc7dd4b17bb7da0e4529697cfada2ab43522264e81f model/common/block.py
|
| 8 |
+
cc21419feae9b04feba64c7fa3950f9978726de9d0347ddc684bbac1bd34f745 model/common/config.py
|
| 9 |
+
1e2127c1bff65aa0eec8ad285753fbeb80fa48f6d2ea347accdcc4429cbb3ed3 model/common/cross_entropy.py
|
| 10 |
+
c1831c6cae92414810241fb6b57e9e0cfd675d9dcbf4b33a27df092b413a0d00 model/common/deltanet.py
|
| 11 |
+
fcf9cb1debc60dc6152a178fcb7deb5439801367184885485ed0ef69846b5a9a model/common/feed_forward.py
|
| 12 |
+
f29a498166c1466a4e9cc186dc5fa38d59c66d400d7528ce0412941b22ab45a7 model/common/flex.py
|
| 13 |
+
d6f92e36571bca46f631f6742fedff5eb8dab2ff7db410f14051de251fd0cad4 model/common/init.py
|
| 14 |
+
4afa3241c07a1664617036fd508754d0d3155c057d3d46ae115c957fe8c6c00c model/common/lm.py
|
| 15 |
+
15211c23a4e725f6ca08bd8f8634bb4ed9f90642435d8d869732287c31679a79 model/common/mask.py
|
| 16 |
+
ff1560cc24859664bcb7b6958e694d538d24056231cffcc2211395c64211e18a model/common/norm.py
|
| 17 |
+
a0bb74aea1ace35b09c4bf6926323f519c81c9f7ab46f31edd6d0cd42b8c1ac9 model/common/positions.py
|
| 18 |
+
07432bb2804e385a37dfde8a1670692bd3b44759f239367ece47281aacaa071e model/common/rope.py
|
| 19 |
+
ea86d14bd07993a312a01bc41410c5623d8b0a51579160e8d8111d92e9b56e6f model/mosaics/__init__.py
|
| 20 |
+
fb1b84be164d5881e6ae82760b792e440fe766476695fcc04cf0e261d1aa4a34 model/mosaics/block.py
|
| 21 |
+
c9aebb292cf43e46ddd3d2105656b52ba935a2d67323e2ca5992c2889b7fa449 model/mosaics/config.py
|
| 22 |
+
f14d87826092beea2e4d66d822273e5b757fa2b3b9e41e1b0b8b2b2a313d655d model/mosaics/cuda/gatesum_slim/gatesum_cuda_bf16.cu
|
| 23 |
+
15de5fc7b02545b4eb13a60e29e8373e8a8031a9188959c839777d39f8a05a23 model/mosaics/cuda/gatesum_slim/gatesum_op_bf16.cpp
|
| 24 |
+
c53a59ad2fa43fbaeea376264c86978576b89e2a4bc889bff18fac776c92b45d model/mosaics/leaky_average.py
|
| 25 |
+
b0fa58abbab328d0dd3514d463cd8773c717f813b5ae9b9c5bcafdf4a982e6d6 model/mosaics/memory.py
|
| 26 |
+
40bf2e3e8def4e105f5e4d042b8f42138f1144a42116d935a9ef2786291befb7 model/mosaics/model.py
|
| 27 |
+
ea86d14bd07993a312a01bc41410c5623d8b0a51579160e8d8111d92e9b56e6f model/rnn/__init__.py
|
| 28 |
+
6abff78a90cabbeb34c2358e6ee2da2033233a91166d623a7190e8b731dff9f3 model/rnn/config.py
|
| 29 |
+
3ef4670f7275d2f7ce142906e549271041defef4de47abe397b2558cdba94c89 model/rnn/model.py
|
| 30 |
+
ea86d14bd07993a312a01bc41410c5623d8b0a51579160e8d8111d92e9b56e6f model/transformer/__init__.py
|
| 31 |
+
f968e44910b674fc3470639f79f8f6b1d4debdd10d5f3ec1b0389617fe30fb91 model/transformer/config.py
|
| 32 |
+
d00592878463cb94d0d6cbf201c9f67d32d33a6383b9bbdc658bec469b693abb model/transformer/model.py
|