Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cactus-compute/needle
/ functions
Functions
285 in github.com/cactus-compute/needle
⨍
Functions
285
◇
Types & classes
20
Function
f
(city: str, units: str = "metric")
tests/test_tools.py:27
Function
fake
(tools, n=1, **k)
tests/test_generate.py:62
Function
fake_quant_act
(x)
needle/model/quantize.py:33
Function
fetch_library
(version, dest_dir)
needle/agent/fetch.py:44
Method
forward_confidence
(self, tokens, quant=False, window=0, sink=None)
needle/model/architecture.py:569
Method
forward_contrastive
(self, query_tokens, tool_tokens, quant=False)
needle/model/architecture.py:564
Method
from_cact
(cls, path)
needle/model/export.py:475
Function
g
(value: typing.Union[int, str])
tests/test_tools.py:79
Function
generate_cached
(config, params, tokenizer, prompt, max_new_tokens=96, max_len=None, kv_window=0)
needle/model/decode.py:254
Function
generate_examples
(tools, n=25, model=DEFAULT_MODEL, api_key=None, refusals=3)
needle/model/finetune.py:73
Function
get_weather
Get the weather for a city.
tests/test_inference.py:37
Function
head_output_name
(checkpoint, suffix)
needle/model/run.py:55
Method
hidden_states
(self, tokens, mask=None)
needle/model/architecture.py:575
Method
jax_dtype
(self)
needle/model/architecture.py:91
Function
loadModelFile
(input)
needle/playground/app.js:40
Function
loadToolsFile
(input)
needle/playground/app.js:17
Method
log_message
(self, *args)
needle/playground/server.py:172
Function
loss_fn
(lora, ids, mask)
needle/model/finetune.py:304
Function
main
()
needle/cli.py:97
Function
main
(args)
needle/model/run.py:214
Function
main
(args)
needle/model/export.py:536
Function
main
(args)
needle/playground/server.py:176
Function
make_causal_packing_mask
(seg_ids, prefix=None, window=0)
needle/model/architecture.py:616
Function
maybe_quant_kv
(x, quant)
needle/model/quantize.py:41
Function
maybe_quant_weights
(params, do_quantize)
needle/model/quantize.py:87
Method
md5
(self)
needle/model/tokenizer.py:43
Function
model_bytes_fp16
(params)
needle/model/quantize.py:192
Function
noise_params
(params, key, scale, group_size=CQ_GROUP_SIZE)
needle/model/quantize.py:269
Function
noise_params_only
(params, key, scale, name, group_size=CQ_GROUP_SIZE)
needle/model/quantize.py:276
Function
noise_scale
(bits, group_size=CQ_GROUP_SIZE)
needle/model/quantize.py:231
Function
openFinetuneModal
()
needle/playground/app.js:174
Method
pad_token_id
(self)
needle/model/tokenizer.py:49
Function
pollFinetune
()
needle/playground/app.js:250
Function
pump
()
needle/cli.py:54
Function
q
(path, leaf)
needle/model/quantize.py:26
Function
quantize_params_configured
(params)
needle/model/quantize.py:70
Method
reset
(self)
needle/__init__.py:124
Function
send_email
Send an email to a recipient.
tests/test_inference.py:10
Function
set_thermostat
Set the thermostat temperature.
tests/test_inference.py:51
Method
setup
(self)
needle/model/architecture.py:478
Function
startFinetune
()
needle/playground/app.js:203
Function
test_augment_jsonl_appends_generated
(monkeypatch, tmp_path)
tests/test_generate.py:91
Function
test_basic_schema_types_and_required
()
tests/test_tools.py:13
Function
test_build_at_two_bits
(tiny_checkpoint, tmp_path)
tests/test_build.py:29
Function
test_build_exports_loadable_cact
(tiny_checkpoint, tmp_path)
tests/test_build.py:14
Function
test_collect_tools_dedups_by_name
()
tests/test_generate.py:19
Function
test_defaults_are_optional
()
tests/test_tools.py:26
Function
test_docstring_description_falls_back_to_args
()
tests/test_tools.py:105
Function
test_encode_loss_mask_targets_only
(tok)
tests/test_render.py:38
Function
test_export_round_trips_a_projection
(tiny_checkpoint, tmp_path)
tests/test_build.py:39
Function
test_extract_keeps_agent_tools
()
tests/test_inference.py:72
Function
test_field_constraints_and_docstring_args
()
tests/test_tools.py:86
Function
test_finetune_then_build_merges
(tiny_checkpoint, tmp_path)
tests/test_finetune.py:56
Function
test_finetune_writes_adapter
(tiny_checkpoint, tmp_path)
tests/test_finetune.py:34
Function
test_generate_dataset_dedups_and_terminates
(monkeypatch)
tests/test_generate.py:81
Function
test_generate_dataset_hits_target_concurrently
(monkeypatch)
tests/test_generate.py:71
Function
test_generate_examples_attaches_tools
(monkeypatch)
tests/test_generate.py:27
Function
test_generate_examples_requires_api_key
(monkeypatch)
tests/test_generate.py:39
Function
test_init_lora_shapes_and_zero_b
()
tests/test_lora.py:20
Function
test_literal_list_and_dict_types
()
tests/test_tools.py:35
Function
test_load_jsonl_shapes_and_skips_invalid
(tok, tmp_path)
tests/test_render.py:55
Function
test_lora_target_paths_selects_projection_kernels
()
tests/test_lora.py:4
Function
test_merge_lora_adds_scaled_delta
()
tests/test_lora.py:48
Function
test_merge_lora_is_identity_when_b_zero
()
tests/test_lora.py:34
Function
test_openrouter_url_can_be_overridden_from_environment
(monkeypatch)
tests/test_generate.py:47
Function
test_optional_annotation_not_required
()
tests/test_tools.py:53
Function
test_parse_array_variants
()
tests/test_generate.py:7
Function
test_pep604_none_union_not_required
()
tests/test_tools.py:62
Function
test_pep604_union_matches_typing_union
()
tests/test_tools.py:75
Function
test_pydantic_model_schema
()
tests/test_tools.py:117
Function
test_render_example_accepts_function_calls_alias
()
tests/test_render.py:30
Function
test_render_example_markers
()
tests/test_render.py:13
Function
test_run_agentic_loop
()
tests/test_inference.py:33
Function
test_structured_extraction
()
tests/test_inference.py:21
Function
test_tool_call
()
tests/test_inference.py:6
Function
test_tool_decorator_preserves_callable
()
tests/test_tools.py:133
Function
test_two_agents
()
tests/test_inference.py:47
Function
test_typed_list_items
()
tests/test_tools.py:45
Function
tiny_checkpoint
(tmp_path_factory)
tests/conftest.py:26
Function
togglePanel
()
needle/playground/app.js:164
Function
tok
()
tests/test_render.py:8
Function
tool
(fn)
needle/agent/tools.py:162
Function
visit
(path, leaf)
needle/model/quantize.py:178
Method
vocab_size
(self)
needle/model/tokenizer.py:61
Function
weight_bits
()
needle/model/quantize.py:83
← previous
201–285 of 285, ranked by callers