MCPcopy Create free account
hub / github.com/FlashSampling/FlashSampling / SyntheticInputs

Class SyntheticInputs

src/fused_mm_sampling/testing.py:15–24  ·  view source on GitHub ↗

In the tensor-parallel case V is sharded among ranks

Source from the content-addressed store, hash-verified

13
14@dataclass
15class SyntheticInputs:
16 """In the tensor-parallel case V is sharded among ranks"""
17
18 weights: torch.Tensor # [V, D], bfloat16
19 hidden_states: torch.Tensor # [n_hidden_states, D], bfloat16
20 logits: (
21 torch.Tensor
22 ) # [n_hidden_states, V], float32 (the exact logits before bf16 quantization)
23 vocab_size: int
24 hidden_size: int
25
26
27def make_synthetic_inputs(

Callers 1

make_synthetic_inputsFunction · 0.85

Calls

no outgoing calls

Tested by 1

make_synthetic_inputsFunction · 0.68