MCPcopy Create free account
hub / github.com/InternLM/InternBootcamp / check_verl

Function check_verl

verl/scripts/diagnose.py:101–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100
101def check_verl():
102 print("----------verl Info-----------")
103 try:
104 sys.path.insert(0, os.getcwd())
105 import verl
106
107 print("Version :", verl.__version__)
108 verl_dir = os.path.dirname(verl.__file__)
109 print("Directory :", verl_dir)
110 try:
111 commit_hash = _get_current_git_commit()
112 print("Commit Hash :", commit_hash)
113 except AttributeError:
114 print("Commit hash not found. ")
115 except ImportError as e:
116 print(f"No verl installed: {e}")
117 except Exception as e:
118 import traceback
119
120 if not isinstance(e, IOError):
121 print("An error occurred trying to import verl.")
122 print("This is very likely due to missing or incompatible library files.")
123 print(traceback.format_exc())
124
125
126def check_os():

Callers 1

diagnose.pyFile · 0.85

Calls 1

_get_current_git_commitFunction · 0.85

Tested by

no test coverage detected