Parameter count is the number of learned scalar parameters in a model. Inspecting it before modification establishes the model’s size; the total can be computed by summing the element counts of its parameter tensors. section 2.2
original_params= sum(p.numel() for p in model.parameters())
print(f"Total parameters: {original_params}")
print(f"Original layers: {len(model.model.layers)}")
print("=" * 20)
print(model)
The code sums parameter-tensor element counts and prints the model’s layer count and architecture. section 2.2





