mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 16:26:59 +00:00
10 lines
270 B
Python
10 lines
270 B
Python
from os import walk, path
|
|
|
|
|
|
def models(models_home='.', *args, **kwargs):
|
|
for root, _, files in walk(models_home):
|
|
for file in files:
|
|
base, ext = path.splitext(file)
|
|
if ext == '.bin':
|
|
yield base, path.join(root, file)
|