Florian valade commited on
Commit
014f93e
·
2 Parent(s): 7e9cb9e ef55191

update with Gradio demo

Browse files
Files changed (3) hide show
  1. README.md +37 -1
  2. readme.md +0 -37
  3. requirements.txt +2 -1
README.md CHANGED
@@ -9,4 +9,40 @@ app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  pinned: false
10
  ---
11
 
12
+ # Early Exit Computational Savings Demo
13
+
14
+ ## Overview
15
+
16
+ This project demonstrates the concept of "early exiting" in deep learning models to save computational resources without significantly compromising on model performance. Early exit strategies allow a neural network to make predictions at intermediate layers for easy-to-classify instances, thus reducing the overall computation time and resources needed for inference. The application is built to run with Streamlit, offering an interactive web interface to explore the functionalities of the early exit model.
17
+
18
+ ## Features
19
+
20
+ - **BranchyModel:** An implementation of a deep learning model with early exit points. This model architecture is designed to evaluate the performance and computational savings of using early exits.
21
+ - **Utility Functions:** A set of utilities to support the model's operation, including data preprocessing and performance evaluation metrics.
22
+ - **Streamlit Application:** A user-friendly web interface to interact with the model, visualize its performance, and understand the benefits of early exits.
23
+
24
+ ## Getting Started
25
+
26
+ ### Prerequisites
27
+
28
+ Ensure you have Python 3.x installed on your machine. You can install all the required dependencies via:
29
+
30
+ ```bash
31
+ pip install -r requirements.txt
32
+ ```
33
+
34
+ ### Running the Application
35
+
36
+ To run the Streamlit application, execute the following command from the root of the project:
37
+
38
+ ```bash
39
+ streamlit run app.py
40
+ ```
41
+
42
+ The command will start a local web server and open the application in your default web browser, allowing you to interact with the BranchyModel and explore its features.
43
+
44
+ ## Project Structure
45
+
46
+ - **app.py**: The main Streamlit application script.
47
+ - **requirements.txt**: Lists all the Python dependencies required by the project.
48
+ - **src/**: Contains the source code for the project.
readme.md DELETED
@@ -1,37 +0,0 @@
1
- # Early Exit Computational Savings Demo
2
-
3
- ## Overview
4
-
5
- This project demonstrates the concept of "early exiting" in deep learning models to save computational resources without significantly compromising on model performance. Early exit strategies allow a neural network to make predictions at intermediate layers for easy-to-classify instances, thus reducing the overall computation time and resources needed for inference. The application is built to run with Streamlit, offering an interactive web interface to explore the functionalities of the early exit model.
6
-
7
- ## Features
8
-
9
- - **BranchyModel:** An implementation of a deep learning model with early exit points. This model architecture is designed to evaluate the performance and computational savings of using early exits.
10
- - **Utility Functions:** A set of utilities to support the model's operation, including data preprocessing and performance evaluation metrics.
11
- - **Streamlit Application:** A user-friendly web interface to interact with the model, visualize its performance, and understand the benefits of early exits.
12
-
13
- ## Getting Started
14
-
15
- ### Prerequisites
16
-
17
- Ensure you have Python 3.x installed on your machine. You can install all the required dependencies via:
18
-
19
- ```bash
20
- pip install -r requirements.txt
21
- ```
22
-
23
- ### Running the Application
24
-
25
- To run the Streamlit application, execute the following command from the root of the project:
26
-
27
- ```bash
28
- streamlit run app.py
29
- ```
30
-
31
- The command will start a local web server and open the application in your default web browser, allowing you to interact with the BranchyModel and explore its features.
32
-
33
- ## Project Structure
34
-
35
- - **app.py**: The main Streamlit application script.
36
- - **requirements.txt**: Lists all the Python dependencies required by the project.
37
- - **src/**: Contains the source code for the project.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
requirements.txt CHANGED
@@ -2,4 +2,5 @@ gradio==4.32.2
2
  torch==2.0.1
3
  pandas==2.0.3
4
  transformers==4.36.0
5
- plotly==5.22.0
 
 
2
  torch==2.0.1
3
  pandas==2.0.3
4
  transformers==4.36.0
5
+ plotly==5.22.0
6
+