()
| 99 | |
| 100 | |
| 101 | def 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 | |
| 126 | def check_os(): |
no test coverage detected