භාෂාආකෘති සඳහා නියැදි ක්රම

මෙන්නමෙම නියැදි ශිල්පීය ක්රම භාවිතා කරන අත්හදා බැලීමක් .

18import torch

නියැදිමූලික පන්තිය

21class Sampler:

පිවිසුම්වලින් නියැදිය

  • logits හැඩය බෙදා හැරීමේ පිවිසුම් වේ [..., n_tokens]
25    def __call__(self, logits: torch.Tensor) -> torch.Tensor:
31        raise NotImplementedError()