Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TimmyOVO/deepseek-ocr.rs
/ functions
Functions
1,292 in github.com/TimmyOVO/deepseek-ocr.rs
⨍
Functions
1,292
◇
Types & classes
419
↓ 275 callers
Method
get
Return the cached entry for `layer_idx`, if any.
crates/core/src/cache.rs:269
↓ 238 callers
Method
push
(&mut self, spec: LinearSpec)
crates/dsq-runtime/src/lib.rs:100
↓ 187 callers
Method
iter
Iterate over layer entries.
crates/core/src/cache.rs:310
↓ 152 callers
Method
len
(&self)
crates/infer-dots/src/model.rs:379
↓ 150 callers
Method
to_dtype
(self)
crates/dsq-cli/src/main.rs:99
↓ 144 callers
Method
as_ref
(&self)
crates/infer-deepseek/src/model/mod.rs:131
↓ 95 callers
Function
to_dtype_if_needed
Returns `tensor` cast to `dtype` only when needed.
crates/core/src/tensor.rs:5
↓ 80 callers
Method
join
(&self, segment: impl Into<String>)
crates/config/src/fs.rs:36
↓ 79 callers
Method
add_field
(&mut self, key: K, value: V)
crates/core/src/benchmark.rs:71
↓ 70 callers
Method
is_empty
Returns `true` when no layer has cached values yet.
crates/core/src/cache.rs:264
↓ 62 callers
Function
into_dtype_if_needed
Returns owned `tensor` cast to `dtype` only when needed.
crates/core/src/tensor.rs:14
↓ 61 callers
Method
add
(mut self, rhs: &DecodeParametersPatch)
crates/core/src/inference.rs:116
↓ 59 callers
Method
len
(&self)
crates/dsq-runtime/src/lib.rs:112
↓ 51 callers
Method
append
(&mut self, chunk: &KvCacheChunk)
crates/core/src/cache.rs:177
↓ 47 callers
Method
device
(&self)
crates/infer-deepseek/src/model/mod.rs:572
↓ 45 callers
Method
finish
(mut self, update: F)
crates/core/src/benchmark.rs:115
↓ 44 callers
Method
dtype
DType the model was loaded with.
crates/infer-deepseek/src/model/mod.rs:1120
↓ 31 callers
Method
len
Current number of layer slots tracked by this cache (including empty ones).
crates/core/src/cache.rs:259
↓ 30 callers
Method
exists
(&self, path: &VirtualPath)
crates/config/src/fs.rs:153
↓ 27 callers
Method
dtype
(&self)
crates/infer-deepseek/src/transformer/rope.rs:164
↓ 26 callers
Method
extend
(&mut self, specs: I)
crates/dsq-runtime/src/lib.rs:104
↓ 26 callers
Function
get_required_usize
(map: &Map<String, Value>, key: &str)
crates/dsq-models/src/adapters/helpers.rs:10
↓ 25 callers
Method
dtype
(&self)
crates/infer-paddleocr/src/model.rs:300
↓ 23 callers
Method
get
(&self, id: &str)
crates/dsq-models/src/lib.rs:86
↓ 21 callers
Method
dtype
(&self)
crates/infer-dots/src/model.rs:254
↓ 16 callers
Method
as_str
(&self)
crates/pipeline/src/model.rs:49
↓ 16 callers
Method
device
(&self)
crates/infer-dots/src/model.rs:250
↓ 16 callers
Method
dtype
(&self)
crates/infer-glm/src/model.rs:498
↓ 16 callers
Function
write_json
(path: Path, payload: dict[str, Any])
benchsuite/common.py:94
↓ 15 callers
Method
as_ref
(&self)
crates/pipeline/src/pipeline.rs:207
↓ 14 callers
Function
cast_dtype_owned
(tensor: Tensor, dtype: DType, context_msg: &'static str)
crates/infer-deepseek/src/model/mod.rs:58
↓ 14 callers
Method
push_layer
(&mut self, layer: L)
crates/pipeline/src/config.rs:218
↓ 12 callers
Function
apply_linear_f32_keep
(input: &Tensor, weights: &LinearWeights)
crates/infer-deepseek/src/transformer/block.rs:1171
↓ 12 callers
Function
get_optional_usize
(map: &Map<String, Value>, key: &str)
crates/dsq-models/src/adapters/helpers.rs:14
↓ 11 callers
Function
apply_linear
(input: &Tensor, weights: &LinearWeights)
crates/infer-paddleocr/src/transformer/ops.rs:6
↓ 11 callers
Function
apply_linear
(input: &Tensor, weights: &LinearWeights)
crates/infer-deepseek/src/transformer/block.rs:1058
↓ 11 callers
Method
forward
( &self, patches: &SiglipImagePatches, use_rope: bool, interpolate_pos_encodin
crates/infer-paddleocr/src/vision/encoder.rs:50
↓ 11 callers
Method
forward
( &self, input_ids: Option<&Tensor>, inputs_embeds: Option<&Tensor>, attention
crates/infer-deepseek/src/model/mod.rs:1183
↓ 11 callers
Function
gather_token_embeddings
Gather token embeddings for a batch of input ids. `weight` must be `[vocab, hidden]` and `ids` must be rank-2 `[batch, seq]`. The returned tensor has
crates/core/src/tensor.rs:52
↓ 11 callers
Method
with_physical_path
(&self, path: &VirtualPath, func: F)
crates/config/src/fs.rs:181
↓ 10 callers
Function
read_json
(path: Path)
benchsuite/common.py:90
↓ 10 callers
Function
select_token_id
Select the next token id using the configured sampling strategy.
crates/core/src/sampling.rs:34
↓ 10 callers
Method
seq_len
(&self)
crates/core/src/cache.rs:51
↓ 9 callers
Function
bias_name
(enabled: bool, prefix: &str, suffix: &str)
crates/dsq-models/src/adapters/dots_ocr.rs:232
↓ 9 callers
Method
build
(self)
crates/pipeline/src/runtime.rs:76
↓ 9 callers
Function
cast_dtype
(tensor: &Tensor, dtype: DType, context_msg: &'static str)
crates/infer-deepseek/src/model/mod.rs:54
↓ 9 callers
Function
current_timestamp
()
crates/server/src/routes.rs:183
↓ 9 callers
Method
device
(&self)
crates/infer-paddleocr/src/model.rs:296
↓ 9 callers
Method
forward_2d
(&self, input: &Tensor)
crates/infer-glm/src/transformer/weights.rs:64
↓ 9 callers
Function
quantized_entry
(kind: ModelKind, dtype: &str, baseline_id: &str)
crates/config/src/config.rs:429
↓ 8 callers
Method
forward
(&self, input: &Tensor)
crates/infer-deepseek/src/vision/sam.rs:219
↓ 8 callers
Function
make_contiguous
(tensor: Tensor, force: bool)
crates/infer-dots/src/vision/dots_vit.rs:568
↓ 8 callers
Method
normalise
(&mut self, fs: &impl VirtualFileSystem)
crates/config/src/config.rs:299
↓ 8 callers
Method
resolve
(&self, path: &VirtualPath)
crates/config/src/fs.rs:127
↓ 7 callers
Function
bias_name
(enabled: bool, prefix: &str, suffix: &str)
crates/dsq-models/src/adapters/paddleocr_vl.rs:233
↓ 7 callers
Method
build_local_fs
Build a LocalFileSystem using provided overrides or fallbacks.
crates/pipeline/src/fs.rs:40
↓ 7 callers
Function
get_optional_nonzero
(map: &Map<String, Value>, key: &str)
crates/dsq-models/src/adapters/helpers.rs:18
↓ 6 callers
Function
apply_rope
(x: &Tensor, cos: &Tensor, sin: &Tensor, reorder: bool)
crates/infer-deepseek/src/transformer/block.rs:1489
↓ 6 callers
Method
cache
(&mut self)
crates/core/src/cache.rs:370
↓ 6 callers
Method
chunks
(&self)
crates/core/src/cache.rs:74
↓ 6 callers
Function
clip8
(value: i64)
crates/infer-deepseek/src/vision/resample.rs:13
↓ 6 callers
Function
clip8
(value: i64)
crates/infer-glm/src/vision.rs:390
↓ 6 callers
Method
container_label
(&self)
crates/dsq-runtime/src/lib.rs:255
↓ 6 callers
Method
decode
( &self, _tokenizer: &Tokenizer, _prompt: &str, _images: &[image::DynamicImage
crates/server/src/state.rs:294
↓ 6 callers
Method
device
(&self)
crates/core/src/runtime_backend.rs:369
↓ 6 callers
Method
device
(&self)
crates/infer-glm/src/model.rs:494
↓ 6 callers
Function
ensure_remote_file
(repo_id: &str, remote_name: &str, target: &Path)
crates/assets/src/lib.rs:248
↓ 6 callers
Method
execute
( self, snapshot: Option<&QuantizedSnapshot>, device: &Device, parallel: Optio
crates/dsq-runtime/src/lib.rs:120
↓ 6 callers
Method
forward_3d
(&self, input: &Tensor)
crates/infer-glm/src/transformer/weights.rs:68
↓ 6 callers
Method
generate
( &self, req: &OcrRequest, state: Option<&mut deepseek_ocr_core::runtime_backend::Runt
crates/pipeline/src/pipeline.rs:75
↓ 6 callers
Method
is_empty
(&self)
crates/dsq-runtime/src/lib.rs:116
↓ 6 callers
Function
low_precision_compute_dtype
(dtype: DType)
crates/infer-deepseek/src/model/mod.rs:70
↓ 6 callers
Function
maybe_cast
(tensor: &Tensor, dtype: DType)
crates/infer-dots/src/vision/dots_vit.rs:583
↓ 6 callers
Function
maybe_cast
(tensor: &Tensor, dtype: DType)
crates/infer-dots/src/transformer/block.rs:320
↓ 6 callers
Function
maybe_cast
(tensor: &Tensor, dtype: DType)
crates/infer-glm/src/transformer/ops.rs:49
↓ 6 callers
Function
normalize_text
Normalise decoder output by stripping sentinel tokens and Windows line-endings.
crates/core/src/inference.rs:248
↓ 6 callers
Method
read
(&self, layer_idx: usize)
crates/core/src/runtime_backend.rs:164
↓ 6 callers
Method
record_attempt
(&self, module: QuantModule, outcome: QuantizationOutcome)
crates/infer-deepseek/src/quantization.rs:98
↓ 6 callers
Method
records
All tensor records in the order encoded by the file.
crates/dsq/src/lib.rs:254
↓ 6 callers
Method
resolve
(&self)
crates/pipeline/src/config.rs:237
↓ 6 callers
Function
runtime_paths
(*, runtime_root: Path | None = None, create_dirs: bool = True)
benchsuite/common.py:41
↓ 6 callers
Function
transpose
(t: &Tensor, dim0: usize, dim1: usize)
crates/infer-deepseek/src/transformer/block.rs:1483
↓ 6 callers
Method
write
(&self, path: &VirtualPath, contents: &[u8])
crates/config/src/fs.rs:146
↓ 5 callers
Method
_format_table
(header: list[str], rows: list[list[str]])
benchsuite/orchestrator.py:26
↓ 5 callers
Method
add_quantized_tensor_internal
( &mut self, name: String, out_dim: usize, in_dim: usize, q_dtype: Dsq
crates/dsq-writer/src/lib.rs:431
↓ 5 callers
Function
baseline_model_id
(model_id: &str)
crates/assets/src/lib.rs:194
↓ 5 callers
Method
clear
Clears all cached layers but retains the allocated capacity.
crates/core/src/cache.rs:292
↓ 5 callers
Method
ensure_parent
(&self, path: &VirtualPath)
crates/config/src/fs.rs:163
↓ 5 callers
Method
forward
Apply the linear layer to an arbitrary-rank tensor whose last dimension matches `in_dim`, preserving the leading dimensions.
crates/infer-dots/src/quant.rs:123
↓ 5 callers
Function
get_adapter
(name: str)
benchsuite/registry.py:38
↓ 5 callers
Function
init_rng
Create a deterministic RNG when a seed is provided.
crates/core/src/sampling.rs:26
↓ 5 callers
Function
is_low_precision
(t: &Tensor)
crates/infer-deepseek/src/transformer/block.rs:19
↓ 5 callers
Function
make_contiguous
(tensor: Tensor, force: bool)
crates/infer-dots/src/transformer/block.rs:305
↓ 5 callers
Method
merged_patch
(&self)
crates/pipeline/src/config.rs:225
↓ 5 callers
Method
on_event
(&self, _event: &OcrPipelineEvent)
crates/pipeline/src/observer.rs:258
↓ 5 callers
Function
patch_layer
(source: OcrConfigSource, patch: OcrConfigPatch)
crates/pipeline/tests/config_resolver_test.rs:14
↓ 5 callers
Function
precise_rms_norm_last_dim
(input: &Tensor, weight: &Tensor, eps: f64)
crates/infer-glm/src/vision.rs:975
↓ 5 callers
Function
qualified_name
(vb: &VarBuilder, tensor: &str)
crates/infer-deepseek/src/transformer/weights.rs:628
↓ 5 callers
Function
run_quantized_matmul
(_label: &str, qm: &QMatMul, input: &Tensor)
crates/infer-deepseek/src/quantization.rs:165
↓ 5 callers
Method
tensor
(&self, name: &str)
crates/dsq-cli/src/main.rs:870
next →
1–100 of 1,292, ranked by callers