The 80B Qwen3-Coder-Next on a 16 GB Mac, about 13 tok/s, fully offline. A mixture-of-experts inference engine for Apple silicon.
Rust
[
{"id": "intervals", "prompt": "Write a Python function merge_intervals(intervals) that takes a list of [start, end] pairs (in any order, possibly empty) and returns the merged list of non-overlapping intervals sorted by start. Intervals that touch, like [1,3] and [3,5], are merged. Return only the code in one python block."},
{"id": "lru", "prompt": "Write a Python class LRUCache with __init__(self, capacity), get(self, key) returning the value or -1 if missing, and put(self, key, value). When putting a new key into a full cache, evict the least recently used key. Both get and put count as a use. Return only the code in one python block."},
{"id": "duration", "prompt": "Write a Python function parse_duration(s) that turns strings like '2h', '45m', '90s', '1h30m' and '1h0m5s' into a total number of seconds (int). Units are h, m, s, each at most once, always in that order. Raise ValueError for an empty string or anything else invalid, such as '1x', 'h1', '1m1h' or '1h1h'. Return only the code in one python block."},
{"id": "topk", "prompt": "Write a Python function top_k_frequent(words, k) that returns the k most frequent words, ordered by frequency (highest first) and, for equal frequency, alphabetically. Return only the code in one python block."},
{"id": "rpn", "prompt": "Write a Python function eval_rpn(tokens) that evaluates a list of string tokens in reverse Polish notation with the operators +, -, * and /, where division truncates toward zero (so 7 / -2 is -3), and returns an int. Return only the code in one python block."},
{"id": "palindrome", "prompt": "Write a Python function longest_palindrome(s) that returns the longest palindromic substring of s. If several have the same maximum length, return the one that starts first. For an empty string return ''. Return only the code in one python block."},
{"id": "wrap", "prompt": "Write a Python function wrap(text, width) that splits text into words on whitespace and greedily packs them into lines of at most width characters, words separated by single spaces, returning the list of lines. A word longer than width goes on its own line unbroken. For text with no words return []. Return only the code in one python block."},
{"id": "brackets", "prompt": "Write a Python function balanced(s) that returns True if every bracket in s, of the kinds (), [] and {}, is properly matched and nested, ignoring all other characters, and False otherwise. Return only the code in one python block."}
]