Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Noeda/rllama
/ functions
Functions
465 in github.com/Noeda/rllama
⨍
Functions
465
◇
Types & classes
55
↓ 189 callers
Method
unwrap
(self)
src/tensor.rs:187
↓ 133 callers
Method
clone
(&self)
src/tensor.rs:118
↓ 89 callers
Method
add
(&self, other: &Tensor)
src/tensor.rs:573
↓ 67 callers
Function
f32x8_zero
()
src/simd_support.rs:58
↓ 48 callers
Method
assume_on_cpu
(&self)
src/tensor.rs:238
↓ 47 callers
Function
fma_f32x8
a * b + c
src/simd_support.rs:90
↓ 47 callers
Method
get_f32
(&self, row: i64, col: i64)
src/tensor.rs:341
↓ 43 callers
Method
to_gpu_inplace
(&mut self, cl: &OpenCL)
src/tensor.rs:2127
↓ 41 callers
Method
set_f32
(&mut self, row: i64, col: i64, val: f32)
src/tensor.rs:368
↓ 39 callers
Method
to_f16
(&self)
src/tensor.rs:2281
↓ 31 callers
Method
to_f32
(&self)
src/tensor.rs:2226
↓ 29 callers
Function
horizontal_sum_f32x8
(mut ymm: __m256)
src/simd_support.rs:97
↓ 20 callers
Method
rows
(&self)
src/tensor.rs:331
↓ 19 callers
Method
matrix_mul_inplace_transposed
Matrix multiplication done in-place, but the second matrix is transposed. With this, you can avoid using .transpose() on the second matrix.
src/tensor.rs:1250
↓ 19 callers
Method
matrix_mul_transposed
(&self, other: &Tensor)
src/tensor.rs:999
↓ 18 callers
Function
load_f32x8
(ptr: *const F32x8)
src/simd_support.rs:26
↓ 17 callers
Method
cols
(&self)
src/tensor.rs:335
↓ 16 callers
Method
bytes_for_nvalues
(&self, nvalues: usize)
src/tensor.rs:76
↓ 16 callers
Function
horizontal_sum_and_f32_to_f16
(mut ymm: __m256)
src/simd_support.rs:108
↓ 16 callers
Method
to_cpu_inplace
(&mut self)
src/tensor.rs:2181
↓ 15 callers
Method
dtype
(&self)
src/tensor.rs:250
↓ 13 callers
Method
transpose
(&self)
src/tensor.rs:911
↓ 10 callers
Method
matrix_mul_naive
Slow, naive matrix multiplication. This is used as a reference to test correctness of other matrix multiplications.
src/tensor.rs:957
↓ 10 callers
Method
name
(&self)
src/protomodels/sentencepiece_model.rs:1660
↓ 10 callers
Method
read
(&mut self, buf: &mut [u8])
src/data_source.rs:53
↓ 9 callers
Method
is_on_gpu
(&self)
src/tensor.rs:1177
↓ 9 callers
Method
matrix_mul
(&self, other: &Tensor)
src/tensor.rs:979
↓ 9 callers
Method
row
(&self, row: i64)
src/tensor.rs:2316
↓ 8 callers
Method
get_int64
(&self)
src/unpickler.rs:124
↓ 8 callers
Function
load_i16x8
(ptr: *const I16x8)
src/simd_support.rs:16
↓ 7 callers
Method
get
Gets a value from a dictionary, assuming Value is a dictionary. Returns None if the key is not found, or the value is not a dictionary.
src/unpickler.rs:40
↓ 7 callers
Function
i16x8_as_f16_to_f32x8
(a: I16x8)
src/simd_support.rs:45
↓ 7 callers
Method
matrix_vector_mul_transposed
Same as matrix_vector_mul, but right side is assumed to be transposed.
src/tensor.rs:1699
↓ 6 callers
Method
finish
(&mut self)
src/tensor.rs:2170
↓ 6 callers
Function
make_program_with_src
(ctx: &Context, src: &str)
src/tensor_opencl_support.rs:415
↓ 6 callers
Method
view
(&self, rows: i64, cols: i64)
src/tensor.rs:2063
↓ 4 callers
Method
assume_on_gpu
(&self)
src/tensor.rs:226
↓ 4 callers
Method
cl
(&self)
src/tensor_opencl_support.rs:173
↓ 4 callers
Method
get_str_key
Same as get() but uses a string as key.
src/unpickler.rs:48
↓ 4 callers
Method
is_on_cpu
(&self)
src/tensor.rs:1193
↓ 4 callers
Method
matrix_mul_inplace
Matrix multiplication done in-place
src/tensor.rs:1028
↓ 4 callers
Method
open
( &self, name: P, tensor_name: S, shard: usize, )
src/data_source.rs:97
↓ 4 callers
Method
process_waiting_for_data_mut
(&mut self)
src/tensor.rs:2150
↓ 4 callers
Method
wait
(&self)
src/tensor_opencl_support.rs:409
↓ 4 callers
Method
with_opencl_data
(&self, f: F)
src/tensor.rs:786
↓ 3 callers
Method
clip_cols
(&self, cols: usize)
src/tensor.rs:2037
↓ 3 callers
Method
get_tuple
(&self)
src/unpickler.rs:138
↓ 3 callers
Method
hadamard_product
(&self, other: &Tensor)
src/tensor.rs:679
↓ 3 callers
Function
i16x8_zero
()
src/simd_support.rs:62
↓ 3 callers
Method
id_to_str
Gives a string for a token id. Panics if the id is out of range.
src/tokenizer.rs:98
↓ 3 callers
Method
into_same_type
(self, other: &Tensor)
src/tensor.rs:1210
↓ 3 callers
Method
make_caches
(&self)
src/transformer.rs:328
↓ 3 callers
Method
read_from_result
(&mut self, buf: &mut [u8])
src/rllama_main.rs:435
↓ 3 callers
Method
repetition_penalty
(self, repetition_penalty: f32)
src/token_sampler.rs:61
↓ 3 callers
Method
seek
(&mut self, pos: std::io::SeekFrom)
src/data_source.rs:59
↓ 3 callers
Method
silu
(&self)
src/tensor.rs:768
↓ 3 callers
Method
softmax
Runs softmax on row dimension.
src/tensor.rs:479
↓ 3 callers
Method
temperature
(self, temperature: f32)
src/token_sampler.rs:46
↓ 3 callers
Method
to_same_type
Casts data type to whatever the other tensors data type is.
src/tensor.rs:1198
↓ 3 callers
Method
to_tensor_builder
Assume that the value represents a tensor in PyTorch and return instructions how to actually load the values.
src/unpickler.rs:147
↓ 3 callers
Method
tokenize_to_ids
(&self, s: S)
src/tokenizer.rs:164
↓ 3 callers
Method
top_k
(self, top_k: usize)
src/token_sampler.rs:57
↓ 3 callers
Method
top_p
(self, top_p: f32)
src/token_sampler.rs:53
↓ 3 callers
Function
unpickle
(bytes: &[u8])
src/unpickler.rs:317
↓ 3 callers
Method
unpickled
(&self)
src/data_source.rs:90
↓ 3 callers
Method
with_opencl_data_mut
(&mut self, f: F)
src/tensor.rs:796
↓ 2 callers
Function
compute_capacity_cols
(dtype: TensorDType, cols: i64)
src/tensor.rs:192
↓ 2 callers
Method
copy_inplace
Copies all values from another tensor
src/tensor_opencl_support.rs:215
↓ 2 callers
Function
f32x8_singleton
(value: f32)
src/simd_support.rs:66
↓ 2 callers
Function
f32x8_to_i16x8_as_f16
(a: F32x8)
src/simd_support.rs:50
↓ 2 callers
Method
flush
(&self)
src/tensor_opencl_support.rs:130
↓ 2 callers
Method
force_f16
(mut self)
src/transformer.rs:105
↓ 2 callers
Method
forward
( &self, tokens: &[TokenId], start_pos: usize, caches: &mut TransformerCaches,
src/transformer.rs:343
↓ 2 callers
Method
get_str
(&self)
src/unpickler.rs:117
↓ 2 callers
Method
hadamard_product_cpu
(&self, other: &Tensor)
src/tensor.rs:722
↓ 2 callers
Method
huggingface_llama_model_antitranspose
This is a special operation that undoes a transpose operation done by transformers/models/llama/convert_llama_weights_to_hf.py transpose operation whi
src/tensor.rs:841
↓ 2 callers
Method
into_dtype
(self, dtype: TensorDType)
src/tensor.rs:1221
↓ 2 callers
Method
matrix_vector_mul
Computes matrix multiplication assuming that the number of rows on the latter matrix is 1. AxB @ Cx1 = Ax1
src/tensor.rs:1673
↓ 2 callers
Method
process_waiting_for_data
(&self)
src/tensor.rs:2160
↓ 2 callers
Method
put
(&mut self, tokens: Vec<TokenId>, caches: TransformerCaches, prev_pos: usize)
src/rllama_main.rs:614
↓ 2 callers
Function
remove_first_directory
(path: P)
src/huggingface_loader.rs:125
↓ 2 callers
Method
sample
( &self, logits: &Tensor, _tokenizer: &Tokenizer, existing_tokens: &[TokenId],
src/token_sampler.rs:83
↓ 2 callers
Method
scalar_multiply_f32
(&self, scalar: f32)
src/tensor.rs:607
↓ 2 callers
Method
silu_cpu
(&self)
src/tensor.rs:822
↓ 2 callers
Method
sqrt
(&self)
src/tensor.rs:549
↓ 2 callers
Function
store_f32x8
(ptr: *mut F32x8, a: F32x8)
src/simd_support.rs:31
↓ 2 callers
Function
store_i16x8
(ptr: *mut I16x8, a: I16x8)
src/simd_support.rs:21
↓ 2 callers
Function
test_with_type
(dtype: TensorDType)
src/tensor.rs:2641
↓ 2 callers
Method
transpose_cpu
(&self)
src/tensor.rs:942
↓ 2 callers
Method
true_clone
Cloning AttentionCache normally just makes new references to the same cache. This creates a true clone with copied tensors.
src/transformer.rs:164
↓ 2 callers
Method
value
(&self)
src/protomodels/sentencepiece_model.rs:1595
↓ 2 callers
Method
vector_matrix_mul
(&self, other: &Tensor)
src/tensor.rs:1923
↓ 2 callers
Method
wait_until_ready
(&mut self)
src/tensor_opencl_support.rs:177
↓ 1 callers
Method
acquire
(&self)
src/semaphore.rs:30
↓ 1 callers
Method
add_scalar
(&self, scalar: f32)
src/tensor.rs:595
↓ 1 callers
Function
apply_rotary_emb
( xq: &Tensor, xk: &Tensor, freqs_cis: &FreqsCis, seq_idx: usize, start_pos: usize, )
src/transformer.rs:823
↓ 1 callers
Function
command_line_inference
( cli: Cli, tr: Arc<Transformer>, tok: Arc<Tokenizer>, prompt: String, interactive_stop: V
src/rllama_main.rs:714
↓ 1 callers
Function
compute_capacity_cols_f16
(cols: i64)
src/tensor.rs:216
↓ 1 callers
Function
compute_capacity_cols_f32
(cols: i64)
src/tensor.rs:208
↓ 1 callers
Function
compute_capacity_cols_k4
(cols: i64)
src/tensor.rs:200
next →
1–100 of 465, ranked by callers