Instructions to use mlx-community/stockmark-100b-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlx-community/stockmark-100b-4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mlx-community/stockmark-100b-4bit")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mlx-community/stockmark-100b-4bit") model = AutoModelForCausalLM.from_pretrained("mlx-community/stockmark-100b-4bit", device_map="auto") - MLX
How to use mlx-community/stockmark-100b-4bit with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # if on a CUDA device, also pip install mlx[cuda] # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("mlx-community/stockmark-100b-4bit") prompt = "Once upon a time in" text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- vLLM
How to use mlx-community/stockmark-100b-4bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mlx-community/stockmark-100b-4bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mlx-community/stockmark-100b-4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mlx-community/stockmark-100b-4bit
- SGLang
How to use mlx-community/stockmark-100b-4bit 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 "mlx-community/stockmark-100b-4bit" \ --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": "mlx-community/stockmark-100b-4bit", "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 "mlx-community/stockmark-100b-4bit" \ --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": "mlx-community/stockmark-100b-4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - MLX LM
How to use mlx-community/stockmark-100b-4bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Generate some text mlx_lm.generate --model "mlx-community/stockmark-100b-4bit" --prompt "Once upon a time"
- Docker Model Runner
How to use mlx-community/stockmark-100b-4bit with Docker Model Runner:
docker model run hf.co/mlx-community/stockmark-100b-4bit
- Atomic Chat
Commit History
-
Delete .DS_Store
Verified signature31d4a70 -
Upload folder using huggingface_hub (#1)
Verified signature- 3f85f1c0e66929222a47ee999ac95d6a840e3986fa90b942ddce111ffeb3e66c (dadf76cd0d312c689db4d5991eb8a07a1a829dd8) - 36a90d81f14c067e90d7d68c18ffc1c894f8c17329fa74194bb78a793040f672 (07c53596bf11b827f7b8d74be9f1a28f87c8e157) - f7ab2fec23e1fc9bf34ca0a747451cac103533950a0189fc8d42015d8d8e6239 (41173d806bfdc1419aa6c5687f207e2db7f4dd17) - a9e113e926d581d603e508269faa871a04a695f2b88adcf5c67865c280ac629d (3e05b505e6bca2edea41961dc89c31c3e0c71f17) - a5bc4d59eb6da17aac59378ee272bda467663d494445b010517bc322d0b545e4 (003c4c171bf2a344ff5f9e1fa06f63a2f41af5d6) - a21e16fc91fb7902a45cc5f7e9f82c561a0a57f5a18e109f9ec4f2a8a0baf98b (0c70e04b48db4e3514234ad9decaff293604b229) - b2b045aafb34c8c0ca96b4ff5bbcae146a2d2c9a8b56f759f59a29603d9f8360 (a85128926b3c578787164745fa0156cd0f3ac813) - 62808faf00d301fcd15da5f1d911d51dd2aaf420c80aa91bee119c0fc10d9e27 (9539821c3799031d4c490a4d038d946ec78e7668) - 21436ac2da03c72fa5b916b93fbca7a715a3366a58b33f48d119c39db142daee (ff8c8b8db85a3946979b8b1cee2cf6aaddb70ad2) - 2a4c6a05…41210dc -
initial commit
Verified signatureb1a4180