MCPcopy Create free account

hub / github.com/UCSB-AI/Soft-Thinking / types & classes

Types & classes1,237 in github.com/UCSB-AI/Soft-Thinking

↓ 94 callersClassRMSNorm
sglang_soft_thinking_pkg/python/sglang/srt/layers/layernorm.py:42
↓ 82 callersClassTestFile
sglang_soft_thinking_pkg/test/srt/run_suite.py:9
↓ 69 callersClassRowParallelLinear
Linear layer with row parallelism. The linear layer is defined as Y = XA + b. A is parallelized along its first dimension and X along its sec
sglang_soft_thinking_pkg/python/sglang/srt/layers/linear.py:1130
↓ 45 callersClassLogitsProcessor
sglang_soft_thinking_pkg/python/sglang/srt/layers/logits_processor.py:203
↓ 40 callersClassRadixAttention
The attention layer implementation.
sglang_soft_thinking_pkg/python/sglang/srt/layers/radix_attention.py:38
↓ 40 callersClassVocabParallelEmbedding
Embedding parallelized in the vocabulary dimension. Adapted from torch.nn.Embedding, note that we pad the vocabulary size to make sure it is
sglang_soft_thinking_pkg/python/sglang/srt/layers/vocab_parallel_embedding.py:173
↓ 35 callersClassGenerateReqInput
sglang_soft_thinking_pkg/python/sglang/srt/managers/io_struct.py:44
↓ 35 callersClassParallelLMHead
Parallelized LM head. Output logits weight matrices used in the Sampler. The weight and bias tensors are padded to make sure they are divisib
sglang_soft_thinking_pkg/python/sglang/srt/layers/vocab_parallel_embedding.py:577
↓ 35 callersClassQKVParallelLinear
Linear layers for the attention's QKV transformation. Linear layers for the linear transformation of the query, key, and value vectors in the
sglang_soft_thinking_pkg/python/sglang/srt/layers/linear.py:750
↓ 28 callersClassReplicatedLinear
Replicated linear layer. Args: input_size: input dimension of the linear layer. output_size: output dimension of the linear layer
sglang_soft_thinking_pkg/python/sglang/srt/layers/linear.py:217
↓ 27 callersClassSiluAndMul
sglang_soft_thinking_pkg/python/sglang/srt/layers/activation.py:41
↓ 25 callersClassStreamingParseResult
Result of streaming incremental parsing.
sglang_soft_thinking_pkg/python/sglang/srt/function_call_parser.py:69
↓ 23 callersClassMergedColumnParallelLinear
Packed linear layers with column parallelism. Similar to ColumnParallelLinear, but the weight matrix is concatenated along the output dimensi
sglang_soft_thinking_pkg/python/sglang/srt/layers/linear.py:463
↓ 21 callersClassChatTemplate
sglang_soft_thinking_pkg/python/sglang/lang/chat_template.py:12
↓ 19 callersClassColumnParallelLinear
Linear layer with column parallelism. The linear layer is defined as Y = XA + b. A is parallelized along its second dimension as A = [A_1, ..
sglang_soft_thinking_pkg/python/sglang/srt/layers/linear.py:299
↓ 19 callersClassConversation
A class that manages prompt templates and keeps all conversation history.
sglang_soft_thinking_pkg/python/sglang/srt/conversation.py:54
↓ 17 callersClassPooler
A layer that pools specific information from hidden states. This layer does the following: 1. Extracts specific tokens or aggregates data base
sglang_soft_thinking_pkg/python/sglang/srt/layers/pooler.py:23
↓ 13 callersClassSRTRunner
sglang_soft_thinking_pkg/python/sglang/test/runners.py:435
↓ 11 callersClassFunction
sglang_soft_thinking_pkg/python/sglang/srt/distributed/device_communicators/pynccl_wrapper.py:148
↓ 11 callersClassModelCase
sglang_soft_thinking_pkg/test/srt/models/test_generation_models.py:40
↓ 11 callersClassMultimodalDataItem
A single multimodal data, from a single image/video/audio or others
sglang_soft_thinking_pkg/python/sglang/srt/managers/schedule_batch.py:159
↓ 11 callersClassbrgemm
sglang_soft_thinking_pkg/sgl-kernel/csrc/cpu/gemm.cpp:211
↓ 10 callersClassEmbeddingPoolerOutput
sglang_soft_thinking_pkg/python/sglang/srt/layers/pooler.py:19
↓ 10 callersClassFunction
sglang_soft_thinking_pkg/python/sglang/srt/distributed/device_communicators/cuda_wrapper.py:31
↓ 10 callersClassHFRunner
sglang_soft_thinking_pkg/python/sglang/test/runners.py:111
↓ 10 callersClass_Communicator
Note: The communicator now only run up to 1 in-flight request at any time.
sglang_soft_thinking_pkg/python/sglang/srt/managers/tokenizer_manager.py:1304
↓ 9 callersClassGemma3RMSNorm
sglang_soft_thinking_pkg/python/sglang/srt/layers/layernorm.py:159
↓ 9 callersClassModelOutput
sglang_soft_thinking_pkg/python/sglang/test/runners.py:97
↓ 9 callersClassModelWeightParameter
Parameter class for linear layer weights. Uses both column and row parallelism.
sglang_soft_thinking_pkg/python/sglang/srt/layers/parameter.py:196
↓ 9 callersClassOpenAI
sglang_soft_thinking_pkg/python/sglang/lang/backend/openai.py:56
↓ 9 callersClassPerTensorScaleParameter
Parameter class for scales where the number of scales is equivalent to the number of logical matrices in fused linear layers (e.g. for QK
sglang_soft_thinking_pkg/python/sglang/srt/layers/parameter.py:232
↓ 9 callersClassSglRoleBegin
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:507
↓ 9 callersClassSglRoleEnd
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:516
↓ 8 callersClassReq
The input and output status of a request.
sglang_soft_thinking_pkg/python/sglang/srt/managers/schedule_batch.py:387
↓ 8 callersClassUnquantizedLinearMethod
Linear method without quantization.
sglang_soft_thinking_pkg/python/sglang/srt/layers/linear.py:143
↓ 7 callersClassLoRAAdaptor
sglang_soft_thinking_pkg/test/srt/models/lora/utils.py:25
↓ 7 callersClassModelConfig
sglang_soft_thinking_pkg/python/sglang/srt/configs/model_config.py:37
↓ 7 callersClassServerArgs
sglang_soft_thinking_pkg/python/sglang/srt/server_args.py:43
↓ 7 callersClassSglExprList
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:391
↓ 7 callersClassStreamingParseResult
Result of streaming incremental parsing.
sglang_soft_thinking_pkg/python/sglang/srt/reasoning_parser.py:4
↓ 6 callersClassChatCompletionResponseStreamChoice
sglang_soft_thinking_pkg/python/sglang/srt/openai_api/protocol.py:420
↓ 6 callersClassChatCompletionStreamResponse
sglang_soft_thinking_pkg/python/sglang/srt/openai_api/protocol.py:430
↓ 6 callersClassCudaRTLibrary
sglang_soft_thinking_pkg/python/sglang/srt/distributed/device_communicators/cuda_wrapper.py:64
↓ 6 callersClassDeltaMessage
sglang_soft_thinking_pkg/python/sglang/srt/openai_api/protocol.py:413
↓ 6 callersClassFINISH_ABORT
sglang_soft_thinking_pkg/python/sglang/srt/managers/schedule_batch.py:135
↓ 6 callersClassForwardBatch
Store all inputs of a forward pass.
sglang_soft_thinking_pkg/python/sglang/srt/model_executor/forward_batch_info.py:138
↓ 6 callersClassGemmaRMSNorm
sglang_soft_thinking_pkg/python/sglang/srt/layers/layernorm.py:110
↓ 6 callersClassMultimodalSpecialTokens
sglang_soft_thinking_pkg/python/sglang/srt/managers/multimodal_processors/base_processor.py:37
↓ 6 callersClassRadixCache
sglang_soft_thinking_pkg/python/sglang/srt/mem_cache/radix_cache.py:92
↓ 6 callersClassResnetBlock
sglang_soft_thinking_pkg/python/sglang/srt/models/deepseek_janus_pro.py:1699
↓ 6 callersClassSamplingParams
The sampling parameters. See docs/backend/sampling_params.md or https://docs.sglang.ai/backend/sampling_params.html for the document
sglang_soft_thinking_pkg/python/sglang/srt/sampling/sampling_params.py:21
↓ 6 callersClassSchedulePolicy
sglang_soft_thinking_pkg/python/sglang/srt/managers/schedule_policy.py:73
↓ 6 callersClassSglSamplingParams
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:18
↓ 6 callersClassToolCallItem
Simple encapsulation of the parsed ToolCall result for easier usage in streaming contexts.
sglang_soft_thinking_pkg/python/sglang/srt/function_call_parser.py:32
↓ 6 callersClassVisionAttention
r""" Multi-headed attention without any cache, mostly used for ViT. Args: use_qkv_parallel (bool, optional): If True, use QKV-pa
sglang_soft_thinking_pkg/python/sglang/srt/layers/attention/vision.py:26
↓ 5 callersClassFlashAttentionBackend
FlashAttention backend implementation. Note about the init: - If no spec decoding - FlashAttentionBackend will be init once when the
sglang_soft_thinking_pkg/python/sglang/srt/layers/attention/flashattention_backend.py:277
↓ 5 callersClassFlashAttentionMetadata
Metadata to be init once in the model forward pass, each layer's forward pass can reuse the metadata. For each init metadata function, we wil
sglang_soft_thinking_pkg/python/sglang/srt/layers/attention/flashattention_backend.py:24
↓ 5 callersClassFunctionCallParser
In streaming scenarios, each time new_text is received, it calls multi_format_parser.parse_streaming_increment and returns the resulting norm
sglang_soft_thinking_pkg/python/sglang/srt/function_call_parser.py:667
↓ 5 callersClassGeluAndMul
sglang_soft_thinking_pkg/python/sglang/srt/layers/activation.py:54
↓ 5 callersClassLazyImport
Lazy import to make `import sglang` run faster.
sglang_soft_thinking_pkg/python/sglang/utils.py:286
↓ 5 callersClassLlamaModel
sglang_soft_thinking_pkg/python/sglang/srt/models/llama.py:267
↓ 5 callersClassLoRAModelCase
sglang_soft_thinking_pkg/test/srt/models/lora/utils.py:33
↓ 5 callersClassQwen2Model
sglang_soft_thinking_pkg/python/sglang/srt/models/qwen2.py:236
↓ 5 callersClassRequestFuncOutput
sglang_soft_thinking_pkg/python/sglang/bench_serving.py:65
↓ 5 callersClassRuntimeEndpoint
sglang_soft_thinking_pkg/python/sglang/lang/backend/runtime_endpoint.py:25
↓ 5 callersClassSglConstantText
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:498
↓ 5 callersClassSglVariable
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:566
↓ 5 callersClassSingleEvalResult
Result of evaluating a single sample
sglang_soft_thinking_pkg/python/sglang/test/simple_eval_common.py:53
↓ 5 callersClassTreeNode
sglang_soft_thinking_pkg/python/sglang/srt/mem_cache/radix_cache.py:38
↓ 5 callersClassUsageInfo
sglang_soft_thinking_pkg/python/sglang/srt/openai_api/protocol.py:74
↓ 4 callersClassAttnBlock
sglang_soft_thinking_pkg/python/sglang/srt/models/deepseek_janus_pro.py:1752
↓ 4 callersClassChannelQuantScaleParameter
Parameter class for weight scales loaded for weights with channel-wise quantization. Equivalent to _ColumnvLLMParameter.
sglang_soft_thinking_pkg/python/sglang/srt/layers/parameter.py:214
↓ 4 callersClassChoicesDecision
sglang_soft_thinking_pkg/python/sglang/lang/choices.py:9
↓ 4 callersClassCompletionTemplate
A class that manages completion prompt templates. only for code completion currently.
sglang_soft_thinking_pkg/python/sglang/srt/code_completion_parser.py:37
↓ 4 callersClassEagleDraftInput
sglang_soft_thinking_pkg/python/sglang/srt/speculative/eagle_utils.py:46
↓ 4 callersClassEmbeddingReqInput
sglang_soft_thinking_pkg/python/sglang/srt/managers/io_struct.py:459
↓ 4 callersClassEngine
The entry point to the inference engine. - The engine consists of three components: 1. TokenizerManager: Tokenizes the requests and
sglang_soft_thinking_pkg/python/sglang/srt/entrypoints/engine.py:106
↓ 4 callersClassExpertDistributionRecorder
sglang_soft_thinking_pkg/python/sglang/srt/managers/expert_distribution.py:13
↓ 4 callersClassFusedMoE
FusedMoE layer for MoE models. This layer contains both MergedColumnParallel weights (gate_up_proj / w13) and RowParallelLinear weights (down
sglang_soft_thinking_pkg/python/sglang/srt/layers/moe/fused_moe_triton/layer.py:245
↓ 4 callersClassLayerNorm
sglang_soft_thinking_pkg/python/sglang/srt/models/commandr.py:82
↓ 4 callersClassLlamaMLP
sglang_soft_thinking_pkg/python/sglang/srt/models/llama.py:58
↓ 4 callersClassMultiModalityDataPaddingPatternMultimodalTokens
In this pattern, data tokens should be represented as repetitions of a single token e.g. <image><image>....<image>, or <audio><audio>...<audio>
sglang_soft_thinking_pkg/python/sglang/srt/managers/mm_utils.py:101
↓ 4 callersClassMultiModalityDataPaddingPatternTokenPairs
In this pattern, data tokens should be enclosed by special token pairs (e.g. <image>...</image>, data_token_pairs) This strategy should be applie
sglang_soft_thinking_pkg/python/sglang/srt/managers/mm_utils.py:41
↓ 4 callersClassPrefillMetadata
sglang_soft_thinking_pkg/python/sglang/srt/layers/attention/flashinfer_backend.py:51
↓ 4 callersClassPrefillMetadata
sglang_soft_thinking_pkg/python/sglang/srt/layers/attention/flashinfer_mla_backend.py:48
↓ 4 callersClassReasoningParser
Parser that handles both streaming and non-streaming scenarios for extracting reasoning content from model outputs. Args: model_
sglang_soft_thinking_pkg/python/sglang/srt/reasoning_parser.py:143
↓ 4 callersClassRequestFuncInput
sglang_soft_thinking_pkg/benchmark/hicache/bench_serving.py:43
↓ 4 callersClassRequestFuncOutput
sglang_soft_thinking_pkg/benchmark/hicache/bench_serving.py:56
↓ 4 callersClassScheduleBatch
Store all information of a batch on the scheduler.
sglang_soft_thinking_pkg/python/sglang/srt/managers/schedule_batch.py:820
↓ 4 callersClassStructureInfo
sglang_soft_thinking_pkg/python/sglang/srt/function_call_parser.py:80
↓ 3 callersClassCacheOperation
sglang_soft_thinking_pkg/python/sglang/srt/managers/cache_controller.py:50
↓ 3 callersClassCompGraphNode
sglang_soft_thinking_pkg/python/sglang/lang/compiler.py:213
↓ 3 callersClassDeepGemmKernelHelper
sglang_soft_thinking_pkg/python/sglang/srt/layers/quantization/deep_gemm.py:78
↓ 3 callersClassDeepseekMLP
sglang_soft_thinking_pkg/python/sglang/srt/models/deepseek.py:52
↓ 3 callersClassDeepseekScalingRotaryEmbedding
RotaryEmbedding extended with YaRN method. Credits to Peng et al. github.com/jquesnelle/yarn
sglang_soft_thinking_pkg/python/sglang/srt/layers/rotary_embedding.py:572
↓ 3 callersClassDeepseekV2MLP
sglang_soft_thinking_pkg/python/sglang/srt/models/deepseek_v2.py:127
↓ 3 callersClassGroupCoordinator
PyTorch ProcessGroup wrapper for a group of processes. PyTorch ProcessGroup is bound to one specific communication backend, e.g. NCCL
sglang_soft_thinking_pkg/python/sglang/srt/distributed/parallel_state.py:164
↓ 3 callersClassLlamaForCausalLM
sglang_soft_thinking_pkg/python/sglang/srt/models/llama.py:375
↓ 3 callersClassLoadConfig
download_dir: Directory to download and load the weights, default to the default cache directory of huggingface. load_format: The for
sglang_soft_thinking_pkg/python/sglang/srt/configs/load_config.py:29
↓ 3 callersClassLogitsProcessorOutput
sglang_soft_thinking_pkg/python/sglang/srt/layers/logits_processor.py:49
next →1–100 of 1,237, ranked by callers