MCPcopy Create free account

hub / github.com/Standard-Intelligence/hertz-dev / functions

Functions173 in github.com/Standard-Intelligence/hertz-dev

↓ 25 callersFunctionexists
(v)
utils/blocks.py:66
↓ 13 callersFunctionprint_colored
(message, color='reset', bold=False, **kwargs)
utils/interp.py:11
↓ 9 callersMethod__init__
(self, c: Config)
tokenizer.py:431
↓ 9 callersMethod__init__
(self, dim: int, n_head: int, shape_rotator: ShapeRotator, k
transformer.py:169
↓ 7 callersMethodoutput
float tensor (B, L, D) -> Tuple of locs, scales, and weights
ioblocks.py:45
↓ 6 callersFunctiondefault
(*args: Optional[defaultT])
utils/blocks.py:80
↓ 6 callersMethodinput
Pre-sampled latents T.Tensor (B, L, Z) -> float tensor (B, L, D)
ioblocks.py:40
↓ 5 callersMethoddecode
(self, latent)
tokenizer.py:505
↓ 5 callersFunctionload_ckpt
(load_from_location, expected_hash=None)
utils/dist.py:78
↓ 4 callersFunctionConv1d1x1
(in_channels, out_channels, bias=True)
tokenizer.py:17
↓ 4 callersMethoddata_from_latent
(self, latent)
tokenizer.py:520
↓ 4 callersMethodlatent_from_data
(self, data, get_parameters=False)
tokenizer.py:509
↓ 4 callersFunctionprint0
(*args, **kwargs)
utils/dist.py:38
↓ 3 callersFunctioncount_parameters
(model)
utils/interp.py:32
↓ 3 callersFunctionrank0
()
utils/dist.py:13
↓ 3 callersMethodtemp_sample
(self, orig_pdist, temp)
ioblocks.py:67
↓ 3 callersMethoduntokenize
(self, token_data)
model.py:127
↓ 2 callersMethod__init__
(self, c: Config)
ioblocks.py:153
↓ 2 callersMethod__init__
(self, c: Config)
model.py:214
↓ 2 callersMethod_indices_to_codes
(self, indices)
ioblocks.py:230
↓ 2 callersMethod_resample
(self, audio_data: np.ndarray, resampler: torchaudio.transforms.Resample)
inference_client_webrtc.py:51
↓ 2 callersFunctionapply_rotary_pos_emb
(x, cos, sin, offset: int = 0)
transformer.py:36
↓ 2 callersMethodapply_weight_norm
(self)
tokenizer.py:401
↓ 2 callersMethodencode
(self, data)
tokenizer.py:502
↓ 2 callersFunctionestimate_size
(model)
utils/interp.py:45
↓ 2 callersMethodforward
(self, data)
model.py:305
↓ 2 callersMethodindices_to_codes
Inverse of `codes_to_indices`.
ioblocks.py:247
↓ 2 callersMethodinference
(self, x)
tokenizer.py:294
↓ 2 callersMethodinitialize_state
(self, prompt_path)
inference_server.py:61
↓ 2 callersFunctionmaybe
(fn)
utils/blocks.py:86
↓ 2 callersMethodnext_audio_from_audio
(self, audio_data: T.Tensor, temps=(0.8, (0.5, 0.1)))
model.py:321
↓ 2 callersMethodnext_latent
(self, model_input: T.Tensor, temps=(0.8, (0.5, 0.1)))
model.py:330
↓ 2 callersFunctionprint0_colored
(*args, **kwargs)
utils/interp.py:27
↓ 2 callersMethodquantize
(self, x)
model.py:115
↓ 2 callersMethodreparam
(self, mu, logvar)
tokenizer.py:441
↓ 2 callersMethodreset_parameters
(self)
tokenizer.py:393
↓ 2 callersMethodset_temperature_and_echo
Send temperature settings to server
inference_client_webrtc.py:37
↓ 2 callersMethodto_channels
(self, audio_data: np.ndarray, channels: int)
inference_client_webrtc.py:77
↓ 1 callersMethod_attend
(self, q: Tensor, k: Tensor, v: Tensor, kv_cache: Optional[Tensor] = None,)
transformer.py:203
↓ 1 callersMethod_project
(self, x)
transformer.py:214
↓ 1 callersMethod_scale_and_shift
(self, zhat_normalized)
ioblocks.py:222
↓ 1 callersMethod_scale_and_shift_inverse
(self, zhat)
ioblocks.py:226
↓ 1 callersMethod_sdpa
(self, q: Tensor, k: Tensor, v: Tensor)
transformer.py:191
↓ 1 callersMethod_square_plus
(self, x)
ioblocks.py:37
↓ 1 callersMethodbound
Bound `z`, an array of shape (..., d).
ioblocks.py:209
↓ 1 callersMethodcleanup
(self)
inference_server.py:123
↓ 1 callersMethodcodes_to_indices
Converts a `code` to an index in the codebook.
ioblocks.py:235
↓ 1 callersMethodcompute_freqs_cis
(self, device, max_seq_len=None)
transformer.py:64
↓ 1 callersMethoddeinit_cache
(self)
transformer.py:375
↓ 1 callersMethoddeinit_cache
(self)
model.py:297
↓ 1 callersMethoddownsample
(self, audio_data: np.ndarray)
inference_client_webrtc.py:60
↓ 1 callersMethodfrom_s16_format
(self, audio_data: np.ndarray, channels: int)
inference_client_webrtc.py:63
↓ 1 callersFunctionget_cache_len
cache: (batch, seq_len, 2, kv_heads, head_dim)
transformer.py:19
↓ 1 callersFunctionget_code_utilization
(codes, codebook_size, get_global=False)
ioblocks.py:109
↓ 1 callersFunctionget_hertz_dev_config
(is_split=True, use_pure_audio_ablation=False)
model.py:375
↓ 1 callersFunctionget_layer_types
(model)
utils/interp.py:63
↓ 1 callersMethodindices_to_level_indices
Converts indices to indices at each level, perhaps needed for a transformer with factorized embeddings
ioblocks.py:241
↓ 1 callersMethodinit_cache
(self, bsize, device, dtype, length:int=None)
transformer.py:368
↓ 1 callersMethodinit_cache
(self, bsize, device, dtype, length:int=None)
model.py:291
↓ 1 callersMethodinitialize_prompt_buffer
(self)
inference_server.py:87
↓ 1 callersFunctionisnt
(v)
utils/blocks.py:69
↓ 1 callersMethodkl_divergence
(self, mu, logvar)
tokenizer.py:446
↓ 1 callersFunctionlocal0
()
utils/dist.py:20
↓ 1 callersFunctionmake_tokenizer
(device='cuda')
tokenizer.py:542
↓ 1 callersFunctionpack_one
(t, pattern)
ioblocks.py:97
↓ 1 callersFunctionprint0once
(*args, **kwargs)
utils/dist.py:52
↓ 1 callersFunctionprintonce
(*args, id=None, **kwargs)
utils/dist.py:44
↓ 1 callersMethodprocess_audio
(self, audio_data: np.ndarray)
inference_client_webrtc.py:89
↓ 1 callersMethodprocess_audio
(self, audio_data)
inference_server.py:95
↓ 1 callersMethodprocess_audio
(self)
inference_client.py:68
↓ 1 callersMethodquantize
Quantizes z, returns quantized zhat, same shape as z.
ioblocks.py:216
↓ 1 callersFunctionrank0
()
utils/interp.py:4
↓ 1 callersMethodremove_weight_norm
(self)
tokenizer.py:411
↓ 1 callersMethodrepr_from_latent
(self, latent: Union[dict, T.Tensor])
tokenizer.py:452
↓ 1 callersMethodreset_buffer
(self)
tokenizer.py:387
↓ 1 callersMethodreset_parameters
(self)
transformer.py:286
↓ 1 callersMethodreset_parameters
(self)
transformer.py:315
↓ 1 callersMethodrotate
Args ---- q : torch.Tensor Embedded query tensor, expected size is B x S x H x Eh k : torch.Tensor
transformer.py:109
↓ 1 callersFunctionrotate_half
(x)
transformer.py:31
↓ 1 callersFunctionround_ste
Round with straight through gradients.
ioblocks.py:127
↓ 1 callersMethodset_temperature_and_echo
Send temperature settings to server
inference_client.py:28
↓ 1 callersMethodstart
(self)
inference_client.py:96
↓ 1 callersMethodstop
(self)
inference_client.py:134
↓ 1 callersMethodto_s16_format
(self, audio_data: np.ndarray)
inference_client_webrtc.py:70
↓ 1 callersMethodtokenize
(self, audio_data)
model.py:261
↓ 1 callersFunctiontruthyexists
(v)
utils/blocks.py:72
↓ 1 callersFunctionunpack_one
(t, ps, pattern)
ioblocks.py:100
↓ 1 callersMethoduntokenize
(self, token_data)
model.py:277
↓ 1 callersMethodupsample
(self, audio_data: np.ndarray)
inference_client_webrtc.py:57
Method__call__
(self, *args, **kwargs)
utils/blocks.py:22
Method__init__
(self, server_url="ws://localhost:8000", token_temp=None, categorical_temp=None, gaussian_temp=None)
inference_client_webrtc.py:20
Method__init__
(self, model, prompt_path)
inference_server.py:56
Method__init__
(self, server_url="ws://localhost:8000", token_temp=None, categorical_temp=None, gaussian_temp=None)
inference_client.py:15
Method__init__
( self, in_channels, out_channels, kernel_size,
tokenizer.py:24
Method__init__
( self, in_channels, out_channels, kernel_size, stride, paddin
tokenizer.py:66
Method__init__
( self, in_channels, out_channels, kernel_size, stride=1,
tokenizer.py:105
Method__init__
( self, in_channels, out_channels, kernel_size, stride, b
tokenizer.py:134
Method__init__
( self, in_channels, out_channels, kernel_size=7, dilation=1,
tokenizer.py:173
Method__init__
( self, in_channels, out_channels, kernel_size=7, dilation=1,
tokenizer.py:200
Method__init__
(self, in_channels, out_channels, stride, kernel_size=7, dilations=(1,
tokenizer.py:231
next →1–100 of 173, ranked by callers