Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,10 @@ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
|
|
| 75 |
"Then, propose frugal alternatives, such as pruning, using your dedicated tool — always use it. "
|
| 76 |
"Additionally, feel free to search the internet for frugal methods and present them to the manager. "
|
| 77 |
"Examples include Knowledge Distillation, Transfer Learning, and others. If implementation guidance is given by your custom tools, always give it in your final answer to the manager. "
|
| 78 |
-
"Here is my code
|
|
|
|
|
|
|
|
|
|
| 79 |
],
|
| 80 |
description="Share your Python code with this AI agent! It will track its CO2 emissions using CodeCarbon and recommend greener, frugal AI alternatives."
|
| 81 |
)
|
|
|
|
| 75 |
"Then, propose frugal alternatives, such as pruning, using your dedicated tool — always use it. "
|
| 76 |
"Additionally, feel free to search the internet for frugal methods and present them to the manager. "
|
| 77 |
"Examples include Knowledge Distillation, Transfer Learning, and others. If implementation guidance is given by your custom tools, always give it in your final answer to the manager. "
|
| 78 |
+
"Here is my code: "
|
| 79 |
+
"from transformers import AutoTokenizer, AutoModelForCausalLM"
|
| 80 |
+
"tokenizer = AutoTokenizer.from_pretrained('mistralai/Mistral-7B-Instruct-v0.3')"
|
| 81 |
+
"model = AutoModelForCausalLM.from_pretrained('mistralai/Mistral-7B-Instruct-v0.3'), please give me frugal alternatives."
|
| 82 |
],
|
| 83 |
description="Share your Python code with this AI agent! It will track its CO2 emissions using CodeCarbon and recommend greener, frugal AI alternatives."
|
| 84 |
)
|