|
Download README.md from NukeTorch/Qwen3.5-9B-LoRA-WikiSQL-1000-Step: direct link, hf CLI and curl.
- Browser
- Download file 5.22 kB
-
https://huggingface.co/NukeTorch/Qwen3.5-9B-LoRA-WikiSQL-1000-Step/resolve/main/README.md
- Command line
-
hf download hf://NukeTorch/Qwen3.5-9B-LoRA-WikiSQL-1000-Step/README.md
-
curl -L -o README.md https://huggingface.co/NukeTorch/Qwen3.5-9B-LoRA-WikiSQL-1000-Step/resolve/main/README.md
5.22 kB
| license: apache-2.0 | |
| base_model: Qwen/Qwen3.5-9B | |
| tags: | |
| - nuketorch | |
| - apple-silicon | |
| - lora | |
| - fine-tuning | |
| # Qwen3.5-9B-LoRA-WikiSQL-1000-Step | |
| Everything one fine-tuning run needs, in one download: Qwen3.5-9B and the 1,200 WikiSQL rows of a 1,000-step LoRA recipe. Nothing in the weights or the rows is changed. | |
| **[Video demo](https://youtu.be/XG8tV_RL8OA)** · **[Detailed benchmark report](https://nuketorch.ai/reports/qwen-9b-fine-tuning.pdf)** | |
| | Folder | From | Revision | License | | |
| |---|---|---|---| | |
| | `Qwen3.5-9B/` | [Qwen/Qwen3.5-9B](https://huggingface.co/Qwen/Qwen3.5-9B) | `c202236235762e1c871ad0ccb60c8ee5ba337b9a` | Apache-2.0 (`LICENSE`) | | |
| | `wikisql/` (`train.jsonl` 1,000 rows, `valid.jsonl` 100, `test.jsonl` 100) | [mlx-community/wikisql](https://huggingface.co/datasets/mlx-community/wikisql) at `886acf6d49be0dc2ee58fc3eb768d2dee1476da2`, written as one JSON object per line | processed from [salesforce/WikiSQL](https://github.com/salesforce/WikiSQL) for [ml-explore/mlx-examples](https://github.com/ml-explore/mlx-examples) | BSD-3-Clause (Salesforce) and MIT (Apple); both files are in `wikisql/` | | |
| The model is by Qwen; the data is by its makers. This bundle exists so that one command fetches a model and a data set that match the run below. | |
| ## Run it with NukeTorch | |
| Requirements: NukeTorch 1.0.5 on a Mac with an M5 Max or M4 Max chip and macOS 27.2 or later. | |
| The first line installs NukeTorch; the second gives you the `hf` command; `bench` runs the 1,000 steps and records them; `report` shows your run beside ours. | |
| ```sh | |
| curl -fsSL https://github.com/NukeTorch/nuketorch/releases/download/1.0.5/install.sh | sh | |
| pip install -U huggingface_hub | |
| hf download NukeTorch/Qwen3.5-9B-LoRA-WikiSQL-1000-Step --local-dir ~/NukeTorch/models/Qwen3.5-9B-LoRA-WikiSQL-1000-Step | |
| cd ~/NukeTorch/nuketorch-1.0.5-macos-arm64 | |
| ./nuketorch-serve bench ~/NukeTorch/models/Qwen3.5-9B-LoRA-WikiSQL-1000-Step | |
| ./nuketorch-serve report | |
| ``` | |
| The run is 1,000 steps of LoRA fine-tuning on the Mac's GPU: batch 4, rank 8 on the last 16 layers, FP16. It needs a Mac with 48 GB (27.2 GB at the peak) and takes about five minutes after the model loads. | |
| ## What we measured | |
| One MacBook Pro M5 Max with 48 GB, NukeTorch 1.0.5. The recipe is the one Apple showed in WWDC26 session 233, "Explore distributed inference and training with MLX" (`mlx_lm.lora --model Qwen/Qwen3.5-9B --data mlx-community/wikisql --train --batch-size 4`). | |
| | 1,000 steps of that recipe | Trained tokens a second | | |
| |---|---:| | |
| | NukeTorch 1.0.5, one MacBook Pro M5 Max (the best of our five golden runs with the built-in benchmark; their median 1,195.4) | 1,242.0 | | |
| | The same trainer in our published report (median of three passes) | 1,222.2 | | |
| | Apple's figure for four M3 Ultra Mac Studios, as spoken in the session | about 600 | | |
| | Apple's figure for one M3 Ultra Mac Studio, as spoken in the session | about 180 | | |
| `report` sets your run beside our best and median and says whether you ran the same computation ("same losses as ours (1,000 of 1,000)", "same adapter"). Our five golden runs, each after five minutes of rest, gave 1,186.2 to 1,242.0. `./nuketorch-serve train BUNDLE --out DIR` trains without the benchmark. | |
| These compare different machines: Apple's figures are Apple's, from its session, and we did not measure them. Every one of the 1,000 losses and the final adapter of the release's run are bit for bit those of our published run; the loss falls from 2.72 to 0.32. Tokens are counted as `mlx-lm` counts them: trained tokens, padding excluded. | |
| ## Multi Machines: NukeTorch Enterprise | |
| Our pipeline parallelism spreads one model across many machines connected by a single cable in between. We used it for Qwen3.5-9B LoRA fine-tuning and inference of a larger model; the fine-tuning reached 93.0% pipeline efficiency against four single machines. | |
| | Benchmark | Performance | Compared with | | |
| |---|---:|---| | |
| | **Training:** Qwen3.5 9B fine-tuning, Apple WWDC26 recipe, four MacBook Pro M5 Max 48 GB | **5,358.5** tokens/s | over 8× Apple's WWDC26 figure of about 600 tokens/s (four M3 Ultra Mac Studios) | | |
| | **Training:** Qwen3.5 9B fine-tuning, Apple WWDC26 recipe, one MacBook Pro M5 Max 48 GB | **1,440.8** tokens/s | 8× Apple's one-Mac figure of about 180 tokens/s (one M3 Ultra) | | |
| NukeTorch Enterprise P1.0.0 (Multi Machines) is by invitation. Ask for an evaluation license: | |
| [](mailto:contact@nuketorch.ai?subject=NukeTorch%20Enterprise%20evaluation%20request&body=Name%3A%0AOrganization%3A%0AMacs%20%28how%20many%2C%20which%20chips%2C%20memory%29%3A%0AModel%20or%20workload%3A%0A) | |
| NukeTorch is free for personal use, schools and universities, and businesses and other organizations (not government entities or international organizations) that with their affiliates are under US$10 million in revenue and 250 people, on up to 250 machines, each working alone; everyone else may evaluate it for 30 days, then needs a commercial license (contact@nuketorch.ai); terms per version in its LICENSE.md: https://github.com/NukeTorch/nuketorch | |