Instructions to use mlx-community/stockmark-100b-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mlx-community/stockmark-100b-8bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mlx-community/stockmark-100b-8bit")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mlx-community/stockmark-100b-8bit") model = AutoModelForCausalLM.from_pretrained("mlx-community/stockmark-100b-8bit", device_map="auto") - MLX
How to use mlx-community/stockmark-100b-8bit 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-8bit") 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-8bit 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-8bit" # 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-8bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/mlx-community/stockmark-100b-8bit
- SGLang
How to use mlx-community/stockmark-100b-8bit 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-8bit" \ --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-8bit", "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-8bit" \ --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-8bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - MLX LM
How to use mlx-community/stockmark-100b-8bit 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-8bit" --prompt "Once upon a time"
- Docker Model Runner
How to use mlx-community/stockmark-100b-8bit with Docker Model Runner:
docker model run hf.co/mlx-community/stockmark-100b-8bit
- Atomic Chat
Commit History
-
Upload folder using huggingface_hub (#1)
Verified signature- a894a31bf7660352bd6b23abf1c2591e8642a6b1426371f7791a115b3e54344a (e7f8d12424f103c53dbc27d7a6f7ff3df2163dc2) - 2a8c299cc55d1e85029b2527e1eb1db374747f3cecefe6c548969621d118f7ba (ff213dadddb6ea0f2a881f58eb9c7c4a0b22a999) - b93a7786aff63c73ef73ad00e6f0785ed6dceb15bc81e74d12dd02bd8ee34639 (68efeb2c43a2a343891986a67af60f23955fd4c1) - 23a4e491dffd75a5070b05efe4b291f9131d55011ac41fe116bc506cf7ef94da (70c7addd2f2ae23c024451c6a000a3d68fa648ac) - 4252a6c1864339f13e6ba1c6c15c4bc3e83165f5aa4b521cb25a63def0fe25a8 (75e267cac3391efac5cc8cc00bb6d16ebe1f8827) - c5d2b2eb8f977aca277c32dfa84e2bde7db9cc38d525a98c8dc0d949df2b0985 (eed441be64c202d01398a16aa56f4fe73bd94d90) - 7a9ffa9973d80630e64fedc136bf82e1fbfbf09b1205efd0c1a703301def32f0 (35ec3715d5ae7c9b31c426835722f14fdf34061a) - 331a01b1c97a0f48c744ba9366849bcfe0e8e2829fddbad6f6c906f176d6dd43 (843f309559de102367dbe808f632f198cb9c3a43) - 16480ace92b1e6b8ab94c60d8d2477b5c149d51baac4a6e0a3735a200bc7dfff (f581d600a4937eed9a05513aed97dfc6927ec9a0) - 22976af8…98f7dfc