Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/UCSB-AI/Soft-Thinking
/ types & classes
Types & classes
1,237 in github.com/UCSB-AI/Soft-Thinking
⨍
Functions
6,405
◇
Types & classes
1,237
↳
Endpoints
79
↓ 94 callers
Class
RMSNorm
sglang_soft_thinking_pkg/python/sglang/srt/layers/layernorm.py:42
↓ 82 callers
Class
TestFile
sglang_soft_thinking_pkg/test/srt/run_suite.py:9
↓ 69 callers
Class
RowParallelLinear
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 callers
Class
LogitsProcessor
sglang_soft_thinking_pkg/python/sglang/srt/layers/logits_processor.py:203
↓ 40 callers
Class
RadixAttention
The attention layer implementation.
sglang_soft_thinking_pkg/python/sglang/srt/layers/radix_attention.py:38
↓ 40 callers
Class
VocabParallelEmbedding
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 callers
Class
GenerateReqInput
sglang_soft_thinking_pkg/python/sglang/srt/managers/io_struct.py:44
↓ 35 callers
Class
ParallelLMHead
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 callers
Class
QKVParallelLinear
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 callers
Class
ReplicatedLinear
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 callers
Class
SiluAndMul
sglang_soft_thinking_pkg/python/sglang/srt/layers/activation.py:41
↓ 25 callers
Class
StreamingParseResult
Result of streaming incremental parsing.
sglang_soft_thinking_pkg/python/sglang/srt/function_call_parser.py:69
↓ 23 callers
Class
MergedColumnParallelLinear
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 callers
Class
ChatTemplate
sglang_soft_thinking_pkg/python/sglang/lang/chat_template.py:12
↓ 19 callers
Class
ColumnParallelLinear
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 callers
Class
Conversation
A class that manages prompt templates and keeps all conversation history.
sglang_soft_thinking_pkg/python/sglang/srt/conversation.py:54
↓ 17 callers
Class
Pooler
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 callers
Class
SRTRunner
sglang_soft_thinking_pkg/python/sglang/test/runners.py:435
↓ 11 callers
Class
Function
sglang_soft_thinking_pkg/python/sglang/srt/distributed/device_communicators/pynccl_wrapper.py:148
↓ 11 callers
Class
ModelCase
sglang_soft_thinking_pkg/test/srt/models/test_generation_models.py:40
↓ 11 callers
Class
MultimodalDataItem
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 callers
Class
brgemm
sglang_soft_thinking_pkg/sgl-kernel/csrc/cpu/gemm.cpp:211
↓ 10 callers
Class
EmbeddingPoolerOutput
sglang_soft_thinking_pkg/python/sglang/srt/layers/pooler.py:19
↓ 10 callers
Class
Function
sglang_soft_thinking_pkg/python/sglang/srt/distributed/device_communicators/cuda_wrapper.py:31
↓ 10 callers
Class
HFRunner
sglang_soft_thinking_pkg/python/sglang/test/runners.py:111
↓ 10 callers
Class
_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 callers
Class
Gemma3RMSNorm
sglang_soft_thinking_pkg/python/sglang/srt/layers/layernorm.py:159
↓ 9 callers
Class
ModelOutput
sglang_soft_thinking_pkg/python/sglang/test/runners.py:97
↓ 9 callers
Class
ModelWeightParameter
Parameter class for linear layer weights. Uses both column and row parallelism.
sglang_soft_thinking_pkg/python/sglang/srt/layers/parameter.py:196
↓ 9 callers
Class
OpenAI
sglang_soft_thinking_pkg/python/sglang/lang/backend/openai.py:56
↓ 9 callers
Class
PerTensorScaleParameter
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 callers
Class
SglRoleBegin
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:507
↓ 9 callers
Class
SglRoleEnd
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:516
↓ 8 callers
Class
Req
The input and output status of a request.
sglang_soft_thinking_pkg/python/sglang/srt/managers/schedule_batch.py:387
↓ 8 callers
Class
UnquantizedLinearMethod
Linear method without quantization.
sglang_soft_thinking_pkg/python/sglang/srt/layers/linear.py:143
↓ 7 callers
Class
LoRAAdaptor
sglang_soft_thinking_pkg/test/srt/models/lora/utils.py:25
↓ 7 callers
Class
ModelConfig
sglang_soft_thinking_pkg/python/sglang/srt/configs/model_config.py:37
↓ 7 callers
Class
ServerArgs
sglang_soft_thinking_pkg/python/sglang/srt/server_args.py:43
↓ 7 callers
Class
SglExprList
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:391
↓ 7 callers
Class
StreamingParseResult
Result of streaming incremental parsing.
sglang_soft_thinking_pkg/python/sglang/srt/reasoning_parser.py:4
↓ 6 callers
Class
ChatCompletionResponseStreamChoice
sglang_soft_thinking_pkg/python/sglang/srt/openai_api/protocol.py:420
↓ 6 callers
Class
ChatCompletionStreamResponse
sglang_soft_thinking_pkg/python/sglang/srt/openai_api/protocol.py:430
↓ 6 callers
Class
CudaRTLibrary
sglang_soft_thinking_pkg/python/sglang/srt/distributed/device_communicators/cuda_wrapper.py:64
↓ 6 callers
Class
DeltaMessage
sglang_soft_thinking_pkg/python/sglang/srt/openai_api/protocol.py:413
↓ 6 callers
Class
FINISH_ABORT
sglang_soft_thinking_pkg/python/sglang/srt/managers/schedule_batch.py:135
↓ 6 callers
Class
ForwardBatch
Store all inputs of a forward pass.
sglang_soft_thinking_pkg/python/sglang/srt/model_executor/forward_batch_info.py:138
↓ 6 callers
Class
GemmaRMSNorm
sglang_soft_thinking_pkg/python/sglang/srt/layers/layernorm.py:110
↓ 6 callers
Class
MultimodalSpecialTokens
sglang_soft_thinking_pkg/python/sglang/srt/managers/multimodal_processors/base_processor.py:37
↓ 6 callers
Class
RadixCache
sglang_soft_thinking_pkg/python/sglang/srt/mem_cache/radix_cache.py:92
↓ 6 callers
Class
ResnetBlock
sglang_soft_thinking_pkg/python/sglang/srt/models/deepseek_janus_pro.py:1699
↓ 6 callers
Class
SamplingParams
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 callers
Class
SchedulePolicy
sglang_soft_thinking_pkg/python/sglang/srt/managers/schedule_policy.py:73
↓ 6 callers
Class
SglSamplingParams
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:18
↓ 6 callers
Class
ToolCallItem
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 callers
Class
VisionAttention
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 callers
Class
FlashAttentionBackend
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 callers
Class
FlashAttentionMetadata
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 callers
Class
FunctionCallParser
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 callers
Class
GeluAndMul
sglang_soft_thinking_pkg/python/sglang/srt/layers/activation.py:54
↓ 5 callers
Class
LazyImport
Lazy import to make `import sglang` run faster.
sglang_soft_thinking_pkg/python/sglang/utils.py:286
↓ 5 callers
Class
LlamaModel
sglang_soft_thinking_pkg/python/sglang/srt/models/llama.py:267
↓ 5 callers
Class
LoRAModelCase
sglang_soft_thinking_pkg/test/srt/models/lora/utils.py:33
↓ 5 callers
Class
Qwen2Model
sglang_soft_thinking_pkg/python/sglang/srt/models/qwen2.py:236
↓ 5 callers
Class
RequestFuncOutput
sglang_soft_thinking_pkg/python/sglang/bench_serving.py:65
↓ 5 callers
Class
RuntimeEndpoint
sglang_soft_thinking_pkg/python/sglang/lang/backend/runtime_endpoint.py:25
↓ 5 callers
Class
SglConstantText
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:498
↓ 5 callers
Class
SglVariable
sglang_soft_thinking_pkg/python/sglang/lang/ir.py:566
↓ 5 callers
Class
SingleEvalResult
Result of evaluating a single sample
sglang_soft_thinking_pkg/python/sglang/test/simple_eval_common.py:53
↓ 5 callers
Class
TreeNode
sglang_soft_thinking_pkg/python/sglang/srt/mem_cache/radix_cache.py:38
↓ 5 callers
Class
UsageInfo
sglang_soft_thinking_pkg/python/sglang/srt/openai_api/protocol.py:74
↓ 4 callers
Class
AttnBlock
sglang_soft_thinking_pkg/python/sglang/srt/models/deepseek_janus_pro.py:1752
↓ 4 callers
Class
ChannelQuantScaleParameter
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 callers
Class
ChoicesDecision
sglang_soft_thinking_pkg/python/sglang/lang/choices.py:9
↓ 4 callers
Class
CompletionTemplate
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 callers
Class
EagleDraftInput
sglang_soft_thinking_pkg/python/sglang/srt/speculative/eagle_utils.py:46
↓ 4 callers
Class
EmbeddingReqInput
sglang_soft_thinking_pkg/python/sglang/srt/managers/io_struct.py:459
↓ 4 callers
Class
Engine
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 callers
Class
ExpertDistributionRecorder
sglang_soft_thinking_pkg/python/sglang/srt/managers/expert_distribution.py:13
↓ 4 callers
Class
FusedMoE
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 callers
Class
LayerNorm
sglang_soft_thinking_pkg/python/sglang/srt/models/commandr.py:82
↓ 4 callers
Class
LlamaMLP
sglang_soft_thinking_pkg/python/sglang/srt/models/llama.py:58
↓ 4 callers
Class
MultiModalityDataPaddingPatternMultimodalTokens
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 callers
Class
MultiModalityDataPaddingPatternTokenPairs
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 callers
Class
PrefillMetadata
sglang_soft_thinking_pkg/python/sglang/srt/layers/attention/flashinfer_backend.py:51
↓ 4 callers
Class
PrefillMetadata
sglang_soft_thinking_pkg/python/sglang/srt/layers/attention/flashinfer_mla_backend.py:48
↓ 4 callers
Class
ReasoningParser
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 callers
Class
RequestFuncInput
sglang_soft_thinking_pkg/benchmark/hicache/bench_serving.py:43
↓ 4 callers
Class
RequestFuncOutput
sglang_soft_thinking_pkg/benchmark/hicache/bench_serving.py:56
↓ 4 callers
Class
ScheduleBatch
Store all information of a batch on the scheduler.
sglang_soft_thinking_pkg/python/sglang/srt/managers/schedule_batch.py:820
↓ 4 callers
Class
StructureInfo
sglang_soft_thinking_pkg/python/sglang/srt/function_call_parser.py:80
↓ 3 callers
Class
CacheOperation
sglang_soft_thinking_pkg/python/sglang/srt/managers/cache_controller.py:50
↓ 3 callers
Class
CompGraphNode
sglang_soft_thinking_pkg/python/sglang/lang/compiler.py:213
↓ 3 callers
Class
DeepGemmKernelHelper
sglang_soft_thinking_pkg/python/sglang/srt/layers/quantization/deep_gemm.py:78
↓ 3 callers
Class
DeepseekMLP
sglang_soft_thinking_pkg/python/sglang/srt/models/deepseek.py:52
↓ 3 callers
Class
DeepseekScalingRotaryEmbedding
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 callers
Class
DeepseekV2MLP
sglang_soft_thinking_pkg/python/sglang/srt/models/deepseek_v2.py:127
↓ 3 callers
Class
GroupCoordinator
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 callers
Class
LlamaForCausalLM
sglang_soft_thinking_pkg/python/sglang/srt/models/llama.py:375
↓ 3 callers
Class
LoadConfig
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 callers
Class
LogitsProcessorOutput
sglang_soft_thinking_pkg/python/sglang/srt/layers/logits_processor.py:49
next →
1–100 of 1,237, ranked by callers