Downloads · 30 days
0
hunterbown/fluxem-qwen3-4b
fluxem-qwen3-4b is a machine learning model from hunterbown. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
FluxEM-Qwen3-4B is a tool-orchestration wrapper around Qwen3-4B-Instruct that routes queries to deterministic FluxEM tools across 11 algebraic domains (arithmetic, physics, chemistry, biology, math, music, geometry, g…
Downloads · 30 days
0
Access
Public
Updated Jan 7, 2026
Repo size
108 KB
Likes
0
Public
Click a slice to open those files.
.png292 KB · 42%
From the Hugging Face model README
FluxEM-Qwen3-4B is a tool-orchestration wrapper around Qwen3-4B-Instruct that routes queries to deterministic FluxEM tools across 11 algebraic domains (arithmetic, physics, chemistry, biology, math, music, geometry, graphs, sets, logic, number theory). It is not a fine-tuned model; it is a tool-calling pipeline and benchmark suite for reproducible evaluation.
Inspired by NVIDIA ToolOrchestra (https://research.nvidia.com/labs/lpr/ToolOrchestra/) and prior embedding work, this project asks what counts as a "tool" when the knowledge is algebraic and not naturally tokenized. FluxEM encoders are algebraically structured and deterministic; treating them as tools can yield reliable computation with less training compute than trying to learn those operators from text.
pip install fluxem[full-mlx]pip install fluxem[huggingface] torchexport FLUXEM_ENABLE_MLX=1from experiments.qwen3_toolcalling.qwen3_wrapper import create_wrapper
wrapper = create_wrapper(
model_path="~/.mlx/models/Qwen/Qwen3-4B-Instruct-MLX",
tool_selection="llm",
llm_query_extraction=True,
)
wrapper.load_model()
result = wrapper.generate_with_tools(
"A box has 12 apples. You eat 5. How many are left?"
)
print(result)
We include two internal synthetic datasets to validate the tool-routing pipeline, not general language understanding:
experiments/qwen3_toolcalling/benchmark_data_hard.py)experiments/qwen3_toolcalling/benchmark_data_very_hard.py)Example questions by domain (from benchmark_data_very_hard.py):
Very hard benchmark:
experiments/qwen3_toolcalling/results/benchmark_results_20260107_004119.jsonHard benchmark:
experiments/qwen3_toolcalling/results/benchmark_results_20260106_232757.json| Approach | Method | Difference |
|---|---|---|
| NALU | Learned log/exp gates | FluxEM uses deterministic algebraic tools with no learned parameters. |
| xVal | Learned scaling for numerical reasoning | FluxEM provides multi-domain encoders with exact operators. |
| Abacus | Positional digits for arithmetic | FluxEM encodes algebraic structure rather than positional digits. |
| ToolOrchestra | LLM tool orchestration | FluxEM applies orchestration to algebraic tools with deterministic outputs. |
See experiments/qwen3_toolcalling/README.md for setup and full benchmark instructions.
MIT (wrapper code). The base model is subject to its original license terms.