You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

auto_gen_example_yml.py 536 B

1234567891011121314151617181920
  1. import os
  2. dir = 'Examples'
  3. if __name__ == '__main__':
  4. res = []
  5. # loop all the files of `dir`
  6. for root, dirs, files in os.walk(dir):
  7. for file in files:
  8. with open(os.path.join(root, file), 'r', encoding='utf-8') as f:
  9. first_line = f.readline()
  10. title = first_line.split('#')[-1]
  11. filename = file.split('/')[-1].split('\\')[-1]
  12. res.append(f'- {title.strip()}: {dir}/{filename}')
  13. for item in res:
  14. print(item)

C#/.NET上易用的LLM高性能推理框架,支持LLaMA和LLaVA系列模型。

Contributors (1)