Test README.md to include code
Browse files
README.md
CHANGED
@@ -2,6 +2,68 @@
|
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
Cookiecutter-MLOps
|
6 |
==============================
|
7 |
|
|
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
|
5 |
+
Set the Cookiecutter-MLOps in Hugging Face
|
6 |
+
==============================================
|
7 |
+
|
8 |
+
1. Create Model repository in Hugging Face (e.g. myHFrepo)
|
9 |
+
2. In your local directory run:
|
10 |
+
|
11 |
+
'''bash
|
12 |
+
cd /path/to/parent directory of project folder
|
13 |
+
git clone git@hf.co:USERNAME/myHFrepo
|
14 |
+
'''
|
15 |
+
|
16 |
+
For ssh connection check here
|
17 |
+
cd myHFrepo
|
18 |
+
python -m venv jointvenv
|
19 |
+
|
20 |
+
source jointvenv/bin/activate
|
21 |
+
|
22 |
+
|
23 |
+
Follow instructions on DagsHub/Cookiecutter-MLOps | DagsHub
|
24 |
+
git clone https://dagshub.com/DagsHub/Cookiecutter-MLOps.git
|
25 |
+
rm -r /path/to/myHFrepo/Cookiecutter-MLOps/.git
|
26 |
+
cat /path/to/myHFrepo/Cookiecutter-MLOps/.gitattributes >> /path/to/myHFrepo/.gitattributes
|
27 |
+
rm /path/to/myHFrepo/Cookiecutter-MLOps/.gitattributes
|
28 |
+
cat /path/to/myHFrepo/Cookiecutter-MLOps/README >> /path/to/myHFrepo/README
|
29 |
+
rm /path/to/myHFrepo/Cookiecutter-MLOps/README
|
30 |
+
git add README.md
|
31 |
+
git commit -m "Paste README info from DagsHub/Cookiecutter-MLOps"
|
32 |
+
git add .gitattributes
|
33 |
+
git commit -m "Paste .gitattributes info from DagsHub/Cookiecutter-MLOps"
|
34 |
+
cd /path/to/myHFrepo/Cookiecutter-MLOps
|
35 |
+
mv * .[^.]* ..
|
36 |
+
cd /path/to/myHFrepo
|
37 |
+
rm -r /path/to/myHFrepo/Cookiecutter-MLOps
|
38 |
+
echo '' >> .gitignore
|
39 |
+
echo '#'Virtual Environment >> .gitignore
|
40 |
+
echo jointvenv/ >> .gitignore
|
41 |
+
git add .
|
42 |
+
git commit -m "add remaining DagsHub/Cookiecutter-MLOps repo content"
|
43 |
+
make dirs
|
44 |
+
make requirements
|
45 |
+
mv requirements.txt requirementsCookiecutter-MLOps.txt
|
46 |
+
git add requirementsCookiecutter-MLOps.txt
|
47 |
+
git commit -m "external requirements from Cookiecutter-
|
48 |
+
MLOps"
|
49 |
+
pip freeze > requirements.txt
|
50 |
+
git add requirements.txt
|
51 |
+
git commit -m "First report venv requirements"
|
52 |
+
git push origin main
|
53 |
+
|
54 |
+
Create Model repository in your Hugging Face organization (e.g. myHFrepo)
|
55 |
+
|
56 |
+
git remote add dcc git@hf.co:MYORG/mywslHFrepo
|
57 |
+
git pull dcc main --allow-unrelated-histories
|
58 |
+
Resolve conflicts in .gitattributes and README.md
|
59 |
+
git add .
|
60 |
+
git commit -m "Merge HuggingFace individual and organization repos"
|
61 |
+
git push dcc main
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
+
|
66 |
+
|
67 |
Cookiecutter-MLOps
|
68 |
==============================
|
69 |
|