Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/EricLBuehler/candle-lora
/ functions
Functions
289 in github.com/EricLBuehler/candle-lora
⨍
Functions
289
◇
Types & classes
175
↓ 1 callers
Method
forward
(&self, input: &Tensor)
candle-lora/src/loraconv2d.rs:175
↓ 1 callers
Function
from_npz_tensors
Load tensors into a VarBuilder backed by a VarMap using NpzTensors. Set `silent` to not show a progress bar.
candle-lora-transformers/src/varbuilder_utils.rs:51
↓ 1 callers
Function
from_pth_tensors
Load tensors into a VarBuilder backed by a VarMap using PthTensors. Set `silent` to not show a progress bar.
candle-lora-transformers/src/varbuilder_utils.rs:88
↓ 1 callers
Function
get_mask
(size: usize, device: &Device)
candle-lora-transformers/src/t5.rs:27
↓ 1 callers
Function
get_mask
(size: usize, device: &Device)
candle-lora-transformers/src/mpt.rs:319
↓ 1 callers
Method
hidden_size
(&self)
candle-lora/src/frozenembed.rs:42
↓ 1 callers
Method
insert_new
(&mut self, new: NewLayers<ModelLayers>)
candle-lora-examples/examples/linear_old.rs:26
↓ 1 callers
Method
insert_new
(&mut self, new: NewLayers<ModelLayers>)
candle-lora/tests/conv1d.rs:31
↓ 1 callers
Method
insert_new
(&mut self, new: NewLayers<ModelLayers>)
candle-lora/tests/conv2d_merged.rs:31
↓ 1 callers
Method
insert_new
(&mut self, new: NewLayers<ModelLayers>)
candle-lora/tests/embed.rs:31
↓ 1 callers
Method
insert_new
(&mut self, new: NewLayers<ModelLayers>)
candle-lora/tests/linear.rs:31
↓ 1 callers
Method
insert_new
(&mut self, new: NewLayers<ModelLayers>)
candle-lora/tests/conv1d_merged.rs:31
↓ 1 callers
Method
insert_new
(&mut self, new: NewLayers<ModelLayers>)
candle-lora/tests/conv2d.rs:31
↓ 1 callers
Method
insert_new
(&mut self, new: NewLayers<ModelLayers>)
candle-lora/tests/linear_merged.rs:31
↓ 1 callers
Method
insert_new
(&mut self, new: NewLayers<ModelLayers>)
candle-lora/tests/embed_merged.rs:31
↓ 1 callers
Method
interpolate_pos_encoding
(&self, xs: &Tensor, w: usize, h: usize)
candle-lora-transformers/src/dinov2.rs:460
↓ 1 callers
Method
into_config
(self, use_flash_attn: bool)
candle-lora-transformers/src/llama.rs:34
↓ 1 callers
Method
is_causal
(&self)
candle-lora-transformers/src/mpt.rs:40
↓ 1 callers
Function
load_image
Loads an image from disk using the image crate, this returns a tensor with shape (3, 384, 384). OpenAI normalization is applied.
candle-lora-transformers/examples/blip.rs:42
↓ 1 callers
Function
make_causal_mask
(t: usize, device: &Device)
candle-lora-transformers/src/bigcode.rs:124
↓ 1 callers
Function
make_causal_mask
(t: usize)
candle-lora-transformers/src/falcon.rs:515
↓ 1 callers
Method
mask
(&self, t: usize)
candle-lora-transformers/src/llama.rs:164
↓ 1 callers
Function
masked_fill
(on_false: &Tensor, mask: &Tensor, on_true: f32)
candle-lora-transformers/src/llama.rs:398
↓ 1 callers
Function
masked_fill
(on_false: &Tensor, mask: &Tensor, on_true: f32)
candle-lora-transformers/src/falcon.rs:202
↓ 1 callers
Function
masked_fill
(on_false: &Tensor, mask: &Tensor, on_true: f32)
candle-lora-transformers/src/t5.rs:34
↓ 1 callers
Function
masked_fill
(on_false: &Tensor, mask: &Tensor, on_true: f32)
candle-lora-transformers/src/mpt.rs:326
↓ 1 callers
Function
normalize_l2
(v: &Tensor)
candle-lora-transformers/examples/bert.rs:200
↓ 1 callers
Function
normalize_l2
(v: &Tensor)
candle-lora-transformers/examples/t5.rs:305
↓ 1 callers
Method
num_kv_groups
(&self)
candle-lora-transformers/src/stable_lm.rs:54
↓ 1 callers
Function
prepare_attn_mask
(b_sz: usize, seq_len: usize)
candle-lora-transformers/src/falcon.rs:523
↓ 1 callers
Method
prepare_decoder_attention_mask
( &self, b_size: usize, tgt_len: usize, seqlen_offset: usize, )
candle-lora-transformers/src/stable_lm.rs:448
↓ 1 callers
Method
prepare_decoder_attention_mask
( &self, b_size: usize, tgt_len: usize, seqlen_offset: usize, )
candle-lora-transformers/src/mistral.rs:442
↓ 1 callers
Method
prepare_tokens_with_mask
(&self, xs: &Tensor)
candle-lora-transformers/src/dinov2.rs:486
↓ 1 callers
Function
resnet101
( num_classes: usize, vb: VarBuilder, merge: bool, lora_config: LoraConfig, )
candle-lora-transformers/src/resnet.rs:418
↓ 1 callers
Function
resnet152
( num_classes: usize, vb: VarBuilder, merge: bool, lora_config: LoraConfig, )
candle-lora-transformers/src/resnet.rs:435
↓ 1 callers
Function
resnet18
Creates a ResNet-18 model.
candle-lora-transformers/src/resnet.rs:214
↓ 1 callers
Function
resnet34
Creates a ResNet-34 model.
candle-lora-transformers/src/resnet.rs:232
↓ 1 callers
Function
resnet50
( num_classes: usize, vb: VarBuilder, merge: bool, lora_config: LoraConfig, )
candle-lora-transformers/src/resnet.rs:401
↓ 1 callers
Method
rotary
(&self)
candle-lora-transformers/src/falcon.rs:132
↓ 1 callers
Method
run
(&mut self, prompt: &str, sample_len: usize)
candle-lora-transformers/examples/stable_lm.rs:54
↓ 1 callers
Method
run
(&mut self, prompt: &str, sample_len: usize)
candle-lora-transformers/examples/bigcode.rs:48
↓ 1 callers
Method
run
(&mut self, prompt: &str, sample_len: usize)
candle-lora-transformers/examples/falcon.rs:60
↓ 1 callers
Method
run
(&mut self, prompt: &str, sample_len: usize)
candle-lora-transformers/examples/mpt.rs:54
↓ 1 callers
Method
run
(&mut self, prompt: &str, sample_len: usize)
candle-lora-transformers/examples/mistral.rs:54
↓ 1 callers
Method
split_heads
(&self, fused_qkv: &Tensor)
candle-lora-transformers/src/falcon.rs:334
↓ 1 callers
Method
text_decoder
(&mut self)
candle-lora-transformers/src/blip.rs:360
↓ 1 callers
Method
validate
(&self)
candle-lora-transformers/src/falcon.rs:90
↓ 1 callers
Method
vision_model
(&self)
candle-lora-transformers/src/blip.rs:356
↓ 1 callers
Function
vit_small
( vb: VarBuilder, merge: bool, lora_config: LoraConfig, )
candle-lora-transformers/src/dinov2.rs:508
↓ 1 callers
Method
weight
(&self)
candle-lora/src/lib.rs:232
Method
_all_mini_lm_l6_v2
()
candle-lora-transformers/src/bert.rs:188
Function
auto_lora_convert
(tokens: TokenStream1)
candle-lora-macro/src/lib.rs:146
Method
bias
(&self)
candle-lora-transformers/src/llama.rs:114
Method
bias
(&self)
candle-lora/src/lib.rs:235
Method
clear_kv_cache
(&mut self)
candle-lora-transformers/src/t5.rs:511
Method
config
(&self)
candle-lora-transformers/src/bigcode.rs:444
Method
config
(&self)
candle-lora/src/lib.rs:257
Method
config_7b_v0_1
(use_flash_attn: bool)
candle-lora-transformers/src/mistral.rs:28
Method
config_7b_v1
(use_flash_attn: bool)
candle-lora-transformers/src/llama.rs:62
Method
config_7b_v2
(use_flash_attn: bool)
candle-lora-transformers/src/llama.rs:76
Function
conv1d
()
candle-lora/tests/conv1d.rs:7
Function
conv1d
()
candle-lora/tests/conv1d_merged.rs:7
Function
conv2d
()
candle-lora/tests/conv2d_merged.rs:7
Function
conv2d
()
candle-lora/tests/conv2d.rs:7
Method
convert_model
Convert the selected layers into their LoRA counterparts.
candle-lora/src/lib.rs:25
Method
default
()
candle-lora-transformers/src/bert.rs:165
Method
default
()
candle-lora-transformers/src/falcon.rs:66
Method
default
()
candle-lora-transformers/src/t5.rs:70
Method
default
()
candle-lora/src/lib.rs:140
Function
default_is_decoder
()
candle-lora-transformers/src/t5.rs:15
Function
default_relative_attention_max_distance
()
candle-lora-transformers/src/t5.rs:11
Function
default_rope
()
candle-lora-transformers/src/llama.rs:29
Function
default_tie_word_embeddings
()
candle-lora-transformers/src/t5.rs:23
Function
default_use_cache
()
candle-lora-transformers/src/t5.rs:19
Method
deref
(&self)
candle-lora-transformers/src/bert.rs:273
Method
deref
(&self)
candle-lora-transformers/src/dinov2.rs:33
Method
deref
(&self)
candle-lora-transformers/src/bigcode.rs:21
Method
deref
(&self)
candle-lora-transformers/src/falcon.rs:224
Function
embed
()
candle-lora/tests/embed.rs:7
Function
embed
()
candle-lora/tests/embed_merged.rs:7
Method
falcon7b
https://huggingface.co/tiiuae/falcon-7b/blob/main/config.json
candle-lora-transformers/src/falcon.rs:104
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
candle-lora-transformers/src/with_tracing.rs:249
Method
fmt
(&self, f: &mut std::fmt::Formatter)
candle-lora-transformers/src/unsync_func.rs:14
Method
forward
(&self, x: &Tensor)
candle-lora-transformers/src/llama.rs:101
Method
forward
(&self, xs: &Tensor)
candle-lora-transformers/src/blip.rs:100
Method
forward
(&self, xs: &Tensor)
candle-lora-transformers/src/bert.rs:33
Method
forward
(&self, xs: &candle_core::Tensor)
candle-lora-transformers/src/resnet.rs:21
Method
forward
(&self, xs: &Tensor)
candle-lora-transformers/src/stable_lm.rs:154
Method
forward
(&self, xs: &Tensor)
candle-lora-transformers/src/with_tracing.rs:64
Method
forward
(&mut self, hidden_states: &Tensor, attention_mask: &Tensor)
candle-lora-transformers/src/bigcode.rs:316
Method
forward
( &mut self, query: &Tensor, key: &Tensor, past_kv_len: usize, )
candle-lora-transformers/src/falcon.rs:186
Method
forward
(&self, xs: &Tensor)
candle-lora-transformers/src/unsync_func.rs:27
Method
forward
(&self, xs: &Tensor, past_kv_len: usize)
candle-lora-transformers/src/blip_text.rs:57
Method
forward
(&mut self, xs: &Tensor, mask: Option<&Tensor>)
candle-lora-transformers/src/mpt.rs:93
Method
forward
(&self, x: &Tensor)
candle-lora-transformers/src/mistral.rs:61
Method
forward
(&self, input: &Tensor)
candle-lora/src/loraembed.rs:128
Method
forward
(&self, x: &Tensor)
candle-lora/src/frozenlinear.rs:27
Method
forward
(&self, indexes: &Tensor)
candle-lora/src/frozenembed.rs:27
Method
forward
(&self, input: &Tensor)
candle-lora/src/loralinear.rs:123
Method
forward
(&self, input: &Tensor)
candle-lora/src/loraconv1d.rs:135
← previous
next →
101–200 of 289, ranked by callers