Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
#--- START OF FILE app.py ---
|
2 |
-
|
3 |
import os
|
4 |
import shutil
|
5 |
import subprocess
|
@@ -600,6 +598,7 @@ with gr.Blocks(css=css) as demo:
|
|
600 |
apply_aggressive_optimization = gr.Checkbox(value=True, label="Apply Aggressive Optimization", info="Reduces attention heads and hidden size.")
|
601 |
apply_reduce_layers = gr.Checkbox(value=True, label="Reduce Layers", info="Reduces the number of layers in the model.")
|
602 |
apply_smaller_embeddings = gr.Checkbox(value=True, label="Use Smaller Embeddings", info="Reduces the size of the embedding layer.")
|
|
|
603 |
apply_weight_sharing = gr.Checkbox(value=False, label="Apply Weight Sharing", info="Shares weights across layers to reduce parameters.")
|
604 |
apply_low_rank_approx = gr.Checkbox(value=False, label="Apply Low-Rank Approximation", info="Approximates weight matrices with lower rank.")
|
605 |
use_lora_opt = gr.Checkbox(value=False, label="Use LoRA", info="Applies Low-Rank Adaptation.")
|
|
|
|
|
|
|
1 |
import os
|
2 |
import shutil
|
3 |
import subprocess
|
|
|
598 |
apply_aggressive_optimization = gr.Checkbox(value=True, label="Apply Aggressive Optimization", info="Reduces attention heads and hidden size.")
|
599 |
apply_reduce_layers = gr.Checkbox(value=True, label="Reduce Layers", info="Reduces the number of layers in the model.")
|
600 |
apply_smaller_embeddings = gr.Checkbox(value=True, label="Use Smaller Embeddings", info="Reduces the size of the embedding layer.")
|
601 |
+
# apply_weight_sharing = gr.Checkbox(value=False, label="Apply Weight Sharing
|
602 |
apply_weight_sharing = gr.Checkbox(value=False, label="Apply Weight Sharing", info="Shares weights across layers to reduce parameters.")
|
603 |
apply_low_rank_approx = gr.Checkbox(value=False, label="Apply Low-Rank Approximation", info="Approximates weight matrices with lower rank.")
|
604 |
use_lora_opt = gr.Checkbox(value=False, label="Use LoRA", info="Applies Low-Rank Adaptation.")
|