-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial commit: non-nemotron vllm export Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * Apply isort and black reformatting Signed-off-by: Laplasjan107 <Laplasjan107@users.noreply.github.com> * add docstring Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * fix gemma Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * Apply isort and black reformatting Signed-off-by: Laplasjan107 <Laplasjan107@users.noreply.github.com> * update requirements Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * Apply isort and black reformatting Signed-off-by: Laplasjan107 <Laplasjan107@users.noreply.github.com> * code review + bug fix Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * Apply isort and black reformatting Signed-off-by: Laplasjan107 <Laplasjan107@users.noreply.github.com> * Bugfix Signed-off-by: Piotr Kamiński <67481570+Laplasjan107@users.noreply.github.com> * code review Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * fix typing Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * Apply isort and black reformatting Signed-off-by: Laplasjan107 <Laplasjan107@users.noreply.github.com> * import torch_dist loader from nemo.export.trtllm Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * Apply isort and black reformatting Signed-off-by: Laplasjan107 <Laplasjan107@users.noreply.github.com> * handle torch_dist in nemo 1.0 Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * Apply isort and black reformatting Signed-off-by: Laplasjan107 <Laplasjan107@users.noreply.github.com> * add github ci test Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * review + venv install Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * Apply isort and black reformatting Signed-off-by: Laplasjan107 <Laplasjan107@users.noreply.github.com> * move venv installation Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * retry running test Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * remove RUN keyword Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * modify llama config Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * fix conversion script Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * add pip install flags Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * move vllm venv to separate run step Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * try different json format Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * add more config overrides to the test Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * another approach to config overrides Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> * fix test llama head_dim Signed-off-by: Piotr Kamiński <67481570+Laplasjan107@users.noreply.github.com> * pin cdifflib down Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> --------- Signed-off-by: Piotr Kaminski <piotrus.kaminski@gmail.com> Signed-off-by: Laplasjan107 <Laplasjan107@users.noreply.github.com> Signed-off-by: Piotr Kamiński <67481570+Laplasjan107@users.noreply.github.com> Co-authored-by: Laplasjan107 <Laplasjan107@users.noreply.github.com>
- Loading branch information
1 parent
7f3ac6b
commit e0c97aa
Showing
12 changed files
with
238 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
from pathlib import Path | ||
|
||
|
||
def is_nemo2_checkpoint(checkpoint_path: str) -> bool: | ||
""" | ||
Checks if the checkpoint is in NeMo 2.0 format. | ||
Args: | ||
checkpoint_path (str): Path to a checkpoint. | ||
Returns: | ||
bool: True if the path points to a NeMo 2.0 checkpoint; otherwise false. | ||
""" | ||
|
||
ckpt_path = Path(checkpoint_path) | ||
return (ckpt_path / 'context').is_dir() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.