MCPcopy Create free account
hub / github.com/Yuan-Li-FNLP/R3-RAG / get_version

Function get_version

train/LLaMA-Factory/setup.py:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def get_version() -> str:
23 with open(os.path.join("src", "llamafactory", "extras", "env.py"), encoding="utf-8") as f:
24 file_content = f.read()
25 pattern = r"{}\W*=\W*\"([^\"]+)\"".format("VERSION")
26 (version,) = re.findall(pattern, file_content)
27 return version
28
29
30def get_requires() -> List[str]:

Callers 1

mainFunction · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected