Needle-1.0

Needle-1.0 (needle-1.0) is a 4B discriminative model for classification and scoring, adapted from Qwen/Qwen3.5-4B with rank-16 LoRA adapters and a fixed three-cycle shared-weight latent refinement readout.

Given context, a question, and permitted answers, Needle returns choices and calibrated probabilities rather than generated text. Applications combine those predictions with deterministic rules and permission checks to route tools, triage requests, or score items against a rubric.

Quickstart

Run Needle-1.0 locally or deploy an on-demand GPU endpoint using matterstate/needle-infer:

git clone https://github.com/matterstate/needle-infer
cd needle-infer
uv run needle-infer --model matterstate/needle-1.0 --host 0.0.0.0 --port 8000

For scale-to-zero GPU hosting on Modal:

modal deploy modal_app.py

Model details

  • Model ID: needle-1.0
  • Base model: Qwen3.5-4B (32 layers: 24 linear attention, 8 full attention)
  • Adaptation: Rank-16 LoRA with 3-cycle shared-weight latent refinement readout
  • Precision: W4A16
  • Context: Length-grouped execution, up to 64K padded bucket
  • Runtime: tinygrad
  • License: Apache-2.0

Evaluation

Results for Needle-1.0, evaluated on AMD GPUs:

Benchmark Metric Score
JevBench hard (public) Accuracy 77.48%
ESCI Macro-F1 46.74%
New Yorker Caption (text-only) Top-1 accuracy 54.52%
PubMedQA Accuracy 72.00%
Global-MMLU-Lite (non-English) Accuracy 58.09%
When2Call Top-1 accuracy 71.63%
Atlan Accuracy 84.03%
Hanno Accuracy 75.93%
Typed Accuracy 66.40%

Caption matching uses the official description and five caption choices, not images or gold explanations. Failed items count as incorrect. See the release post for methodology, architecture details, and limitations.

Intended use and limitations

Needle-1.0 is designed for workflows with explicit answer choices:

  • Agent tool routing
  • Support triage
  • Content review
  • Rubric-based evaluation

Model predictions are inputs to application logic, not a replacement for facts, permission checks, or deterministic rules. Validate confidence calibration and decision thresholds on your own target tasks before production use.

License and attribution

First-party weights, adapters, readout, and code are licensed under the Apache License, Version 2.0. See LICENSE and NOTICE for details, including attribution for the Qwen/Qwen3.5-4B base model.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for matterstate/needle-1.0

Finetuned
Qwen/Qwen3.5-4B
Finetuned
(1,709)
this model