Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Cornell-RelaxML/qtip
/ functions
Functions
265 in github.com/Cornell-RelaxML/qtip
⨍
Functions
265
◇
Types & classes
40
↳
Endpoints
1
Method
get_max_length
(self)
model/cache_utils.py:1343
Method
get_max_length
(self)
model/cache_utils.py:1694
Method
get_max_length
Returns the maximum sequence length of the cached states.
model/cache_utils.py:2027
Method
get_output_embeddings
(self)
model/llama.py:1369
Method
get_seq_length
Returns the sequence length of the cached states. A layer index can be optionally passed.
model/cache_utils.py:723
Method
get_seq_length
Returns the sequence length of the cached states that were seen by the model.
model/cache_utils.py:1195
Method
get_seq_length
Returns the sequence length of the cached states. A layer index can be optionally passed.
model/cache_utils.py:1442
Method
get_seq_length
(self, layer_idx: Optional[int] = 0)
model/cache_utils.py:1699
Method
get_seq_length
Returns the sequence length of the cached states that were seen by the model.
model/cache_utils.py:2021
Function
get_test_tokens
(name, seed=0, seqlen=2048, model='')
lib/utils/gptq_data_utils.py:195
Method
get_usable_length
Given the sequence length of the new inputs, returns the usable length of the cache.
model/cache_utils.py:71
Function
gpuAssert
qtip-kernels/src/inference.h:12
Function
infer
(args, end_dev, n_layers, in_q, out_q)
lib/algo/finetune.py:351
Function
llama_arg_fn
(output, args, kwargs)
quantize_llama/finetune_e2e_llama.py:50
Function
llama_arg_fn
(output, args, kwargs)
eval/interactive_gen.py:88
Method
prepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_e
model/llama.py:1496
Function
quantize_finetune_decoder_layer
(mixed_layer, quant_order, idx, cb, args, device, pre_orig_emb, orig_emb)
lib/algo/finetune.py:90
Function
quantize_llama_decoder
(layer, idx, cb, args, device, pre_orig_emb, orig_emb, model_config, skip_list)
quantize_llama/quantize_finetune_llama.py:67
Function
register_detach_hook
(module)
lib/utils/data_utils.py:173
Function
register_input_H_hook
(module, save_pfx, device)
lib/utils/data_utils.py:28
Function
register_input_from_out_H_hook
(module, H_out)
lib/utils/data_utils.py:133
Function
register_output_H_hook
(module, *args, **kwargs)
lib/utils/data_utils.py:53
Function
register_output_from_in_H_hook
(module, H_in)
lib/utils/data_utils.py:92
Function
regularize_H
(H, sigma_reg)
lib/utils/math_utils.py:44
Method
reorder_cache
Saves the beam indices and reorders the cache when the tensor is back to its device.
model/cache_utils.py:597
Method
reorder_cache
Reorders the cache for beam search, given the selected beam indices.
model/cache_utils.py:1466
Method
reset
(self)
lib/utils/graph_wrapper.py:49
Method
reset
Resets the cache values while preserving the objects
model/cache_utils.py:1206
Method
reset
(self)
model/cache_utils.py:1347
Method
reset
(self)
model/cache_utils.py:1451
Method
reset
Resets the cache values while preserving the objects
model/cache_utils.py:1710
Method
reset
Resets the cache values while preserving the objects.
model/cache_utils.py:2032
Function
sample_falcon_refinedweb
(tokenizer, size=128, ctx_size=2048, nproc=1)
lib/utils/data_utils.py:255
Function
sample_rp1t
(tokenizer, size=128, ctx_size=2048, nproc=1)
lib/utils/data_utils.py:196
Function
sample_rp1t_concat
(tokenizer, size=128, ctx_size=2048, nproc=1)
lib/utils/data_utils.py:235
Function
sanity_check
(L, S, R, V)
qtip-kernels/test_decompress_matvec.py:169
Function
save_linear
(module, path)
lib/utils/finetune.py:5
Method
seen_tokens
(self)
model/cache_utils.py:93
Method
seen_tokens
(self)
model/cache_utils.py:2046
Method
set_decoder
(self, decoder)
model/llama.py:1375
Method
set_input_embeddings
(self, value)
model/llama.py:1148
Method
set_input_embeddings
(self, value)
model/llama.py:1366
Method
set_input_embeddings
(self, value)
model/llama.py:1606
Method
set_input_embeddings
(self, value)
model/llama.py:1730
Method
set_input_embeddings
(self, value)
model/llama.py:1838
Method
set_output_embeddings
(self, new_embeddings)
model/llama.py:1372
Function
set_seed
(seed)
lib/utils/gptq_data_utils.py:9
Function
split_data
(X, Y, args)
lib/utils/data_utils.py:334
Function
time_kernel
(kernel)
qtip-kernels/test_decompress_matvec.py:42
Method
to_json_file
Save this instance to a JSON file. Args: json_file_path (`str` or `os.PathLike`): Path to the JSON file
model/cache_utils.py:134
Method
to_legacy_cache
Converts the `EncoderDecoderCache` instance into its equivalent in the legacy cache format.
model/cache_utils.py:1411
Function
unpack_quip
(module, saved_layer)
lib/utils/data_utils.py:281
Method
update
Updates attributes of this class instance with attributes from `kwargs` if they match existing attributes, returning all the unused k
model/cache_utils.py:178
Method
update
Updates the cache with the new `key_states` and `value_states` for the layer `layer_idx`. Parameters: key_states (`torch.
model/cache_utils.py:604
Method
update
( self, key_states: torch.Tensor, value_states: torch.Tensor, layer_idx: int,
model/cache_utils.py:680
Method
update
Updates the cache with the new `key_states` and `value_states` for the layer `layer_idx`. Parameters: key_states (`torch
model/cache_utils.py:953
Method
update
Updates the cache with the new `key_states` and `value_states` for the layer `layer_idx`. It is VERY important to index using a tenso
model/cache_utils.py:1147
Method
update
( self, key_states: torch.Tensor, value_states: torch.Tensor, layer_idx: int,
model/cache_utils.py:1296
Method
update
( self, key_states: torch.Tensor, value_states: torch.Tensor, layer_idx: int,
model/cache_utils.py:1668
Method
update
Updates the cache with the new `key_states` and `value_states` for the layer `layer_idx`. It is VERY important to index using a tenso
model/cache_utils.py:1938
Method
update_conv_state
( self, layer_idx: int, new_conv_state: torch.Tensor, cache_position: torch.LongTensor )
model/cache_utils.py:1805
Method
update_ssm_state
(self, layer_idx: int, new_ssm_state: torch.Tensor)
model/cache_utils.py:1817
Method
validate
Validates if the arguments passed are correct
model/cache_utils.py:247
Method
validate
Validates if the arguments passed are correct
model/cache_utils.py:313
Function
wrap_tokenizer
(tokenizer, x, ctx_size, truncate=True)
lib/utils/data_utils.py:188
← previous
201–265 of 265, ranked by callers