cactus-compute 3.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cactus_compute-3.3.0.dist-info/METADATA +233 -0
- cactus_compute-3.3.0.dist-info/RECORD +41 -0
- cactus_compute-3.3.0.dist-info/WHEEL +5 -0
- cactus_compute-3.3.0.dist-info/entry_points.txt +2 -0
- cactus_compute-3.3.0.dist-info/licenses/LICENSE +202 -0
- cactus_compute-3.3.0.dist-info/top_level.txt +1 -0
- needle/__init__.py +656 -0
- needle/_telemetry.py +86 -0
- needle/_worker.py +291 -0
- needle/agent/__init__.py +0 -0
- needle/agent/fetch.py +333 -0
- needle/agent/tools.py +205 -0
- needle/agent/whistle.py +550 -0
- needle/cli.py +424 -0
- needle/environments/__init__.py +45 -0
- needle/environments/_harness.py +60 -0
- needle/environments/data_capture.py +132 -0
- needle/environments/kitchen_appliance.py +121 -0
- needle/environments/media_player.py +104 -0
- needle/environments/productivity.py +133 -0
- needle/environments/smart_home.py +139 -0
- needle/environments/wearable.py +111 -0
- needle/model/__init__.py +0 -0
- needle/model/architecture.py +1136 -0
- needle/model/architecture_mlx.py +308 -0
- needle/model/build.py +78 -0
- needle/model/checkpoints.py +126 -0
- needle/model/export.py +680 -0
- needle/model/finetune.py +509 -0
- needle/model/quantize.py +235 -0
- needle/model/quantize_mlx.py +91 -0
- needle/model/run.py +125 -0
- needle/model/tokenizer.py +130 -0
- needle/model/whistle.py +375 -0
- needle/model/whistle_finetune.py +449 -0
- needle/platform.py +456 -0
- needle/playground/__init__.py +0 -0
- needle/playground/app.js +331 -0
- needle/playground/index.html +111 -0
- needle/playground/server.py +186 -0
- needle/playground/style.css +513 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cactus-compute
|
|
3
|
+
Version: 3.3.0
|
|
4
|
+
Summary: On-device models for tool calling, speech, structured extraction, and embeddings.
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Project-URL: Homepage, https://cactuscompute.com
|
|
7
|
+
Project-URL: Repository, https://github.com/cactus-compute/cactus
|
|
8
|
+
Project-URL: Bug Tracker, https://github.com/cactus-compute/cactus/issues
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Requires-Dist: huggingface_hub
|
|
13
|
+
Provides-Extra: train
|
|
14
|
+
Requires-Dist: numpy; extra == "train"
|
|
15
|
+
Requires-Dist: jax; extra == "train"
|
|
16
|
+
Requires-Dist: jaxlib; extra == "train"
|
|
17
|
+
Requires-Dist: flax>=0.10.2; extra == "train"
|
|
18
|
+
Requires-Dist: optax; extra == "train"
|
|
19
|
+
Requires-Dist: safetensors; extra == "train"
|
|
20
|
+
Requires-Dist: sentencepiece; extra == "train"
|
|
21
|
+
Requires-Dist: whisper-normalizer; extra == "train"
|
|
22
|
+
Requires-Dist: soxr; extra == "train"
|
|
23
|
+
Provides-Extra: gpu
|
|
24
|
+
Requires-Dist: jax[cuda12]; extra == "gpu"
|
|
25
|
+
Provides-Extra: metal
|
|
26
|
+
Requires-Dist: jax==0.4.38; extra == "metal"
|
|
27
|
+
Requires-Dist: jaxlib==0.4.38; extra == "metal"
|
|
28
|
+
Requires-Dist: jax-metal; extra == "metal"
|
|
29
|
+
Provides-Extra: mic
|
|
30
|
+
Requires-Dist: numpy; extra == "mic"
|
|
31
|
+
Requires-Dist: soxr; extra == "mic"
|
|
32
|
+
Requires-Dist: sounddevice; extra == "mic"
|
|
33
|
+
Provides-Extra: compare
|
|
34
|
+
Requires-Dist: openai-whisper; extra == "compare"
|
|
35
|
+
Requires-Dist: moonshine-voice; extra == "compare"
|
|
36
|
+
Provides-Extra: test
|
|
37
|
+
Requires-Dist: pytest; extra == "test"
|
|
38
|
+
Requires-Dist: pydantic; extra == "test"
|
|
39
|
+
Provides-Extra: mlx
|
|
40
|
+
Requires-Dist: mlx[cpu]; extra == "mlx"
|
|
41
|
+
Dynamic: license-file
|
|
42
|
+
|
|
43
|
+

|
|
44
|
+
|
|
45
|
+
The Python package is now `cactus-compute`. It provides Needle and Whistle through
|
|
46
|
+
`import needle` and the `needle` command. Existing `cactus-needle` releases remain
|
|
47
|
+
available. The general inference engine previously published as `cactus-compute`
|
|
48
|
+
is now [cactus-engine](https://pypi.org/project/cactus-engine/).
|
|
49
|
+
|
|
50
|
+
To migrate an existing Needle environment, run `pip uninstall cactus-needle`
|
|
51
|
+
followed by `pip install cactus-compute`.
|
|
52
|
+
|
|
53
|
+
A foundation model for mobiles, wearables, robots, smart home, automotive and microcontrollers. The whole model is a single 8-29 MB binary built on our Simple Attention Network, and we trade general chat capacity to beat models 10x its size on mobile tool calls and match 2-3x bigger models on extraction.
|
|
54
|
+
|
|
55
|
+
- **Tool calls**: given the functions your app exposes, Needle picks the right ones and fills every argument from what the user said. Ask for two things and you get two calls in order; ask for something no tool covers and you get an empty list, not a guess.
|
|
56
|
+
- **Structured extraction**: declare a shape, hand over messy text, get typed fields back: an invoice, a booking, a notification, a form. The decode grammar guarantees the output parses, and extraction generalises to classification.
|
|
57
|
+
- **Text embedding**: the same model returns a vector for a sentence, so an app can search, match and route locally.
|
|
58
|
+
- **Speech**: [Whistle](#whistle), our speech-to-text model, shares Needle's container and engine. One build gives Needle audio input: the clip goes in, the tool calls come out.
|
|
59
|
+
|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
Needle 3 is a Laddered Simple Attention Network: a Monarch Hadamard MLP in place of the FFN, GQA attention with causal conv taps, engram n-gram memory read by gather, and multi-lane hyper-connections, trained so that every depth from 2 to 20 layers is a deployable model. Most of its parameters sit in the engram, so the 121M model does the arithmetic of a 50M one. A byte-level grammar compiled from your schemas constrains every token, and every response carries a calibrated confidence score from a learned head. The architecture diagram is on the [release page](https://cactuscompute.com/needle).
|
|
63
|
+
|
|
64
|
+
## Benchmarks
|
|
65
|
+
|
|
66
|
+
Tool calling is exact-match accuracy on the full test splits, extraction is field micro-F1 on the full test splits.
|
|
67
|
+
|
|
68
|
+

|
|
69
|
+
|
|
70
|
+
The interactive frontier plot, the architecture and the fine-tuning results are at [cactuscompute.com/needle](https://cactuscompute.com/needle).
|
|
71
|
+
|
|
72
|
+
## Get started
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
pip install cactus-compute
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Try it in the browser at [cactuscompute.com/needle](https://cactuscompute.com/needle); the weights and every platform engine are on [Hugging Face](https://huggingface.co/Cactus-Compute/needle3).
|
|
79
|
+
|
|
80
|
+
Decorate a function: the signature gives the argument types, the docstring is the tool description, and `run()` completes the loop, executing your function and returning its results.
|
|
81
|
+
|
|
82
|
+
```python
|
|
83
|
+
import needle
|
|
84
|
+
|
|
85
|
+
@needle.tool
|
|
86
|
+
def get_weather(city: str):
|
|
87
|
+
"Get the current weather for a city."
|
|
88
|
+
return {"city": city, "temp_c": 27, "sky": "clear"}
|
|
89
|
+
|
|
90
|
+
agent = needle.Needle(tools=[get_weather])
|
|
91
|
+
print(agent.run("what's it like in Lagos right now?")["results"])
|
|
92
|
+
# [{'city': 'Lagos', 'temp_c': 27, 'sky': 'clear'}]
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Every turn returns one JSON object with `function_calls`, the model's `reasoning` and a calibrated `confidence`; an off-topic request returns an empty list rather than a guess. `needle.Needle(tools=[...], generation=2)` keeps running Needle 2 for existing deployments.
|
|
96
|
+
|
|
97
|
+
### JavaScript / TypeScript
|
|
98
|
+
|
|
99
|
+
The community-maintained [`cactus-needle`](https://github.com/afshinm/cactus-needle) package runs Needle and Whistle in Node.js and browsers using WebAssembly.
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
npm install cactus-needle
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
[Demo](https://afshinm.github.io/cactus-needle/) · [Examples](https://github.com/afshinm/cactus-needle/tree/main/examples) · [npm](https://www.npmjs.com/package/cactus-needle)
|
|
106
|
+
|
|
107
|
+
## Whistle
|
|
108
|
+
|
|
109
|
+

|
|
110
|
+
|
|
111
|
+
Whistle is our speech-to-text model, one 16.9 MB file on the CPU: 16 kHz mono audio of any length, one pass up to 30 seconds and windowed beyond it, in English, German, French, Spanish, Italian, Dutch and Polish. It shares Needle's `.cact` container, its quantisation and its C++ engine, so the two are one runtime, and its decoder is laddered the same way, with `--audio-depth N` running the N-layer rung of the same weights.
|
|
112
|
+
|
|
113
|
+
```python
|
|
114
|
+
import needle
|
|
115
|
+
|
|
116
|
+
print(needle.transcribe("clip.wav")["text"])
|
|
117
|
+
# turn off the kitchen lights
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Every call returns the text, the language, the milliseconds to the first token and the decoder's tokens per second after it. `word_timestamps=True` adds each word with its start, end and probability, `keywords=[...]` favours the names, product words and jargon your users say, and `language="de"` forces the language instead of detecting it. `needle.Whistle()` is the same model as an object, for `embed(audio)` or to hold one tuned `.cact`. Silence and steady noise return an empty transcript rather than an invented sentence; other sounds, music especially, can still come out as text, so put a voice activity detector or a wake word in front of an always-on microphone. `needle.stream(chunks)` transcribes live for as long as the microphone runs, committing the words two passes agree on. `needle whistle playground` transcribes from the microphone, and `needle whistle compare` puts Whistle next to Whisper and Moonshine on the same clip.
|
|
121
|
+
|
|
122
|
+
At 16.9 MB Whistle is 8.6x smaller than Whisper base and 6.6x quicker to the first token. It is ahead on LibriSpeech test-clean and test-other, on SPGISpeech, on Earnings-22 and on the FLEURS average. Whisper base is ahead on TED-LIUM, on AMI and on the MLS average.
|
|
123
|
+
|
|
124
|
+

|
|
125
|
+
|
|
126
|
+
Word error rate on the full test splits, scored with the Whisper normalizers. Whisper and Moonshine figures are the ones their authors published. Latency and decode are 10 s of audio on an Apple M4 Pro, at each engine's defaults. The per-benchmark caveats are on [Hugging Face](https://huggingface.co/Cactus-Compute/whistle).
|
|
127
|
+
|
|
128
|
+
```sh
|
|
129
|
+
needle --model needle3.cact --model whistle.cact --tools tools.json --audio clip.wav
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
One engine holds both models: `needle_load` reads whichever one a `.cact` carries, and `needle_complete` takes a clip wherever it takes text. It transcribes, answers the transcript against your tools, and returns one JSON object with the tool calls and the speech fields, the speech ones prefixed `audio_`. The transcription stays inside the engine, so audio in and tool calls out is one call, and it favours the option values your schemas enumerate, so a clip that names one is transcribed as the schema spells it.
|
|
133
|
+
|
|
134
|
+
The benchmarks against Whisper and Moonshine, the architecture and the interactive demo are at [cactuscompute.com/whistle](https://cactuscompute.com/whistle); the weights and every platform engine are on [Hugging Face](https://huggingface.co/Cactus-Compute/whistle).
|
|
135
|
+
|
|
136
|
+
Whistle fine-tunes locally: LoRA adapters on the attention projections, base frozen, merged at export, 4-bit. It takes training, validation and test JSONL files, each line `{"audio": "clip.wav", "text": "...", "language": "pt"}`; a language code outside the seven adds that language, and `--tokens` takes a file of words or characters to add to the vocabulary, one per line.
|
|
137
|
+
|
|
138
|
+
```sh
|
|
139
|
+
pip install "cactus-compute[train]"
|
|
140
|
+
needle whistle finetune train.jsonl validation.jsonl test.jsonl --tokens tokens.txt --out adapter.safetensors
|
|
141
|
+
needle whistle build --lora adapter.safetensors --out tuned.cact
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
## Guides
|
|
145
|
+
|
|
146
|
+
- [How to design tools for Needle 3](https://cactuscompute.com/blog/designing-tools-for-needle): one tool per action, names users would say, formats in descriptions, constraints in the grammar, triggers.
|
|
147
|
+
- [Leveraging Needle's confidence](https://cactuscompute.com/blog/needle-confidence): what the score measures, what the engine withholds, and routing on act, confirm or refuse.
|
|
148
|
+
- [Structured JSON extraction with Needle](https://cactuscompute.com/blog/structured-extraction-with-needle): the record as the only tool, typed results, classification with enums.
|
|
149
|
+
- [Fine-tuning Needle](https://cactuscompute.com/blog/finetuning-needle): the data format, the commands, reading the loss, sizing the dataset.
|
|
150
|
+
- [Fine-tuning Whistle](https://cactuscompute.com/blog/finetuning-whistle): the data format, new characters, the commands, how much data a new language needs.
|
|
151
|
+
- [Getting the most out of Whistle](https://cactuscompute.com/blog/whistle-best-practices): input, word timestamps, live transcription, language, keywords, depth, Whistle with Needle.
|
|
152
|
+
- [Needle Python docs](https://cactuscompute.com/blog/needle-python-docs): the API, the response shape, the behaviour contract, system facts, tool retrieval, offline devices, environments, the CLI.
|
|
153
|
+
- [What devices are supported on Needle](https://cactuscompute.com/blog/needle-supported-devices): every platform folder, the CLI runner, the C API, the browser, WASI, air-gapped setup.
|
|
154
|
+
- [The .cact format](https://cactuscompute.com/blog/cact-format): the file the engine maps and reads in place, Cactus Quants at 2.125 bits per weight, and how to parse it yourself.
|
|
155
|
+
- [Porting Needle 3](https://cactuscompute.com/blog/porting-needle): notes for writing your own runtime, the oracle to test against, the tensor order the container promises, the prompt on the wire, the ladder rule, retrieval with `needle_embed`.
|
|
156
|
+
|
|
157
|
+
`llms.txt` in this repo carries the same reference for AI coding assistants.
|
|
158
|
+
|
|
159
|
+
## Customisation
|
|
160
|
+
|
|
161
|
+
Needle was designed to be customised. Its capacity is a ladder, and a subnetwork as small as 2 layers, fine-tuned on one product's tools, runs optimally on devices far smaller than the full model needs. Fine-tuning on DroidCall lifts every subnetwork by 18 to 36 points, and from 4 layers up the tuned subnetwork passes DeepSeek V4 Flash, starting at 29M parameters.
|
|
162
|
+
|
|
163
|
+

|
|
164
|
+
|
|
165
|
+
Two ways to fine-tune, from the same package:
|
|
166
|
+
|
|
167
|
+
| | Local, `needle finetune` | Platform, `needle platform finetune` |
|
|
168
|
+
| --- | --- | --- |
|
|
169
|
+
| What trains | LoRA adapters on the attention projections, base frozen, merged at export | The full model, every depth from 2 layers up |
|
|
170
|
+
| What it keeps | Your data only | Your data reinforced with Needle's original dataset, so nothing already learned is unlearned |
|
|
171
|
+
| Confidence | Head untouched; `confidence` is `None` | Head fine-tuned with the model, calibrated on your tools |
|
|
172
|
+
| Precision | 4-bit | 2-bit, the same post-training as the shipped model |
|
|
173
|
+
| Data | Your JSONL, `query`/`answers` or chat format | Yours, or generated from your tool definitions, 100 to 10,000 examples per run |
|
|
174
|
+
| Scores | Validation loss | Validation and test accuracy for every depth |
|
|
175
|
+
| Compute | Your machine, JAX on CPU, CUDA or Metal | Cactus GPUs |
|
|
176
|
+
| Runs from | The CLI | The CLI, Python, the [dashboard](https://cactuscompute.com/dashboard), or a coding agent holding your key |
|
|
177
|
+
|
|
178
|
+
Local:
|
|
179
|
+
|
|
180
|
+
```sh
|
|
181
|
+
pip install "cactus-compute[train]"
|
|
182
|
+
needle finetune data.jsonl --epochs 10 --out adapter.safetensors
|
|
183
|
+
needle build --lora adapter.safetensors --layers 8 --out tuned.cact
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
Platform, with a key from the [console](https://cactuscompute.com/dashboard/api-keys) in `NEEDLE_API_KEY`. One command uploads the files, trains and scores every size, and downloads the `.cact` files; once a job is submitted it can also be followed on the dashboard:
|
|
187
|
+
|
|
188
|
+
```sh
|
|
189
|
+
export NEEDLE_API_KEY=needle_ft_...
|
|
190
|
+
needle platform generate --tools tools.json --examples 1000 --out ./data
|
|
191
|
+
needle platform finetune data/train.jsonl data/validation.jsonl data/test.jsonl --suffix smart-home --out ./models
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
```python
|
|
195
|
+
from needle.platform import Platform
|
|
196
|
+
|
|
197
|
+
client = Platform()
|
|
198
|
+
job = client.wait(client.finetune(["train.jsonl"], ["validation.jsonl"], ["test.jsonl"], suffix="smart-home"))
|
|
199
|
+
paths = client.download(job["fine_tuned_model"], "models", depth=8)
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
Or hand the key to Claude Code or Codex with [cactuscompute.com/llms.txt](https://cactuscompute.com/llms.txt) and let the agent run the loop. `needle platform jobs | models | files | billing` list what the account holds, `needle download model-<id>` fetches a model by id, and the [fine-tuning guide](https://cactuscompute.com/blog/finetuning-needle) covers the data format and how to read the scores.
|
|
203
|
+
|
|
204
|
+
## Deploy
|
|
205
|
+
|
|
206
|
+
Every deployment target ships a prebuilt engine that loads the `needle3.cact` weights at start. `needle build --platform <folder> [--layers N]` fetches that engine and puts the weights beside it.
|
|
207
|
+
|
|
208
|
+

|
|
209
|
+
|
|
210
|
+
```sh
|
|
211
|
+
needle build --platform macos-arm64
|
|
212
|
+
needle build --platform linux-arm64 --layers 8 --out ./pi
|
|
213
|
+
./macos-arm64/needle --model needle3.cact --tools tools.json --serve
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
The [devices guide](https://cactuscompute.com/blog/needle-supported-devices) lists every folder and what ships in it.
|
|
217
|
+
|
|
218
|
+
By default, telemetry is turned on in the binary. To turn it off, set environment variables NEEDLE_TELEMETRY=0 and DO_NOT_TRACK=1.
|
|
219
|
+
|
|
220
|
+
## Citation
|
|
221
|
+
|
|
222
|
+
Needle is built by the Cactus Compute team. If you use it in your work, please cite:
|
|
223
|
+
|
|
224
|
+
```bibtex
|
|
225
|
+
@misc{needle3_2026,
|
|
226
|
+
title = {Needle: Automation Foundation Model for Tiny Devices},
|
|
227
|
+
author = {Ndubuaku, Henry and Mosoyan, Karen and Mroz, Jakub and Cylich, Noah and
|
|
228
|
+
Kumar, Satyajit and Sandhu, Parkirat and Shemet, Roman and Lee, Justin H.},
|
|
229
|
+
year = {2026},
|
|
230
|
+
organization = {Cactus Compute, Inc.},
|
|
231
|
+
howpublished = {\url{https://github.com/cactus-compute/cactus}}
|
|
232
|
+
}
|
|
233
|
+
```
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
cactus_compute-3.3.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
2
|
+
needle/__init__.py,sha256=kP8ExDwEof3d9a6h6R40cTM-9zkmi7xbTU89Nep5M2o,25742
|
|
3
|
+
needle/_telemetry.py,sha256=RLm1uwRG_NNj0QeS8yXYLTPPFi4-s5YtgoJNSTZ3pe8,2609
|
|
4
|
+
needle/_worker.py,sha256=UU5vQpdNhBcoxxrzIK8BVoYLEsS3uTCLJaHqHTCll4A,10567
|
|
5
|
+
needle/cli.py,sha256=qVtxYImnCRJe7WsjnWvfwaLu9v0mhnsKGbiX-Bx8CWc,21900
|
|
6
|
+
needle/platform.py,sha256=qsNcoL22HPNiq0zCCLx4kYZJcCOzIRXbOPAt3vzgS40,19320
|
|
7
|
+
needle/agent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
needle/agent/fetch.py,sha256=DoShxpN40gKgrqv5hyF1O-_To2vIh8BG-LlHyX_-qcw,12080
|
|
9
|
+
needle/agent/tools.py,sha256=hPEF98kWJyMeGqIVrzrpZOWjP9MHZgRU5AlsLah0j4Y,8175
|
|
10
|
+
needle/agent/whistle.py,sha256=Aps8JyazKBBtP_P0EI2hKCoiGtrpNukzOhzdu1wNzg4,22912
|
|
11
|
+
needle/environments/__init__.py,sha256=YWN4oBZhuM-ET3qbpW7wfh5iBu20UaX7HjAS0mRIANw,1417
|
|
12
|
+
needle/environments/_harness.py,sha256=ccgHq_IvBpuA_vQFcI7gAH7XpQguhj76wJzotEJjzok,2162
|
|
13
|
+
needle/environments/data_capture.py,sha256=xDRsth9JLguf8AVLvGhXcL4XS_yqhzcco0hMJxb__VI,8314
|
|
14
|
+
needle/environments/kitchen_appliance.py,sha256=j5dxiDus3RNSxiawIZ_Ec-7ntvhx6p0NAyG7Omhg1Hk,7196
|
|
15
|
+
needle/environments/media_player.py,sha256=Ni4NidYXdQaRKQktxi7SgGhJ41-xU7psBa2V3ZRwRzI,6123
|
|
16
|
+
needle/environments/productivity.py,sha256=IqUcVXsHlIZaXFKKaFNEQXXJGTP3YBz0sXGJd-fvAZE,9027
|
|
17
|
+
needle/environments/smart_home.py,sha256=bU0tRZueE0gCwMcBQ-waVZTz5MfTBLhLNlee_-8URwg,8479
|
|
18
|
+
needle/environments/wearable.py,sha256=cfkbDBidZmTpbFy4osfmtDAtEZNdZNc7TprCXRLZ71w,7304
|
|
19
|
+
needle/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
+
needle/model/architecture.py,sha256=n2lmghizOa1G_5CGeXmyMQTp3_MXQXssR2jCrbr-yzo,43907
|
|
21
|
+
needle/model/architecture_mlx.py,sha256=GL8Rt5Xlg9HTtIHGY-S-enItYOzOPBzDf8wLncfGC9o,11928
|
|
22
|
+
needle/model/build.py,sha256=iVfOI-_t-27KeIoutRsJNIxBiog--koE2-PdwkqUeE0,3924
|
|
23
|
+
needle/model/checkpoints.py,sha256=XpWDxkjpxESAWYlQbM0ko-WiuTe6yn87y9kTrqguZjE,4147
|
|
24
|
+
needle/model/export.py,sha256=xEY7KzYstVdDyANlRvI62n1spYOkcD472BGs-HmtzzY,29513
|
|
25
|
+
needle/model/finetune.py,sha256=sLsRVxTtKA2jH8HDVVZqS0msjEBPjVpx882yFfe32Ms,20959
|
|
26
|
+
needle/model/quantize.py,sha256=J9d0kfQa9g91_UO_ewA2lawFFzsw6R3_acr8MMdzfWE,6877
|
|
27
|
+
needle/model/quantize_mlx.py,sha256=fb1tvgEmN0R3v8AsP5d4oKnRUab9WSZtyiaPrHiRVTg,3368
|
|
28
|
+
needle/model/run.py,sha256=OKYC1w4gIeaGBzydJzhrRO-10zc5HmZ9Om20pAjUc0k,4484
|
|
29
|
+
needle/model/tokenizer.py,sha256=rTSPzl2TyZzjEOykH2CsgMg8uVjMoxNj5RV2fSrpG84,3988
|
|
30
|
+
needle/model/whistle.py,sha256=M_XjTrzda4kfPWFmDXs1JCNK2edOsAgrJTPokButsg4,16908
|
|
31
|
+
needle/model/whistle_finetune.py,sha256=eHWxRd5ahgXe5SVco_u_xnxI0CmRn6GBy8r0GmAAHCI,20483
|
|
32
|
+
needle/playground/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
+
needle/playground/app.js,sha256=hqIPCRswooU6vyCJ4O7OeF_sJju_FKJx6CPlrBb5xwE,20802
|
|
34
|
+
needle/playground/index.html,sha256=-CdPtXgfP3QH37rBWIrnMkI7GZxHyaWn_hqbfeAu7C8,5857
|
|
35
|
+
needle/playground/server.py,sha256=Q2IwfyUYS2LWAeXRbNglBb1TKK47tIH0WBeu34BjdQc,7334
|
|
36
|
+
needle/playground/style.css,sha256=aVkkigyzqP0IYBF9r1ClrfoKzRCBpoRqGX-FTpvX_Nc,13162
|
|
37
|
+
cactus_compute-3.3.0.dist-info/METADATA,sha256=wWjJNEuuSQPl0-YMQDBJ7tNlmjmMGIgv14zZcBgCUiM,15241
|
|
38
|
+
cactus_compute-3.3.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
39
|
+
cactus_compute-3.3.0.dist-info/entry_points.txt,sha256=U0xf5BvvRpPBG9x0er3fL182mqMcDboUKT5S4s7x0zk,43
|
|
40
|
+
cactus_compute-3.3.0.dist-info/top_level.txt,sha256=0pIQd3d32sCz0S9qZWoHPJunF89pMtvAGwzG3B53ebg,7
|
|
41
|
+
cactus_compute-3.3.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
needle
|