nemo-evaluator-launcher 0.1.0rc2__py3-none-any.whl → 0.1.0rc4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nemo-evaluator-launcher might be problematic. Click here for more details.

@@ -13,9 +13,7 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- import base64
17
16
  import importlib
18
- import os
19
17
  import pathlib
20
18
  import sys
21
19
  from importlib import resources
@@ -31,8 +29,8 @@ else:
31
29
  from nemo_evaluator_launcher.common.logging_utils import logger
32
30
 
33
31
  # Configuration constants
34
- # For below, see docs: https://docs.gitlab.com/api/repository_files/
35
- MAPPING_URL = "TODO: set to github actual one"
32
+ # For below, see docs: https://docs.github.com/en/rest/repos/contents
33
+ MAPPING_URL = "https://raw.githubusercontent.com/NVIDIA-NeMo/Eval/main/packages/nemo-evaluator-launcher/src/nemo_evaluator_launcher/resources/mapping.toml"
36
34
  CACHE_DIR = pathlib.Path.home() / ".nemo-evaluator" / "cache"
37
35
  CACHE_FILENAME = "mapping.toml"
38
36
  INTERNAL_RESOURCES_PKG = "nemo_evaluator_launcher_internal.resources"
@@ -58,25 +56,12 @@ def _download_latest_mapping() -> Optional[bytes]:
58
56
  Returns:
59
57
  Optional[bytes]: Downloaded mapping bytes, or None if download fails.
60
58
  """
61
- raise NotImplementedError("This logic is still not implemented")
62
59
  try:
63
- # Get GitLab token from environment
64
- gitlab_token = os.environ.get("GITLAB_TOKEN", "")
65
- if not gitlab_token:
66
- logger.warning(
67
- "GITLAB_TOKEN not set, download may fail due to authentication"
68
- )
69
- headers = {"PRIVATE-TOKEN": gitlab_token, "Content-Type": "application/json"}
70
-
71
- response = requests.get(MAPPING_URL, headers=headers, timeout=10)
60
+ response = requests.get(MAPPING_URL, timeout=10)
72
61
  response.raise_for_status()
73
62
 
74
- # GitLab API returns JSON with content in base64
75
- response_data = response.json()
76
- if "content" in response_data:
77
- mapping_bytes = base64.b64decode(response_data["content"])
78
- else:
79
- mapping_bytes = response.content
63
+ # For GitHub raw URLs, the response content is the file content directly
64
+ mapping_bytes = response.content
80
65
  assert isinstance(mapping_bytes, bytes)
81
66
 
82
67
  logger.debug("Successfully downloaded mapping from remote URL")
@@ -16,7 +16,7 @@
16
16
  MAJOR = 0
17
17
  MINOR = 1
18
18
  PATCH = 0
19
- PRE_RELEASE = "rc2"
19
+ PRE_RELEASE = "rc4"
20
20
 
21
21
  # Use the following formatting: (major, minor, patch, pre-release)
22
22
  VERSION = (MAJOR, MINOR, PATCH, PRE_RELEASE)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nemo-evaluator-launcher
3
- Version: 0.1.0rc2
3
+ Version: 0.1.0rc4
4
4
  Summary: NeMo Evaluator Launcher - Public API
5
5
  Requires-Python: <3.14,>=3.10
6
6
  Description-Content-Type: text/markdown
@@ -32,4 +32,4 @@ Dynamic: license-file
32
32
 
33
33
  # NeMo Evaluator Launcher
34
34
 
35
- For complete documentation, please see: [docs/nemo-evaluator-launcher/index.md](../../docs/nemo-evaluator-launcher/index.md)
35
+ For complete documentation, please see: [docs/nemo-evaluator-launcher/index.md](https://github.com/NVIDIA-NeMo/Eval/tree/main/docs/nemo-evaluator-launcher/index.md)
@@ -1,5 +1,5 @@
1
1
  nemo_evaluator_launcher/__init__.py,sha256=2F703fttLaIyMHoVD54rptHMXt4AWnplHDrwWJ3e3PM,1930
2
- nemo_evaluator_launcher/package_info.py,sha256=iiYTi86VB4LXTNK8f3A-6ACQe_zxVK_Vf7ojvHXscTI,1427
2
+ nemo_evaluator_launcher/package_info.py,sha256=gsvsf29buE7HrtdCH6Ygr09BputKc65VfnD5z78wuqU,1427
3
3
  nemo_evaluator_launcher/api/__init__.py,sha256=U9q_MJK2vRsFaymanhyy0nD1SNAZQZC8oY45RXPX7ac,1024
4
4
  nemo_evaluator_launcher/api/functional.py,sha256=lsLV0RUvVqd1VG0KAgUDmHPe7DUVFJ5bVaWUuSILx7A,24918
5
5
  nemo_evaluator_launcher/api/types.py,sha256=RXr_QoKdhejj1T9-HybSjd4KTxJmSv0bE0uLUFtF7Zc,3269
@@ -18,7 +18,7 @@ nemo_evaluator_launcher/common/__init__.py,sha256=6-xb4KpG8-lZbWBI42c_Gax-Sq0kMS
18
18
  nemo_evaluator_launcher/common/execdb.py,sha256=ZSMClC2kl6KI28tnHCEtNbbFZ2tLKcSbFeUenbb4E6Q,6547
19
19
  nemo_evaluator_launcher/common/helpers.py,sha256=UVf_XJv6wmNZ7ftOStOmXpCNZes0SJz6h_X4ZTwoFII,6208
20
20
  nemo_evaluator_launcher/common/logging_utils.py,sha256=8UMAQ22t5NAJRDZtI0gVbdKUlNAiG23WQwZZ0HwzOT4,11843
21
- nemo_evaluator_launcher/common/mapping.py,sha256=Pcyv6XGLtimTsjoB5k8Tn245s19gZTbhKogZhJIiM3A,11215
21
+ nemo_evaluator_launcher/common/mapping.py,sha256=tD3jWN7rm9-iJEFlENhYMt7adz8DKs67g3Xd43XIAMM,10731
22
22
  nemo_evaluator_launcher/configs/__init__.py,sha256=lNC_skFLYTOt-arnY3ZQnZMWzHlrtD2wAoHvDcHddwM,673
23
23
  nemo_evaluator_launcher/configs/default.yaml,sha256=JHFjSl3KByhggRMTTo9nesQATVoz18PJIV6KM5Wng64,974
24
24
  nemo_evaluator_launcher/configs/deployment/nim.yaml,sha256=hRJGwCR2XIS3bUFWkXzmroLep81KaHa3Sn2_edfWbkU,1266
@@ -49,9 +49,9 @@ nemo_evaluator_launcher/exporters/registry.py,sha256=XsPTv_SBAFjcErO6BJ3OHqs3EvX
49
49
  nemo_evaluator_launcher/exporters/utils.py,sha256=uXH4b-Hk7_FQyLOjMRB0b3zK-Ksb2rGlSdc-oECfGHI,24756
50
50
  nemo_evaluator_launcher/exporters/wandb.py,sha256=xdaPNw0QM0jZo20UERbViy_vFT-HgbLYzTgmWaev_kk,13430
51
51
  nemo_evaluator_launcher/resources/mapping.toml,sha256=uOg4Y-gDXXskbbba2vuwJ5FLJ3W0kSZz7Fap_nJnFQc,11322
52
- nemo_evaluator_launcher-0.1.0rc2.dist-info/licenses/LICENSE,sha256=DyGb0fqHPZAsd_uXHA0DGcOCqsvrNsImuLC0Ts4s1zI,23413
53
- nemo_evaluator_launcher-0.1.0rc2.dist-info/METADATA,sha256=xN4mDot6B_9JTNYs_c8K-kQMx0CVarVJRXEb0cG5o-E,1242
54
- nemo_evaluator_launcher-0.1.0rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
55
- nemo_evaluator_launcher-0.1.0rc2.dist-info/entry_points.txt,sha256=64z1T5GKSB9PW1fCENQuor6X6eqH1rcfg0NQGfKrEy8,130
56
- nemo_evaluator_launcher-0.1.0rc2.dist-info/top_level.txt,sha256=5PvawNm9TXKqPRjZita1xPOtFiMOipcoRf50FI1iY3s,24
57
- nemo_evaluator_launcher-0.1.0rc2.dist-info/RECORD,,
52
+ nemo_evaluator_launcher-0.1.0rc4.dist-info/licenses/LICENSE,sha256=DyGb0fqHPZAsd_uXHA0DGcOCqsvrNsImuLC0Ts4s1zI,23413
53
+ nemo_evaluator_launcher-0.1.0rc4.dist-info/METADATA,sha256=Qh-pSnJE--iCO90Kv9tGE7SflBaWk-Kp5jm86QfT10g,1282
54
+ nemo_evaluator_launcher-0.1.0rc4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
55
+ nemo_evaluator_launcher-0.1.0rc4.dist-info/entry_points.txt,sha256=64z1T5GKSB9PW1fCENQuor6X6eqH1rcfg0NQGfKrEy8,130
56
+ nemo_evaluator_launcher-0.1.0rc4.dist-info/top_level.txt,sha256=5PvawNm9TXKqPRjZita1xPOtFiMOipcoRf50FI1iY3s,24
57
+ nemo_evaluator_launcher-0.1.0rc4.dist-info/RECORD,,