Views
No views yet
chat.py provides a sample inference script.chat_full.py provides a sample inference script with history and conversation management.1# Install required tools
2pip install huggingface_hub
3
4# Install Git LFS (Large File Support)
5# macOS with Homebrew:
6brew install git-lfs
7
8# Initialize Git LFS
9git lfs install
10
11# Clone the repository with model files
12git clone https://huggingface.co/dungnvt/Qwen3-4B-Thinking-2507-LUT444-ctx4096_0.3.4-anemll1# Navigate to cloned directory
2cd Qwen3-4B-Thinking-2507-LUT444-ctx4096_0.3.4-anemll
3
4# Pull LFS files (model weights)
5git lfs pull
6
7# Extract CoreML model files
8find . -type f -name "*.zip" -exec unzip {} \;pip install coremltools transformerspython chat.py --meta ./meta.yamlpython chat_full.py --meta ./meta.yamlNote: The first time the model loads, macOS will take some time to place it on the device. Subsequent loads will be instantaneous. Use Ctrl-D to exit, Ctrl-C to interrupt inference.
[!Note]
- The TestFlight app works on both iOS and macOS
- Demonstrates proper model integration and provides a reference implementation
- iOS requires unzipped MLMODELC files and config.json for offline tokenizer
- macOS supports both zipped and unzipped model formats