Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the code indentations disappear. Is there any way to solve it? #43

Closed
joytianya opened this issue Jun 9, 2023 · 4 comments
Closed

the code indentations disappear. Is there any way to solve it? #43

joytianya opened this issue Jun 9, 2023 · 4 comments

Comments

@joytianya
Copy link

When fine-tuning the code data downstream with https://github.com/young-geng/EasyLM/tree/main, there will be significant issues. Spaces are usually used for indentation. the result is that the indentations disappear.
Is there any way to solve it?

the code without indentation such as

def bubble_sort(arr):
 n = len(arr)
 for i in range(n-1):
 for j in range(n-i-1):
 if arr[j] > arr[j+1]:
 arr[j], arr[j+1] = arr[j+1], arr[j]
 return arr
@danielhanchen
Copy link

#40 duplicate :) Can you see already posed in there :)

@young-geng
Copy link
Contributor

This is indeed a mistake on our side, as we have misconfigured the tokenizer to remove repeated spaces. I've updated that configuration and now the tokenizer should preserve all spaces. Please try the new updated tokenizer.

@joytianya
Copy link
Author

https://huggingface.co/openlm-research/open_llama_7b/blob/main/tokenizer.model
Do I just need to update this file?

@young-geng
Copy link
Contributor

Yeah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants