MCPcopy Create free account

hub / github.com/unslothai/unsloth / functions

Functions18,583 in github.com/unslothai/unsloth

↓ 24 callersFunctionis_managed_flag
True if ``flag`` is Studio-managed. Normalises via ``_flag_name`` so `-np8` / `--parallel=8` classify like the canonical tokens.
studio/backend/core/inference/llama_server_args.py:122
↓ 24 callersFunctionpip_install
Build and run a pip install command (uses uv when available, falls back to pip).
studio/install_python_stack.py:1901
↓ 24 callersFunctionshoot
(name)
tests/studio/playwright_chat_ime_i18n.py:136
↓ 23 callersFunction_mock_http
(monkeypatch, handler)
studio/backend/tests/test_gemini_provider.py:74
↓ 23 callersFunction_probe_tier
Lowest tier whose built-in parser loads the config; *floor* is the fail-safe. Escalates ``_PROBE_TIER_ORDER`` (prefixed with the ambient ``defaul
studio/backend/utils/transformers_version.py:980
↓ 23 callersFunction_run
()
studio/backend/tests/test_preview_routes.py:331
↓ 23 callersFunction_run_cuda_repair
Invoke _ensure_cuda_torch under a fully mocked host; return the pip mock. cvd controls CUDA_VISIBLE_DEVICES: None removes it from the env, any st
tests/studio/install/test_cuda_repair.py:53
↓ 23 callersFunctionchild_env_without_native_path_secret
Return a child-process env with the native path lease secret removed.
studio/backend/utils/native_path_leases.py:71
↓ 23 callersFunctionget_inference_backend
()
studio/backend/core/inference/inference.py:2107
↓ 23 callersFunctionhelper
( repo_id, filename, token = None, **kwargs, )
studio/backend/tests/test_gguf_xet_fallback_integration.py:144
↓ 23 callersFunctionnormalizeRecipeHandleId
( handleId: string | null | undefined, )
studio/frontend/src/features/recipe-studio/utils/handles.ts:114
↓ 23 callersMethodprobe_server_capabilities
Parse `llama-server --help` for feature flags. Returns {found, mtp_token, supports_mtp, ngram_mod_flavor, supports_ngram_mod, spec_dra
studio/backend/core/inference/llama_cpp.py:1841
↓ 23 callersFunctionwindows_cuda_attempts
( host: HostInfo, llama_tag: str, upstream_assets: dict[str, str], preferred_runtime_line: str
studio/install_llama_prebuilt.py:3273
↓ 22 callersMethodProcess
(self, **k)
studio/backend/tests/test_training_pump_resilience.py:445
↓ 22 callersFunction_build_cache
Create ``$root/models--<repo>/snapshots/<sha>/<rel>`` for each entry.
studio/backend/tests/test_offline_gguf_cache_fallback.py:101
↓ 22 callersFunction_collect
Drive a stream with a custom set of SSE events and return raw lines.
studio/backend/tests/test_gemini_provider.py:150
↓ 22 callersFunction_detect_family_token
Leftmost-position match; ties prefer the longer token.
studio/backend/utils/models/model_config.py:1167
↓ 22 callersFunction_make_loop
Build a configured loop with a multi-turn fake generator. ``turns`` is a list of chunk-lists; iteration N yields chunks from ``turns[N]``.
studio/backend/tests/test_safetensors_tool_loop.py:279
↓ 22 callersFunction_normalise_responses_input
Convert a ResponsesRequest's ``input`` into a Chat-format ``ChatMessage`` list. Handles the three input item shapes allowed by the Responses API:
studio/backend/routes/inference.py:7873
↓ 22 callersFunction_parse_chunks
(lines: list[str])
studio/backend/tests/test_gemini_provider.py:187
↓ 22 callersFunction_register_models
(model_meta: ModelMeta, include_original_model: bool = False)
unsloth/registry/registry.py:150
↓ 22 callersFunctionfast_rms_layernorm_inference
( self, X, XX = None, XX2 = None, variance = None, )
unsloth/models/llama.py:601
↓ 22 callersMethodfeed_chunk
Process one OpenAI streaming chat.completion.chunk.
studio/backend/core/inference/anthropic_compat.py:528
↓ 22 callersFunctionformatCompact
(n: number)
studio/frontend/src/lib/utils.ts:11
↓ 22 callersFunctionmakeModelOptionKey
(section: string, id: string)
studio/frontend/src/components/assistant-ui/model-selector/pickers.tsx:136
↓ 22 callersFunctionresolve_tool_decision
Record the user's "allow"/"deny" decision and unblock the loop. Returns ``True`` if a pending call matched, ``False`` otherwise (e.g. a stale
studio/backend/state/tool_approvals.py:112
↓ 22 callersFunctionresolve_upstream_asset_choice
(host: HostInfo, llama_tag: str)
studio/install_llama_prebuilt.py:3817
↓ 22 callersMethodwait
(self)
unsloth_cli/tests/test_studio_run_parallel_flag.py:182
↓ 21 callersFunction_make
()
studio/backend/tests/test_llama_cpp_load_progress_matrix.py:76
↓ 21 callersFunction_make_backend
Qwen3.6-27B-MTP-class backend (embedded head) with the MTP-math dims.
studio/backend/tests/test_mtp_vram_budget.py:94
↓ 21 callersFunction_marker
Build a ``\\ue200cite\\ue202<sid>[\\ue202<sid>...][\\ue202<loc>]\\ue201`` marker from one or more ``source_ids`` plus an optional ``locator``.
studio/backend/tests/test_openai_citation_markers_edge.py:28
↓ 21 callersFunction_mtp_backend
MTP-named GGUF backend that's already running with draft-mtp.
studio/backend/tests/test_llama_cpp_mtp_detection.py:186
↓ 21 callersFunction_progress
Print an in-place progress bar aligned to the step column layout.
studio/install_python_stack.py:1637
↓ 21 callersFunction_repo
( repo_id: str, files: list[SimpleNamespace], repo_path: Path, *, revisions: list[SimpleNa
studio/backend/tests/test_cached_gguf_routes.py:26
↓ 21 callersFunction_sparse
(path, size)
studio/backend/tests/test_llama_cpp_load_progress_matrix.py:89
↓ 21 callersFunction_text_delta
(text: str, index: int = 0)
studio/backend/tests/test_anthropic_citations_edge.py:116
↓ 21 callersFunction_write_install
Create a fake prebuilt install and return the llama-server path.
studio/backend/tests/test_llama_cpp_update.py:80
↓ 21 callersFunctionadd_bytes_to_tar
( archive: tarfile.TarFile, name: str, data: bytes, *, mode: int = 0o644, )
tests/studio/install/test_install_llama_prebuilt_logic.py:2566
↓ 21 callersFunctionbuild_anthropic_sse_event
Format a single Anthropic SSE event.
studio/backend/core/inference/anthropic_compat.py:230
↓ 21 callersFunctioncopyToClipboard
(text: string)
studio/frontend/src/lib/copy-to-clipboard.ts:34
↓ 21 callersFunctionevaluate_remote_code_consent_for_targets
Decide whether a ``trust_remote_code=True`` load may proceed, over every repo whose code the load would execute. A LoRA load runs adapter AND base
studio/backend/utils/security/consent.py:206
↓ 21 callersFunctionget_device
Return the detected device, auto-detecting if detect_hardware() hasn't run. Prefer calling detect_hardware() explicitly at startup.
studio/backend/utils/hardware/hardware.py:255
↓ 21 callersMethodgetvalue
(self)
studio/backend/tests/test_startup_banner_loopback.py:56
↓ 21 callersFunctionggufVariantsMatch
( left: string | null | undefined, right: string | null | undefined, )
studio/frontend/src/features/hub/lib/model-identity.ts:58
↓ 21 callersFunctionheader_footer_context
(title: str, char = "-")
tests/utils/__init__.py:28
↓ 21 callersFunctionhttp
Return (status_code, parsed_json_or_raw_bytes).
tests/studio/studio_api_smoke.py:74
↓ 21 callersFunctionis_local_path
Check if path is a local filesystem path vs HuggingFace model identifier. Examples: True: /home/user/model, C:\\models, ./model, ~/m
studio/backend/utils/paths/path_utils.py:68
↓ 21 callersMethodmodel_dump
(self, exclude_none = True)
studio/backend/tests/test_mcp_stdio_pr5863.py:64
↓ 21 callersFunctionrun_safetensors_tool_loop
Drive an agentic tool loop on top of a cumulative-text generator. ``single_turn(messages)`` must yield cumulative assistant text (each yield
studio/backend/core/inference/safetensors_agentic.py:144
↓ 21 callersMethodstream_chat_completion
Yield OpenAI-format SSE lines from the external provider. OpenAI-compatible providers forward lines verbatim. For Anthropic, the
studio/backend/core/inference/external_provider.py:816
↓ 21 callersFunctiontorch_gpu_device
(device)
unsloth/kernels/utils.py:152
↓ 21 callersFunctionvalidate_extra_args
Validate user-supplied llama-server args. Returns a flat list ready to extend the llama-server command; raises ``ValueError`` naming the offen
studio/backend/core/inference/llama_server_args.py:100
↓ 20 callersFunction_extract_quant_label
Extract quant label like Q4_K_M, IQ4_XS, BF16 from a GGUF filename. Examples: "gemma-3-4b-it-Q4_K_M.gguf" → "Q4_K_M"
studio/backend/utils/models/model_config.py:1488
↓ 20 callersFunction_host_finding
(text)
tests/security/test_scan_npm_packages.py:547
↓ 20 callersFunction_make_backend
(port: int, *, loaded: bool = True)
tests/studio/load_freeze/test_load_orchestrator.py:62
↓ 20 callersFunction_proc
(returncode, stderr = "")
studio/backend/tests/test_transformers_version.py:1078
↓ 20 callersFunction_reset_studio_db
( tmp_path, monkeypatch, projects_home = None, )
studio/backend/tests/test_chat_history_storage.py:16
↓ 20 callersFunction_sibling
(name: str, size: int, sha: str)
studio/backend/hub/tests/test_model_services.py:56
↓ 20 callersFunction_tier_from_name
``(tier, reason)`` from name substrings (order 510 > 550 > 530), or ``None``. Underscore aliases match (``Qwen3_5`` == ``Qwen3.5``); a dot-versio
studio/backend/utils/transformers_version.py:1081
↓ 20 callersFunction_validate_url
(url: str)
studio/backend/routes/mcp_servers.py:50
↓ 20 callersMethodclaim
( self, key: str, transport: str, *, repo_type: Optional[RepoType] = N
studio/backend/hub/utils/download_registry.py:955
↓ 20 callersFunctionestimate_training_vram
(arch: ModelArchConfig, config: TrainingVramConfig)
studio/backend/utils/hardware/vram_estimation.py:1152
↓ 20 callersFunctionevaluate_remote_code_consent
Single-repo consent; thin wrapper over the for_targets form. ``trusted_org`` is accepted for backward compatibility but no longer changes the deci
studio/backend/utils/security/consent.py:170
↓ 20 callersFunctionformatBytes
(bytes: number)
studio/frontend/src/features/hub/lib/format.ts:4
↓ 20 callersFunctionopenai_error_body
Build an OpenAI-style error envelope. Returns ``{"error": {"message", "type", "param", "code"}}``. The ``param`` and ``code`` keys are always
studio/backend/utils/api_errors.py:75
↓ 20 callersFunctionparseJsonOrThrow
(response: Response)
studio/frontend/src/features/chat/api/chat-api.ts:49
↓ 20 callersMethodput
(self, *a, **k)
studio/backend/tests/test_training_xet_fallback.py:116
↓ 20 callersMethodrun
()
studio/backend/tests/test_responses_tool_passthrough.py:1086
↓ 20 callersFunctionstep
(s)
tests/studio/playwright_chat_ui.py:62
↓ 20 callersFunctionstyle
(text: str, code: str)
studio/backend/startup_banner.py:56
↓ 20 callersMethodupdate
(self, downloaded_bytes: int)
studio/install_llama_prebuilt.py:915
↓ 19 callersFunction_fake_torch
torch stub: version.hip, cuda.is_available/device_count, get_device_properties(i).name.
studio/backend/tests/test_datacenter_gpu_tuning.py:19
↓ 19 callersMethod_handle_event
Apply a subprocess event to local state. State updates happen inside self._lock; DB I/O happens after releasing it so status-polling
studio/backend/core/training/training.py:862
↓ 19 callersFunction_host
(**kw)
studio/backend/tests/test_install_resolve_prebuilt.py:36
↓ 19 callersMethod_is_datacenter_gpu
True iff every selected NVIDIA GPU is a datacenter/professional part. NVIDIA-only, fails open to False (consumer GeForce, ROCm, CPU and errors
studio/backend/core/inference/llama_cpp.py:2108
↓ 19 callersFunction_load_config_json
Return parsed ``config.json`` for *model_name*, checking local files first. ``hf_token`` authenticates the raw fetch so gated/private repos resol
studio/backend/utils/transformers_version.py:647
↓ 19 callersMethod_maybe_recover_from_mtp_crash
Schedule one background reload without MTP after a mid-generation death. MTP+tensor can crash the flash-attn kernel on a later request, after
studio/backend/core/inference/llama_cpp.py:7346
↓ 19 callersMethod_plan_tensor_parallel
Plan a ``--split-mode tensor`` load. Pure: no model or GPU needed. ``gpus`` is a list of ``(gpu_index, free_mib)``; ``model_size`` is the
studio/backend/core/inference/llama_cpp.py:4241
↓ 19 callersFunctionclear
()
tests/studio/playwright_chat_ime_i18n.py:286
↓ 19 callersFunctionis_trusted_org_repo
True only if *name* is a genuine HF repo under a trusted org. Fails closed (local paths, malformed names, untrusted namespaces, Hub errors); never
studio/backend/utils/security/trusted_org.py:44
↓ 19 callersFunctionmake_checksums_with_source
( asset_names, *, release_tag = "v1.0", upstream_tag = "b8508", source_repo = None, so
tests/studio/install/test_selection_logic.py:192
↓ 19 callersMethodstream_chat_completion
(self, **kwargs)
studio/backend/tests/test_openai_tool_passthrough.py:1840
↓ 18 callersFunction_check_field
Run the field validator without building a full TrainingStartRequest.
studio/backend/tests/test_studio_train_validation.py:26
↓ 18 callersMethod_estimate_compute_buffer_bytes
Per-device compute-graph buffer (bytes) from GGUF dims: a vocab-width output buffer + activation scratch. Context-independent; scales with
studio/backend/core/inference/llama_cpp.py:3000
↓ 18 callersFunction_gate
( targets, *, approved = None, subject = "user-a", )
studio/backend/tests/test_trc_approval_cache.py:62
↓ 18 callersMethod_kill_process
Terminate the subprocess if running.
studio/backend/core/inference/llama_cpp.py:6890
↓ 18 callersFunction_one_tool
(name = "echo")
studio/backend/tests/test_mcp_servers.py:646
↓ 18 callersFunction_resolver_backend
Backend with a deterministic probe so the resolver is hermetic.
studio/backend/tests/test_llama_cpp_mtp_detection.py:1102
↓ 18 callersFunction_touch
(path: Path)
studio/backend/tests/test_local_model_format.py:37
↓ 18 callersMethod_windows_pip_nvidia_dll_dirs
Return DLL dirs from pip-installed CUDA wheels under ``<prefix>/Lib/site-packages/`` so llama-server.exe can load ``cudart64_X.dll`` /
studio/backend/core/inference/llama_cpp.py:2492
↓ 18 callersFunctiondownloadBlob
(content: string | Blob, filename: string, mimeType: string)
studio/frontend/src/features/chat/prompt-storage/prompt-storage-dialog.tsx:72
↓ 18 callersFunctionfetch
(remoteId: string)
studio/frontend/src/features/chat/runtime-provider.tsx:636
↓ 18 callersMethodfor_inference
(model)
unsloth/models/loader.py:924
↓ 18 callersFunctiongetAuthToken
()
studio/frontend/src/features/auth/session.ts:28
↓ 18 callersFunctionlog
(message: str)
studio/install_node_prebuilt.py:96
↓ 18 callersFunctionnew_approval_id
Mint an unguessable id for one pending tool-call confirmation.
studio/backend/state/tool_approvals.py:40
↓ 18 callersFunctionreset_tool_policy
()
studio/backend/state/tool_policy.py:48
↓ 18 callersFunctionseed_user
(*, must_change_password = False)
studio/backend/tests/test_desktop_auth.py:32
↓ 17 callersFunction_append
Shortcut for simulating a worker log message.
studio/backend/tests/test_export_log_cursor.py:56
↓ 17 callersFunction_build_request
( host: str, origin, scheme: str = "http", )
studio/backend/tests/test_index_bootstrap_origin_extra.py:13
← previousnext →201–300 of 18,583, ranked by callers