Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/city96/ComfyUI-GGUF
/ functions
Functions
99 in github.com/city96/ComfyUI-GGUF
⨍
Functions
99
◇
Types & classes
27
↓ 52 callers
Method
to
(self, *args, **kwargs)
ops.py:57
↓ 12 callers
Function
split_block_dims
(blocks, *args)
dequant.py:55
↓ 8 callers
Function
dequantize_tensor
(tensor, dtype=None, dequant_dtype=None)
dequant.py:15
↓ 8 callers
Function
get_field
(reader, field_name, field_type)
loader.py:26
↓ 8 callers
Function
get_list_field
(reader, field_name, field_type)
loader.py:40
↓ 6 callers
Method
get_filename_list
(s)
nodes.py:217
↓ 6 callers
Function
is_quantized
(tensor)
dequant.py:12
↓ 5 callers
Method
cast_bias_weight
(s, input=None, dtype=None, device=None, bias_dtype=None)
ops.py:194
↓ 4 callers
Method
get_weight
(self, tensor, dtype)
ops.py:166
↓ 4 callers
Method
load_data
(self, ckpt_paths)
nodes.py:223
↓ 4 callers
Method
load_patcher
(self, clip_paths, clip_type, clip_data)
nodes.py:235
↓ 4 callers
Function
sd_map_replace
(raw_sd, key_map)
loader.py:222
↓ 3 callers
Function
gguf_sd_loader
Read state dict as fake tensors
loader.py:70
↓ 3 callers
Method
is_ggml_quantized
(self, *, weight=None, bias=None)
ops.py:103
↓ 2 callers
Method
INPUT_TYPES
(s)
nodes.py:137
↓ 2 callers
Function
add_extra_key
(writer, key, data)
tools/fix_5d_tensors.py:59
↓ 2 callers
Function
chained_hasattr
(obj, chained_attr)
ops.py:11
↓ 2 callers
Method
clone
(self, *args, **kwargs)
nodes.py:122
↓ 2 callers
Function
detect_arch
(state_dict)
tools/convert.py:163
↓ 2 callers
Function
get_scale_min
(scales)
dequant.py:129
↓ 2 callers
Method
ggml_load_from_state_dict
(self, state_dict, prefix, local_metadata, strict, missing_keys, unexpected_keys, error_msgs)
ops.py:120
↓ 2 callers
Function
is_torch_compatible
(tensor)
dequant.py:9
↓ 2 callers
Function
move_patch_to_device
(item, device)
ops.py:273
↓ 2 callers
Function
to_uint32
(x)
dequant.py:46
↓ 2 callers
Function
update_folder_names_and_paths
(key, targets=[])
nodes.py:20
↓ 1 callers
Method
__init__
(self, *args, tensor_type, tensor_shape, patches=[], **kwargs)
ops.py:48
↓ 1 callers
Function
convert_file
(path, dst_path=None, interact=True, overwrite=False)
tools/convert.py:311
↓ 1 callers
Function
convert_to_linux_format
(file_path)
tools/fix_lines_ending.py:14
↓ 1 callers
Function
dequantize
Dequantize tensor back to usable shape/dtype
dequant.py:30
↓ 1 callers
Method
forward_comfy_cast_weights
(self, input, *args, **kwargs)
ops.py:213
↓ 1 callers
Method
forward_ggml_cast_weights
(self, input)
ops.py:224
↓ 1 callers
Function
gemma3_norm_corrections
(sd)
loader.py:242
↓ 1 callers
Function
get_arch_str
(reader)
tools/fix_5d_tensors.py:24
↓ 1 callers
Function
get_args
()
tools/fix_5d_tensors.py:9
↓ 1 callers
Function
get_file_type
(reader)
tools/fix_5d_tensors.py:28
↓ 1 callers
Function
get_gguf_metadata
Extract all simple metadata fields like safetensors
loader.py:51
↓ 1 callers
Function
get_orig_shape
(reader, tensor_name)
loader.py:16
↓ 1 callers
Function
get_torch_compiler_disable_decorator
()
ops.py:21
↓ 1 callers
Method
ggml_save_to_state_dict
(self, destination, prefix, keep_vars)
ops.py:145
↓ 1 callers
Function
gguf_clip_loader
(path)
loader.py:470
↓ 1 callers
Function
gguf_gemma3_tokenizer_loader
(path)
loader.py:428
↓ 1 callers
Function
gguf_mmproj_loader
(path)
loader.py:271
↓ 1 callers
Function
gguf_tekken_tokenizer_loader
(path, temb_shape)
loader.py:385
↓ 1 callers
Function
gguf_tokenizer_loader
(path, temb_shape)
loader.py:337
↓ 1 callers
Method
handle_nd_tensor
(self, key, data)
tools/convert.py:84
↓ 1 callers
Function
handle_tensors
(writer, state_dict, model_arch)
tools/convert.py:227
↓ 1 callers
Function
has_unix_line_endings
(file_path)
tools/fix_lines_ending.py:5
↓ 1 callers
Function
is_model_arch
(model, state_dict)
tools/convert.py:151
↓ 1 callers
Function
llama_permute
(raw_sd, n_head, n_head_kv)
loader.py:230
↓ 1 callers
Method
load
(self, *args, force_patch_weights=False, **kwargs)
nodes.py:92
↓ 1 callers
Function
load_state_dict
(path)
tools/convert.py:213
↓ 1 callers
Function
parse_args
()
tools/convert.py:172
↓ 1 callers
Function
read_tensors
(path)
tools/read_tensors.py:6
↓ 1 callers
Function
strip_prefix
(state_dict)
tools/convert.py:183
↓ 1 callers
Function
strip_quant_suffix
(name)
loader.py:264
↓ 1 callers
Function
to_uint16
(x)
dequant.py:51
Method
INPUT_TYPES
(s)
nodes.py:188
Method
INPUT_TYPES
(s)
nodes.py:202
Method
INPUT_TYPES
(s)
nodes.py:255
Method
INPUT_TYPES
(s)
nodes.py:277
Method
INPUT_TYPES
(s)
nodes.py:299
Method
__init__
(self, in_features, out_features, bias=True, device=None, dtype=None)
ops.py:232
Method
__new__
(cls, *args, tensor_type, tensor_shape, patches=[], **kwargs)
ops.py:54
Method
_load_from_state_dict
(self, state_dict, prefix, *args, **kwargs)
ops.py:110
Method
_save_to_state_dict
(self, *args, **kwargs)
ops.py:140
Method
clone
(self, *args, **kwargs)
ops.py:64
Method
copy_
(self, *args, **kwargs)
ops.py:70
Function
dequantize_blocks_BF16
(blocks, block_size, type_size, dtype=None)
dequant.py:61
Function
dequantize_blocks_IQ4_NL
(blocks, block_size, type_size, dtype=None)
dequant.py:243
Function
dequantize_blocks_IQ4_XS
(blocks, block_size, type_size, dtype=None)
dequant.py:258
Function
dequantize_blocks_Q2_K
(blocks, block_size, type_size, dtype=None)
dequant.py:221
Function
dequantize_blocks_Q3_K
(blocks, block_size, type_size, dtype=None)
dequant.py:197
Function
dequantize_blocks_Q4_0
(blocks, block_size, type_size, dtype=None)
dequant.py:115
Function
dequantize_blocks_Q4_1
(blocks, block_size, type_size, dtype=None)
dequant.py:103
Function
dequantize_blocks_Q4_K
(blocks, block_size, type_size, dtype=None)
dequant.py:180
Function
dequantize_blocks_Q5_0
(blocks, block_size, type_size, dtype=None)
dequant.py:87
Function
dequantize_blocks_Q5_1
(blocks, block_size, type_size, dtype=None)
dequant.py:71
Function
dequantize_blocks_Q5_K
(blocks, block_size, type_size, dtype=None)
dequant.py:159
Function
dequantize_blocks_Q6_K
(blocks, block_size, type_size, dtype=None)
dequant.py:141
Function
dequantize_blocks_Q8_0
(blocks, block_size, type_size, dtype=None)
dequant.py:65
Method
detach
(self, *args, **kwargs)
ops.py:67
Function
dummy_decorator
(*args, **kwargs)
ops.py:22
Method
forward_ggml_cast_weights
(self, input)
ops.py:242
Method
forward_ggml_cast_weights
(self, input)
ops.py:247
Method
forward_ggml_cast_weights
(self, input, out_dtype=None)
ops.py:252
Method
forward_ggml_cast_weights
(self, input)
ops.py:262
Method
forward_ggml_cast_weights
(self, input)
ops.py:269
Method
handle_nd_tensor
(self, key, data)
tools/convert.py:23
Method
load_clip
(self, clip_name, type="stable_diffusion")
nodes.py:248
Method
load_clip
(self, clip_name1, clip_name2, type)
nodes.py:268
Method
load_clip
(self, clip_name1, clip_name2, clip_name3, type="sd3")
nodes.py:289
Method
load_clip
(self, clip_name1, clip_name2, clip_name3, clip_name4, type="stable_diffusion")
nodes.py:312
Method
load_unet
(self, unet_name, dequant_dtype=None, patch_dtype=None, patch_on_device=None)
nodes.py:150
Method
new_empty
(self, size, *args, **kwargs)
ops.py:77
Function
noop
(x)
ops.py:23
Method
patch_weight_to_device
(self, key, device_to=None, inplace_update=False)
nodes.py:38
Method
pin_weight_to_device
(self, key)
nodes.py:81
Method
shape
(self)
ops.py:88
Method
unpatch_model
(self, device_to=None, unpatch_weights=True)
nodes.py:69