meg-huggingface
commited on
Commit
·
fba7242
1
Parent(s):
4aee8c2
Adding train script
Browse files- Dockerfile +3 -2
- train.sh +11 -0
Dockerfile
CHANGED
|
@@ -62,7 +62,8 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
| 62 |
#COPY --chown=user teaching_arithmetic /teaching_arithmetic
|
| 63 |
#COPY --chown=user . /app
|
| 64 |
COPY . /app
|
| 65 |
-
|
| 66 |
# USER 1000
|
| 67 |
|
| 68 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
| 62 |
#COPY --chown=user teaching_arithmetic /teaching_arithmetic
|
| 63 |
#COPY --chown=user . /app
|
| 64 |
COPY . /app
|
| 65 |
+
COPY ./train.sh /train.sh
|
| 66 |
# USER 1000
|
| 67 |
|
| 68 |
+
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 69 |
+
ENTRYPOINT ["/train.sh"]
|
train.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
echo "Starting attempt at training with default from git repo!"
|
| 4 |
+
python train.py config2/addition/plain/train_addition_bal.py \
|
| 5 |
+
--ckpt_path_name="ckpt_10000.pt" \
|
| 6 |
+
--out_dir='out/addition_plain' \
|
| 7 |
+
--data_type='text' --data_format='plain' \
|
| 8 |
+
--dataset='bal' --train_data_path="train_3digit_10000.txt" \
|
| 9 |
+
--eval_addition=True --start='FILE:data/bal/test_10000.txt'
|
| 10 |
+
|
| 11 |
+
echo "Done?"
|