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