MCPcopy Create free account

hub / github.com/unslothai/unsloth / types & classes

Types & classes1,838 in github.com/unslothai/unsloth

↓ 104 callersClassChatMessage
Single message in a chat conversation. ``content`` is a string or list of multimodal parts. Assistant messages with only ``tool_calls`` may s
studio/backend/models/inference.py:564
↓ 86 callersClassLlamaCppBackend
Manages a llama-server subprocess for GGUF model inference. Lifecycle: 1. load_model(): start llama-server with the GGUF file 2.
studio/backend/core/inference/llama_cpp.py:1245
↓ 86 callersClassResponsesRequest
OpenAI Responses API request.
studio/backend/models/inference.py:1348
↓ 70 callersClassPrebuiltFallback
studio/install_llama_prebuilt.py:404
↓ 68 callersClass_FakeBackend
studio/backend/tests/test_openai_auto_switch.py:20
↓ 67 callersClassAssetChoice
studio/install_llama_prebuilt.py:275
↓ 59 callersClass_LoadRecorder
Stand-in for the load route: records calls and simulates a load.
studio/backend/tests/test_openai_auto_switch.py:33
↓ 54 callersClassApiMonitor
studio/backend/core/inference/api_monitor.py:95
↓ 54 callersClassFinding
scripts/scan_packages.py:419
↓ 53 callersClassApprovedArtifactHash
studio/install_llama_prebuilt.py:354
↓ 47 callersClassChatCompletionRequest
OpenAI-compatible chat completion request. Non-OpenAI extension fields are marked with 'x-unsloth'.
studio/backend/models/inference.py:634
↓ 47 callersClassExternalProviderClient
Async proxy for OpenAI-compatible external LLM APIs.
studio/backend/core/inference/external_provider.py:749
↓ 45 callersClassClassifyCase
tests/studio/test_frontend_dep_removal.py:329
↓ 43 callersClassHostInfo
studio/install_node_prebuilt.py:102
↓ 40 callersClassNativePathLeaseError
Raised when a native path grant is missing, invalid, or unsafe.
studio/backend/utils/native_path_leases.py:45
↓ 35 callersClassApprovedReleaseChecksums
studio/install_llama_prebuilt.py:362
↓ 33 callersClassHideLoggingMessage
unsloth/models/_utils.py:909
↓ 29 callersClassCase
tests/studio/test_frontend_dep_removal.py:28
↓ 28 callersClassPrebuiltFallback
Recoverable failure -- caller should fall back (exit code 2).
studio/install_node_prebuilt.py:83
↓ 28 callersClassTrainingBackend
Training orchestration backend — subprocess-based. Launches a fresh subprocess per job, communicates via mp.Queue.
studio/backend/core/training/training.py:205
↓ 27 callersClassModelArchConfig
studio/backend/utils/hardware/vram_estimation.py:71
↓ 27 callersClass_DummyModel
Small model stub that satisfies MLXTrainer constructor probes.
tests/python/test_mlx_public_trainer_api.py:34
↓ 24 callersClassLlamaServerBackend
Manages a llama.cpp embedding subprocess and talks to it over HTTP.
studio/backend/core/rag/embed_llama_server.py:48
↓ 22 callersClassParsedUpdate
studio/backend/core/data_recipe/jobs/parse.py:28
↓ 21 callersClassTestFailure
tests/studio/install/smoke_test_parallel_studio_home.py:37
↓ 21 callersClass_Proc
studio/backend/tests/test_llama_cpp_load_progress_matrix.py:84
↓ 20 callersClassLoadRequest
Request to load a model for inference
studio/backend/models/inference.py:22
↓ 20 callersClassTrainingVramConfig
studio/backend/utils/hardware/vram_estimation.py:107
↓ 19 callersClassModelMeta
unsloth/registry/registry.py:83
↓ 19 callersClassPkgFieldCase
tests/studio/test_frontend_dep_removal.py:880
↓ 19 callersClass_FakeRequest
studio/backend/tests/test_login_rate_limit.py:53
↓ 18 callersClassFakeLlamaServer
tests/studio/load_freeze/llama_server_shim.py:127
↓ 17 callersClassAnthropicMessagesRequest
studio/backend/models/inference.py:1584
↓ 16 callersClassFinding
scripts/scan_npm_packages.py:189
↓ 16 callersClassFinding
scripts/lockfile_supply_chain_audit.py:308
↓ 16 callersClassMcpServerUpdate
studio/backend/models/mcp_servers.py:17
↓ 16 callersClassTrainingStartRequest
Request schema for starting training
studio/backend/models/training.py:95
↓ 16 callersClass_FakeQueue
List with `.put` so worker._send_status can send into it in tests.
studio/backend/tests/test_training_worker_flash_attn.py:636
↓ 15 callersClassAnthropicPassthroughEmitter
Converts llama-server's OpenAI-format streaming chunks into Anthropic SSE. Used for the client-side tool-use pass-through path: the client (e.g.
studio/backend/core/inference/anthropic_compat.py:481
↓ 15 callersClassAnthropicStreamEmitter
Converts generate_chat_completion_with_tools() events into Anthropic Messages SSE strings.
studio/backend/core/inference/anthropic_compat.py:248
↓ 15 callersClassFakeExecuteTool
Stand-in for ``core.inference.tools.execute_tool``.
studio/backend/tests/test_safetensors_tool_loop.py:244
↓ 14 callersClassBinding
scripts/verify_import_hoist.py:90
↓ 14 callersClassChoiceDelta
Delta content for a streaming chunk.
studio/backend/models/inference.py:1099
↓ 13 callersClassAdvCase
tests/studio/test_frontend_dep_removal.py:736
↓ 13 callersClassDownloadState
studio/backend/hub/utils/download_registry.py:691
↓ 13 callersClassKernelConfigForward
unsloth/kernels/moe/grouped_gemm/kernels/tuning.py:87
↓ 13 callersClass_Model
tests/saving/test_imatrix_export.py:34
↓ 12 callersClassCudaRuntimePreference
studio/install_llama_prebuilt.py:348
↓ 12 callersClassFinding
scripts/notebook_validator.py:124
↓ 12 callersClassKernelConfigBackward_dW
unsloth/kernels/moe/grouped_gemm/kernels/tuning.py:93
↓ 12 callersClassPhase
Wall-clock + memory tracker for a named phase; records into a metrics dict.
tests/studio/run_real_mlx_smoke.py:72
↓ 11 callersClassGaLoreProjector
Low-rank gradient projector with optional INT4/INT8 quantized projection matrices and layer-adaptive subspace update scheduling. SVD of the g
unsloth/optimizers/q_galore_projector.py:26
↓ 11 callersClassKernelConfigBackward_dX
unsloth/kernels/moe/grouped_gemm/kernels/tuning.py:99
↓ 11 callersClassLoadResponse
Response after loading a model
studio/backend/models/inference.py:186
↓ 10 callersClassLocalModelInfo
Discovered local model candidate.
studio/backend/models/models.py:167
↓ 10 callersClassLoggingMiddleware
ASGI request logger that avoids BaseHTTPMiddleware streaming wrappers.
studio/backend/loggers/handlers.py:67
↓ 10 callersClassWrapperCase
tests/studio/test_frontend_dep_removal.py:1359
↓ 10 callersClass_FakeS3Client
studio/backend/tests/test_s3_dataset.py:47
↓ 10 callersClass_Result
studio/backend/tests/test_ssm_runtime.py:24
↓ 9 callersClassHardwareProfile
tests/studio/test_hardware_dispatch_matrix.py:23
↓ 9 callersClassSourceProgress
studio/backend/core/data_recipe/jobs/types.py:39
↓ 9 callersClassToolLoopController
Per-response ledger for local agentic tool loops.
studio/backend/core/inference/tool_loop_controller.py:276
↓ 9 callersClassValidateError
studio/backend/models/data_recipe.py:25
↓ 9 callersClass_AutoModelLike
tests/test_resolve_model_class.py:4
↓ 9 callersClass_FakeModel
Minimal model stand-in; routing reads nothing meaningful off it before dispatch.
tests/saving/test_export_dispatch.py:16
↓ 9 callersClass_FakeProc
A subprocess handle whose liveness the test drives directly.
studio/backend/tests/test_training_pump_resilience.py:92
↓ 9 callersClass_MockDataset
Behaves like an HF Dataset for iteration, len(), and index access.
tests/utils/run_none_detect_tests.py:99
↓ 9 callersClass_SameTaskStreamingResponse
StreamingResponse without Starlette's legacy AnyIO task-group wrapper.
studio/backend/routes/inference.py:813
↓ 9 callersClass_UvicornServerThread
tests/studio/load_freeze/test_load_orchestrator.py:80
↓ 9 callersClass_Waiter
Run ``request_tool_decision`` in a thread and capture its result.
studio/backend/tests/test_tool_approvals.py:41
↓ 8 callersClassPage
A unit of extracted text. ``page_number`` is 1-based (None if N/A).
studio/backend/core/rag/parsers.py:25
↓ 8 callersClassRemoteCodeUnscannable
The repo's executable code could not be fully fetched/listed to scan. Raised (not returned empty) so the gate distinguishes "code PRESENT but unr
studio/backend/utils/security/remote_code_scan.py:57
↓ 8 callersClass_Capture
tests/python/test_dpo_vision_processor_passthrough.py:44
↓ 8 callersClass_DummyVLMModel
Small VLM model stub for MLX vision trainer constructor probes.
tests/python/test_mlx_public_trainer_api.py:42
↓ 8 callersClass_FakeLazyMapping
tests/test_resolve_model_class.py:9
↓ 8 callersClass_Proc
studio/backend/hub/tests/test_model_services.py:1949
↓ 7 callersClassAttentionConfig
Per-layer attention metadata. NOTE(djsaunde): Constructed on every forward pass (not once per layer) since it can be invalid across
unsloth/utils/attention_dispatch.py:55
↓ 7 callersClassAttentionContext
Per-call info required to run attention.
unsloth/utils/attention_dispatch.py:74
↓ 7 callersClassChatMessage
studio/backend/routes/chat_history.py:77
↓ 7 callersClassExpectedFile
studio/backend/hub/utils/download_manifest.py:66
↓ 7 callersClassExportOperationResponse
Generic response for export operations.
studio/backend/models/export.py:112
↓ 7 callersClassGgufVariantsResponse
Response for listing GGUF quantization variants in a HuggingFace repo.
studio/backend/hub/schemas/inventory.py:47
↓ 7 callersClassLoraConfig
unsloth_cli/config.py:36
↓ 7 callersClassTorchAOConfig
unsloth/models/_utils.py:3059
↓ 7 callersClass_FakeInnerTrainer
studio/backend/tests/test_training_preflight.py:54
↓ 7 callersClass_Registry
studio/backend/hub/tests/test_model_services.py:1575
↓ 7 callersClass_TrackedCancel
Register cancel_event in _CANCEL_REGISTRY for the block's duration.
studio/backend/routes/inference.py:1337
↓ 6 callersClassChatCompletionChunk
A single SSE chunk in OpenAI streaming format.
studio/backend/models/inference.py:1120
↓ 6 callersClassChatProject
studio/backend/routes/chat_history.py:88
↓ 6 callersClassChatThread
studio/backend/routes/chat_history.py:50
↓ 6 callersClassCompletionChoice
A single choice in a non-streaming response.
studio/backend/models/inference.py:1145
↓ 6 callersClassCompletionMessage
The assistant's complete response message.
studio/backend/models/inference.py:1135
↓ 6 callersClassGgufVariantDetail
A single GGUF quantization variant in a HuggingFace repo.
studio/backend/hub/schemas/inventory.py:17
↓ 6 callersClassLatestVersionResult
studio/backend/utils/update_status.py:38
↓ 6 callersClassProviderTestResult
Result of a provider connectivity test.
studio/backend/models/providers.py:116
↓ 6 callersClassPublishedReleaseBundle
studio/install_llama_prebuilt.py:317
↓ 6 callersClassRequest
studio/backend/tests/test_openai_tool_passthrough.py:1780
↓ 6 callersClassResponsesResponse
Top-level Responses API response object.
studio/backend/models/inference.py:1463
↓ 6 callersClassUnslothVisionDataCollator
Drop-in zoo collator that validates local video paths on every batch (deduped across batches), applying formatting_func first so formatter-ma
unsloth/trainer.py:59
↓ 6 callersClassUnstructuredFileUploadResponse
studio/backend/models/data_recipe.py:121
next →1–100 of 1,838, ranked by callers