Tech-Meld commited on
Commit
8fdbc8b
1 Parent(s): 8a2d207

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def prune_model(llm_model_name, target_size, hf_write_token, repo_name, progress
65
 
66
  # Create a visualization
67
  fig, ax = plt.subplots(figsize=(10, 5))
68
- ax.bar(["Original", "Pruned"], [config.num_parameters, pruned_model.num_parameters])
69
  ax.set_ylabel("Number of Parameters")
70
  ax.set_title("Model Size Comparison")
71
  buf = BytesIO()
 
65
 
66
  # Create a visualization
67
  fig, ax = plt.subplots(figsize=(10, 5))
68
+ ax.bar(["Original", "Pruned"], [config.num_parameters, sum(p.numel() for p in pruned_model.parameters())])
69
  ax.set_ylabel("Number of Parameters")
70
  ax.set_title("Model Size Comparison")
71
  buf = BytesIO()