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

Added OLMo support to builder.py #1061

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

shobrienDMA
Copy link

No description provided.

@shobrienDMA
Copy link
Author

@microsoft-github-policy-service agree company="AMD"

@shobrienDMA shobrienDMA marked this pull request as ready for review November 25, 2024 10:16
@BowenBao
Copy link
Contributor

@kunal-vaishnavi ptal, thanks!

@kunal-vaishnavi
Copy link
Contributor

Thanks for the contribution! Does OLMo run end-to-end with the ONNX Runtime GenAI tokenizer?

Can you also update the following places?

  1. Add OLMo to the repo README and the model builder README to show that OLMo is now supported
  2. Add OLMo to the CIs

def get_model_paths():
hf_paths = {
"phi-2": "microsoft/phi-2",
# "phi-3-mini": "microsoft/Phi-3-mini-128k-instruct",
}
ci_data_path = os.path.join("/", "data", "ortgenai_pytorch_models")
if not os.path.exists(ci_data_path):
return {}, hf_paths
# Note: If a model has over 4B parameters, please add a quantized version
# to `ci_paths` instead of `hf_paths` to reduce file size and testing time.
ci_paths = {
"llama-2": os.path.join(ci_data_path, "Llama-2-7B-Chat-GPTQ"),
"llama-3": os.path.join(ci_data_path, "Meta-Llama-3-8B-AWQ"),
"mistral-v0.2": os.path.join(ci_data_path, "Mistral-7B-Instruct-v0.2-GPTQ"),
# "phi-2": os.path.join(ci_data_path, "phi2"),
# "gemma-2b": os.path.join(ci_data_path, "gemma-1.1-2b-it"),
"gemma-7b": os.path.join(ci_data_path, "gemma-7b-it-awq"),
# "phi-3-mini": os.path.join(ci_data_path, "phi3-mini-128k-instruct"),
}
return ci_paths, hf_paths

The models in hf_paths are downloaded from Hugging Face, and the models in ci_paths are currently uploaded to /data/ortgenai_pytorch_models in the Linux CUDA CI VM.

--volume /data/ortgenai_pytorch_models:/data/ortgenai_pytorch_models \

You can add it to hf_paths for now. If you can also add Qwen to the CIs, that would be helpful.

@shobrienDMA
Copy link
Author

shobrienDMA commented Dec 12, 2024

That is be updated as requested now. It runs end to end and I've also added Qwen to the CI list.

@kunal-vaishnavi
Copy link
Contributor

Thank you for adding the changes. The end-to-end tests in the CIs appear to be failing due to the transformers version. Can you pin it to v4.44.2?

@shobrienDMA
Copy link
Author

This should be good to go!

@kunal-vaishnavi
Copy link
Contributor

After some further investigation, it appears that the tokenizer CI failure is happening because the tokenizer for OLMo is not currently supported in ONNX Runtime Extensions. Once the support is added, the main branch of ONNX Runtime GenAI can be merged into this PR to integrate the changes.

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

Successfully merging this pull request may close these issues.

3 participants