Before submitting a new issue
Bug summary
Downloaded the only model artifact published for needle (needle-cq4.zip from Cactus-Compute/needle on Hugging Face), extracted it, and called CactusLM.init(). It throws:
Exception during init: Cannot open file for mapping: .../needle-cq4/layer_0_post_attn_norm.weights
I checked the zip contents — for every layer (0–11) it ships layer_N_input_norm, layer_N_attn_q_norm, and layer_N_attn_k_norm.weights, but layer_N_post_attn_norm.weights doesn't exist anywhere in the archive. The native loader seems to require that file unconditionally instead of treating it as optional.
Tested on:
cactus-react-native@1.13.1 (latest on npm)
- Physical iPhone, iOS / Xcode 26.6
There is no newer SDK version and no alternate model artifact to try — so as far as I can tell, this blocks needle entirely on the current release.
Library version
1.13.1
Environment info
Node: v22.22.2
npm: 10.9.7
macOS: 26.5.2 (build 25F84), arm64 (Apple Silicon)
Xcode: 26.6 (build 17F113)
Target: physical iPhone (on-device, dev build via expo run:ios)
react-native: 0.86.0
expo: ~57.0.0 (CLI 57.0.4)
cactus-react-native: 1.13.1
react-native-nitro-modules: 0.33.9
Steps to reproduce
Steps to reproduce
- Download
needle-cq4.zip from https://huggingface.co/Cactus-Compute/needle/resolve/main/needle-cq4.zip (the only model artifact published in that HF repo).
- Extract it to a local directory (flat file layout, no subfolders), e.g., iOS app cache dir.
- Construct and initialize the model, pointing to that directory:
const model = new CactusLM({ model: extractedDirPath });
await model.init();
init() throws:
Exception during init: Cannot open file post_attn_norm.weights
Reproducible example repository
https://github.com/joshuagamboa/needle-cq4-init-repro
Before submitting a new issue
Bug summary
Downloaded the only model artifact published for needle (
needle-cq4.zipfromCactus-Compute/needleon Hugging Face), extracted it, and calledCactusLM.init(). It throws:I checked the zip contents — for every layer (0–11) it ships
layer_N_input_norm,layer_N_attn_q_norm, andlayer_N_attn_k_norm.weights, butlayer_N_post_attn_norm.weightsdoesn't exist anywhere in the archive. The native loader seems to require that file unconditionally instead of treating it as optional.Tested on:
cactus-react-native@1.13.1(latest on npm)There is no newer SDK version and no alternate model artifact to try — so as far as I can tell, this blocks needle entirely on the current release.
Library version
1.13.1
Environment info
Node: v22.22.2 npm: 10.9.7 macOS: 26.5.2 (build 25F84), arm64 (Apple Silicon) Xcode: 26.6 (build 17F113) Target: physical iPhone (on-device, dev build via expo run:ios) react-native: 0.86.0 expo: ~57.0.0 (CLI 57.0.4) cactus-react-native: 1.13.1 react-native-nitro-modules: 0.33.9Steps to reproduce
Steps to reproduce
needle-cq4.zipfrom https://huggingface.co/Cactus-Compute/needle/resolve/main/needle-cq4.zip (the only model artifact published in that HF repo).init()throws:Reproducible example repository
https://github.com/joshuagamboa/needle-cq4-init-repro