1 write to InputIds
Microsoft.ML.GenAI.Core (1)
Pipeline\CausalLMModelInput.cs (1)
33this.InputIds = inputIds;
10 references to InputIds
Microsoft.ML.GenAI.Core (3)
Trainer\CasualLMSupervisedFineTuningTrainer.cs (3)
52var maxLen = batch.Max(x => x.InputIds.size(1)); 54var inputIds = torch.cat(batch.Select(x => nn.functional.pad(x.InputIds, [0, maxLen - x.InputIds.shape[1]])).ToArray(), 0).to(device);
Microsoft.ML.GenAI.Core.Tests (3)
CasualLMDatasetTest.cs (3)
46dataset[0].InputIds!.data<long>().Should().BeEquivalentTo([1, 2, 3, 4, 5]); 74item.Labels!.shape.Should().BeEquivalentTo(item.InputIds!.shape); 75item.AttentionMask!.shape.Should().BeEquivalentTo(item.InputIds!.shape);
Microsoft.ML.GenAI.LLaMA (1)
Module\LlamaModel.cs (1)
69var inputIds = input.InputIds;
Microsoft.ML.GenAI.Mistral (1)
MistralModel.cs (1)
63var inputIds = input.InputIds;
Microsoft.ML.GenAI.Phi (2)
Module\Phi3Model.cs (1)
66var inputIds = input.InputIds;
Phi2\Phi2ForCasualLM.cs (1)
36var inputIds = input.InputIds;