-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
OpenCoder series #1880
base: main
Are you sure you want to change the base?
OpenCoder series #1880
Conversation
@@ -45,7 +45,7 @@ def test_tokenizer_against_hf(config): | |||
(checkpoint_dir / file).symlink_to(hf_file) | |||
|
|||
theirs = AutoTokenizer.from_pretrained( | |||
repo_id, cache_dir=cache_dir / "hf", local_files_only=True, token=access_token | |||
repo_id, cache_dir=cache_dir / "hf", local_files_only=True, token=access_token, trust_remote_code=True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
repo_id, cache_dir=cache_dir / "hf", local_files_only=True, token=access_token, trust_remote_code=True | |
repo_id, cache_dir=cache_dir / "hf", local_files_only=False, token=access_token, trust_remote_code=True |
Not sure how exactly it works inside, but I suspect that it wants to download additional files (since trust_remove_code
is True) and limiting to only local files prevents it.
Hello @ysjprojects Thanks for another great PR. But, in this case, it's a bit difficult. How does HF team extends SentencePiece. Well, they don't 🙂. In practice that means that this model might generate tokens infinitely, since one of the bos tokens are in |
I see. In that case would you consider this problem completely intractable or just requires a lot of work? |
There is nothing intractable about it 🙂. Or, we can cheat a little bit for now, and just check if there is only But, what bothers me, is that in the repo there is another file - tokenization_inflm.py. As I see it, it contains a custom logic for tokenization, as-like For now, I raised a question in their repo. Perhaps there is an easier way to do all this 🤷. |
OpenCoder is an open and reproducible code LLM family which includes 1.5B and 8B base and chat models, supporting both English and Chinese languages. Starting from scratch, OpenCoder is trained on 2.5 trillion tokens composed of 90% raw code and 10% code-related web data, reaching the performance of top-tier code LLMs. We provide not only model weights and inference code, but also the reproducible training data, the complete data processing pipeline, rigorous experimental ablation results, and detailed training protocols. Empowering researchers to build and innovate, OpenCoder is your open foundation for advancing code AI.
State of the art code LLM that beats Qwen2.5-Coder of equivalent size.
https://opencoder-llm.github.io/
https://arxiv.org/pdf/2411.04905
https://huggingface.co/infly/OpenCoder-1.5B
https://huggingface.co/infly/OpenCoder-1.5B-Instruct
https://huggingface.co/infly/OpenCoder-8B
https://huggingface.co/infly/OpenCoder-8B-Instruct
Issue #1858