Weights are the numbers in a
neural network that determine which information counts more and which counts less for the functioning of an
AI model. They are adjusted during
training and hold what the model has learned. They are the type of parameter that most influences its results.
Imagine you want to choose a restaurant and you ask several people. Not all opinions are worth the same: your foodie friend's weighs a lot and that of someone who eats anywhere, little. That weight is the trust you place in each opinion. A
neural network does the same with millions of connections: it assigns each one its weight.
At first the weights have almost random values and the model knows nothing. During
training, the model makes predictions, compares them with the correct answer and adjusts the weight of each connection until it gets it right. When it finishes, the final combination of values is everything the model knows.
Weights are the most important type of parameter, the internal values that define how a model works, although not the only one: there are other, smaller adjustment values. A large model has billions of weights, stored in a file that is often very large. With
fine-tuning they are adjusted again to specialize the model, and there are techniques that modify only a small part of them, such as Low-Rank Adaptation. When a model is open-weight, what is published is precisely that file.