-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
The standard_layout detector for Python requires that all code be in a directory named src/. However, in practice, it seems like a common practice in Python to name the source directory after the project itself; either the name of the root directory or some variation of it. For example:
- https://github.com/pandas-dev/pandas/tree/main/pandas
- https://github.com/numpy/numpy/tree/main/numpy
- https://github.com/vllm-project/vllm/tree/main/vllm
- https://github.com/scikit-learn/scikit-learn/tree/main/sklearn
- https://github.com/apache/iceberg-python/tree/main/pyiceberg
Of course, src/ is also seen sometimes, e.g.:
- https://github.com/huggingface/transformers/tree/main/src/transformers
- https://github.com/llamastack/llama-stack/tree/main/src/llama_stack
So I would say that both of these patterns are relatively "standard" layouts, so I would expect models trained on common practice to be comfortable with both.
Metadata
Metadata
Assignees
Labels
No labels