MCPcopy Create free account
hub / github.com/huggingface/transformers / get_git_info

Function get_git_info

examples/seq2seq/utils.py:214–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212
213
214def get_git_info():
215 repo = git.Repo(search_parent_directories=True)
216 repo_infos = {
217 "repo_id": str(repo),
218 "repo_sha": str(repo.head.object.hexsha),
219 "repo_branch": str(repo.active_branch),
220 }
221 return repo_infos
222
223
224ROUGE_KEYS = ["rouge1", "rouge2", "rougeL"]

Callers 2

__init__Method · 0.90
save_git_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected