Spaces:
Runtime error
Runtime error
add app file to the space
Browse files- .idea/.gitignore +8 -0
- .idea/inspectionProfiles/Project_Default.xml +87 -0
- .idea/inspectionProfiles/profiles_settings.xml +6 -0
- .idea/llm-memory-requirement.iml +8 -0
- .idea/misc.xml +7 -0
- .idea/modules.xml +8 -0
- .idea/vcs.xml +6 -0
- app.py +4 -0
.idea/.gitignore
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Default ignored files
|
2 |
+
/shelf/
|
3 |
+
/workspace.xml
|
4 |
+
# Editor-based HTTP Client requests
|
5 |
+
/httpRequests/
|
6 |
+
# Datasource local storage ignored files
|
7 |
+
/dataSources/
|
8 |
+
/dataSources.local.xml
|
.idea/inspectionProfiles/Project_Default.xml
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<component name="InspectionProjectProfileManager">
|
2 |
+
<profile version="1.0">
|
3 |
+
<option name="myName" value="Project Default" />
|
4 |
+
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
5 |
+
<Languages>
|
6 |
+
<language minSize="1382" name="Python" />
|
7 |
+
</Languages>
|
8 |
+
</inspection_tool>
|
9 |
+
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
10 |
+
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
11 |
+
<option name="ignoredPackages">
|
12 |
+
<value>
|
13 |
+
<list size="6">
|
14 |
+
<item index="0" class="java.lang.String" itemvalue="pandas" />
|
15 |
+
<item index="1" class="java.lang.String" itemvalue="requests" />
|
16 |
+
<item index="2" class="java.lang.String" itemvalue="googleapiclient" />
|
17 |
+
<item index="3" class="java.lang.String" itemvalue="google" />
|
18 |
+
<item index="4" class="java.lang.String" itemvalue="trl" />
|
19 |
+
<item index="5" class="java.lang.String" itemvalue="numpy" />
|
20 |
+
</list>
|
21 |
+
</value>
|
22 |
+
</option>
|
23 |
+
</inspection_tool>
|
24 |
+
<inspection_tool class="PyPep8Inspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
25 |
+
<option name="ignoredErrors">
|
26 |
+
<list>
|
27 |
+
<option value="E301" />
|
28 |
+
<option value="E303" />
|
29 |
+
<option value="E501" />
|
30 |
+
<option value="E402" />
|
31 |
+
<option value="E125" />
|
32 |
+
<option value="E721" />
|
33 |
+
</list>
|
34 |
+
</option>
|
35 |
+
</inspection_tool>
|
36 |
+
<inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
37 |
+
<option name="ignoredErrors">
|
38 |
+
<list>
|
39 |
+
<option value="N806" />
|
40 |
+
<option value="N803" />
|
41 |
+
<option value="N802" />
|
42 |
+
<option value="N801" />
|
43 |
+
<option value="N814" />
|
44 |
+
<option value="N812" />
|
45 |
+
</list>
|
46 |
+
</option>
|
47 |
+
</inspection_tool>
|
48 |
+
<inspection_tool class="PyShadowingBuiltinsInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
49 |
+
<option name="ignoredNames">
|
50 |
+
<list>
|
51 |
+
<option value="dir" />
|
52 |
+
</list>
|
53 |
+
</option>
|
54 |
+
</inspection_tool>
|
55 |
+
<inspection_tool class="PyTypeCheckerInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
56 |
+
<inspection_tool class="PyUnresolvedReferencesInspection" enabled="true" level="WARNING" enabled_by_default="true">
|
57 |
+
<option name="ignoredIdentifiers">
|
58 |
+
<list>
|
59 |
+
<option value="transformers.models.auto.tokenization_auto.AutoTokenizer.eos_token" />
|
60 |
+
<option value="transformers.models.auto.tokenization_auto.AutoTokenizer.encode" />
|
61 |
+
<option value="transformers.utils.logging" />
|
62 |
+
<option value="datetime.now" />
|
63 |
+
<option value="pkg_resources.packaging" />
|
64 |
+
<option value="torch.cuda.nccl.nccl" />
|
65 |
+
<option value="dict.tolist" />
|
66 |
+
<option value="bool.float" />
|
67 |
+
<option value="bool.to" />
|
68 |
+
<option value="dict.label_pad_token_id" />
|
69 |
+
<option value="dict.padding_value" />
|
70 |
+
<option value="dict.loss_type" />
|
71 |
+
<option value="accelerate.prepare" />
|
72 |
+
<option value="dict.use_dpo_data_collator" />
|
73 |
+
<option value="dict.device" />
|
74 |
+
<option value="dict._sotred_metrics" />
|
75 |
+
<option value="dict.sotred_metrics" />
|
76 |
+
<option value="dict.stored_metrices" />
|
77 |
+
<option value="dict.stored_metrics" />
|
78 |
+
<option value="kawn.rl.DPO.DPOConfig.__stored_metrics" />
|
79 |
+
<option value="kawn.rl.CPO.CPOConfig.__stored_metrics" />
|
80 |
+
<option value="kawn.rl.ORPO.ORPOConfig.__stored_metrics" />
|
81 |
+
<option value="kawn.rl.KTO.KTOConfig.__stored_metrics" />
|
82 |
+
<option value="kawn.models.kawn_moe.flash_attn" />
|
83 |
+
</list>
|
84 |
+
</option>
|
85 |
+
</inspection_tool>
|
86 |
+
</profile>
|
87 |
+
</component>
|
.idea/inspectionProfiles/profiles_settings.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<component name="InspectionProjectProfileManager">
|
2 |
+
<settings>
|
3 |
+
<option name="USE_PROJECT_PROFILE" value="false" />
|
4 |
+
<version value="1.0" />
|
5 |
+
</settings>
|
6 |
+
</component>
|
.idea/llm-memory-requirement.iml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<module type="PYTHON_MODULE" version="4">
|
3 |
+
<component name="NewModuleRootManager">
|
4 |
+
<content url="file://$MODULE_DIR$" />
|
5 |
+
<orderEntry type="jdk" jdkName="Python 3.10 (llm-memory-requirement)" jdkType="Python SDK" />
|
6 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
7 |
+
</component>
|
8 |
+
</module>
|
.idea/misc.xml
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="Black">
|
4 |
+
<option name="sdkName" value="Python 3.10 (Env)" />
|
5 |
+
</component>
|
6 |
+
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.10 (llm-memory-requirement)" project-jdk-type="Python SDK" />
|
7 |
+
</project>
|
.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="ProjectModuleManager">
|
4 |
+
<modules>
|
5 |
+
<module fileurl="file://$PROJECT_DIR$/.idea/llm-memory-requirement.iml" filepath="$PROJECT_DIR$/.idea/llm-memory-requirement.iml" />
|
6 |
+
</modules>
|
7 |
+
</component>
|
8 |
+
</project>
|
.idea/vcs.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="VcsDirectoryMappings">
|
4 |
+
<mapping directory="" vcs="Git" />
|
5 |
+
</component>
|
6 |
+
</project>
|
app.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
|
3 |
+
x = st.slider('Select a value')
|
4 |
+
st.write(x, 'squared is', x * x)
|