Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Standard-Intelligence/hertz-dev
/ functions
Functions
173 in github.com/Standard-Intelligence/hertz-dev
⨍
Functions
173
◇
Types & classes
41
↳
Endpoints
1
↓ 25 callers
Function
exists
(v)
utils/blocks.py:66
↓ 13 callers
Function
print_colored
(message, color='reset', bold=False, **kwargs)
utils/interp.py:11
↓ 9 callers
Method
__init__
(self, c: Config)
tokenizer.py:431
↓ 9 callers
Method
__init__
(self, dim: int, n_head: int, shape_rotator: ShapeRotator, k
transformer.py:169
↓ 7 callers
Method
output
float tensor (B, L, D) -> Tuple of locs, scales, and weights
ioblocks.py:45
↓ 6 callers
Function
default
(*args: Optional[defaultT])
utils/blocks.py:80
↓ 6 callers
Method
input
Pre-sampled latents T.Tensor (B, L, Z) -> float tensor (B, L, D)
ioblocks.py:40
↓ 5 callers
Method
decode
(self, latent)
tokenizer.py:505
↓ 5 callers
Function
load_ckpt
(load_from_location, expected_hash=None)
utils/dist.py:78
↓ 4 callers
Function
Conv1d1x1
(in_channels, out_channels, bias=True)
tokenizer.py:17
↓ 4 callers
Method
data_from_latent
(self, latent)
tokenizer.py:520
↓ 4 callers
Method
latent_from_data
(self, data, get_parameters=False)
tokenizer.py:509
↓ 4 callers
Function
print0
(*args, **kwargs)
utils/dist.py:38
↓ 3 callers
Function
count_parameters
(model)
utils/interp.py:32
↓ 3 callers
Function
rank0
()
utils/dist.py:13
↓ 3 callers
Method
temp_sample
(self, orig_pdist, temp)
ioblocks.py:67
↓ 3 callers
Method
untokenize
(self, token_data)
model.py:127
↓ 2 callers
Method
__init__
(self, c: Config)
ioblocks.py:153
↓ 2 callers
Method
__init__
(self, c: Config)
model.py:214
↓ 2 callers
Method
_indices_to_codes
(self, indices)
ioblocks.py:230
↓ 2 callers
Method
_resample
(self, audio_data: np.ndarray, resampler: torchaudio.transforms.Resample)
inference_client_webrtc.py:51
↓ 2 callers
Function
apply_rotary_pos_emb
(x, cos, sin, offset: int = 0)
transformer.py:36
↓ 2 callers
Method
apply_weight_norm
(self)
tokenizer.py:401
↓ 2 callers
Method
encode
(self, data)
tokenizer.py:502
↓ 2 callers
Function
estimate_size
(model)
utils/interp.py:45
↓ 2 callers
Method
forward
(self, data)
model.py:305
↓ 2 callers
Method
indices_to_codes
Inverse of `codes_to_indices`.
ioblocks.py:247
↓ 2 callers
Method
inference
(self, x)
tokenizer.py:294
↓ 2 callers
Method
initialize_state
(self, prompt_path)
inference_server.py:61
↓ 2 callers
Function
maybe
(fn)
utils/blocks.py:86
↓ 2 callers
Method
next_audio_from_audio
(self, audio_data: T.Tensor, temps=(0.8, (0.5, 0.1)))
model.py:321
↓ 2 callers
Method
next_latent
(self, model_input: T.Tensor, temps=(0.8, (0.5, 0.1)))
model.py:330
↓ 2 callers
Function
print0_colored
(*args, **kwargs)
utils/interp.py:27
↓ 2 callers
Method
quantize
(self, x)
model.py:115
↓ 2 callers
Method
reparam
(self, mu, logvar)
tokenizer.py:441
↓ 2 callers
Method
reset_parameters
(self)
tokenizer.py:393
↓ 2 callers
Method
set_temperature_and_echo
Send temperature settings to server
inference_client_webrtc.py:37
↓ 2 callers
Method
to_channels
(self, audio_data: np.ndarray, channels: int)
inference_client_webrtc.py:77
↓ 1 callers
Method
_attend
(self, q: Tensor, k: Tensor, v: Tensor, kv_cache: Optional[Tensor] = None,)
transformer.py:203
↓ 1 callers
Method
_project
(self, x)
transformer.py:214
↓ 1 callers
Method
_scale_and_shift
(self, zhat_normalized)
ioblocks.py:222
↓ 1 callers
Method
_scale_and_shift_inverse
(self, zhat)
ioblocks.py:226
↓ 1 callers
Method
_sdpa
(self, q: Tensor, k: Tensor, v: Tensor)
transformer.py:191
↓ 1 callers
Method
_square_plus
(self, x)
ioblocks.py:37
↓ 1 callers
Method
bound
Bound `z`, an array of shape (..., d).
ioblocks.py:209
↓ 1 callers
Method
cleanup
(self)
inference_server.py:123
↓ 1 callers
Method
codes_to_indices
Converts a `code` to an index in the codebook.
ioblocks.py:235
↓ 1 callers
Method
compute_freqs_cis
(self, device, max_seq_len=None)
transformer.py:64
↓ 1 callers
Method
deinit_cache
(self)
transformer.py:375
↓ 1 callers
Method
deinit_cache
(self)
model.py:297
↓ 1 callers
Method
downsample
(self, audio_data: np.ndarray)
inference_client_webrtc.py:60
↓ 1 callers
Method
from_s16_format
(self, audio_data: np.ndarray, channels: int)
inference_client_webrtc.py:63
↓ 1 callers
Function
get_cache_len
cache: (batch, seq_len, 2, kv_heads, head_dim)
transformer.py:19
↓ 1 callers
Function
get_code_utilization
(codes, codebook_size, get_global=False)
ioblocks.py:109
↓ 1 callers
Function
get_hertz_dev_config
(is_split=True, use_pure_audio_ablation=False)
model.py:375
↓ 1 callers
Function
get_layer_types
(model)
utils/interp.py:63
↓ 1 callers
Method
indices_to_level_indices
Converts indices to indices at each level, perhaps needed for a transformer with factorized embeddings
ioblocks.py:241
↓ 1 callers
Method
init_cache
(self, bsize, device, dtype, length:int=None)
transformer.py:368
↓ 1 callers
Method
init_cache
(self, bsize, device, dtype, length:int=None)
model.py:291
↓ 1 callers
Method
initialize_prompt_buffer
(self)
inference_server.py:87
↓ 1 callers
Function
isnt
(v)
utils/blocks.py:69
↓ 1 callers
Method
kl_divergence
(self, mu, logvar)
tokenizer.py:446
↓ 1 callers
Function
local0
()
utils/dist.py:20
↓ 1 callers
Function
make_tokenizer
(device='cuda')
tokenizer.py:542
↓ 1 callers
Function
pack_one
(t, pattern)
ioblocks.py:97
↓ 1 callers
Function
print0once
(*args, **kwargs)
utils/dist.py:52
↓ 1 callers
Function
printonce
(*args, id=None, **kwargs)
utils/dist.py:44
↓ 1 callers
Method
process_audio
(self, audio_data: np.ndarray)
inference_client_webrtc.py:89
↓ 1 callers
Method
process_audio
(self, audio_data)
inference_server.py:95
↓ 1 callers
Method
process_audio
(self)
inference_client.py:68
↓ 1 callers
Method
quantize
Quantizes z, returns quantized zhat, same shape as z.
ioblocks.py:216
↓ 1 callers
Function
rank0
()
utils/interp.py:4
↓ 1 callers
Method
remove_weight_norm
(self)
tokenizer.py:411
↓ 1 callers
Method
repr_from_latent
(self, latent: Union[dict, T.Tensor])
tokenizer.py:452
↓ 1 callers
Method
reset_buffer
(self)
tokenizer.py:387
↓ 1 callers
Method
reset_parameters
(self)
transformer.py:286
↓ 1 callers
Method
reset_parameters
(self)
transformer.py:315
↓ 1 callers
Method
rotate
Args ---- q : torch.Tensor Embedded query tensor, expected size is B x S x H x Eh k : torch.Tensor
transformer.py:109
↓ 1 callers
Function
rotate_half
(x)
transformer.py:31
↓ 1 callers
Function
round_ste
Round with straight through gradients.
ioblocks.py:127
↓ 1 callers
Method
set_temperature_and_echo
Send temperature settings to server
inference_client.py:28
↓ 1 callers
Method
start
(self)
inference_client.py:96
↓ 1 callers
Method
stop
(self)
inference_client.py:134
↓ 1 callers
Method
to_s16_format
(self, audio_data: np.ndarray)
inference_client_webrtc.py:70
↓ 1 callers
Method
tokenize
(self, audio_data)
model.py:261
↓ 1 callers
Function
truthyexists
(v)
utils/blocks.py:72
↓ 1 callers
Function
unpack_one
(t, ps, pattern)
ioblocks.py:100
↓ 1 callers
Method
untokenize
(self, token_data)
model.py:277
↓ 1 callers
Method
upsample
(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