Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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()
|