No space at the end of the diff file:
` diff --git a/configs/2.2.2_from_scratch.yaml b/configs/2.2.2_from_scratch.yaml
index 9fece48..5816f78 100644
--- a/configs/2.2.2_from_scratch.yaml
+++ b/configs/2.2.2_from_scratch.yaml
@@ -136,7 +136,7 @@ data_processing:
optimizer:
type: 'RMSprop'
args:
- lr: 2.5e-4
- lr: 1.5e-5
momentum: 0
weight_decay: 0 `
👍
So the diff header doesn’t related to line 13 but the error is, can you try adding space to this line or even delete it if you don’t need it? (just for checking)
can you share configs/2.2.2_from_scratch.yaml
file with me? The error point to line 13, anything special in this line?
From the UI, clone the task you have, and after hit the edit
in the uncommitted changes section (if you can send this file it could be great 🙂 )
I cannot share the file itself, but here are some potential helpful points:
Multiple lines empty One line is empty but has spaces (6 to be exact) The last line of the file is empty
Is this the only empty line in the file?
Hi JitteryCoyote63 , Did you edit the diff part?
Hi JitteryCoyote63 ,
Did you change your Trains or Trains Agent version before this started to happen?
Do you have space at the end of the -
line? Can you try editing it and adding space to the -
line if it doesn’t have one?
Can you check you have space at the end of the diff file?
yes, here is the error (the space at the end of the line is there)
` Applying uncommitted changes
Executing: ('git', 'apply'): b'error: corrupt patch at line 13\n'
Failed applying diff
trains_agent: ERROR: Failed applying git diff:
diff --git a/configs/2.2.2_from_scratch.yaml b/configs/2.2.2_from_scratch.yaml
index 9fece48..5816f78 100644
--- a/configs/2.2.2_from_scratch.yaml
+++ b/configs/2.2.2_from_scratch.yaml
@@ -136,7 +136,7 @@ data_processing:
optimizer:
type: 'RMSprop'
args:
- lr: 2.5e-4
- lr: 1.5e-5
momentum: 0
weight_decay: 0
ERROR! Failed applying git diff, see diff above. `
Could be, but not sure -> from 0.16.2 to 0.16.3