Supposing that the first layer is an nn.Linear layer…
model.first_layer.weight.data = torch.Tensor([1, 2, 3, 1, 2, 3, 1, 2, 3])
model.first_layer.bias.data = ...

If you check the docs 500, then you can find the names for the weights of other layer types.