• Yang Yong(雍洋)'s avatar
    refactor seko model adapter (#298) · d7c99b0c
    Yang Yong(雍洋) authored
    
    
    ## Contributing Guidelines
    
    We have prepared a `pre-commit` hook to enforce consistent code
    formatting across the project. If your code complies with the standards,
    you should not see any errors, you can clean up your code following the
    steps below:
    
    1. Install the required dependencies:
    
    ```shell
        pip install ruff pre-commit
    ```
    
    2. Then, run the following command before commit:
    
    ```shell
        pre-commit run --all-files
    ```
    
    3. Finally, please double-check your code to ensure it complies with the
    following additional specifications as much as possible:
    - Avoid hard-coding local paths: Make sure your submissions do not
    include hard-coded local paths, as these paths are specific to
    individual development environments and can cause compatibility issues.
    Use relative paths or configuration files instead.
    - Clear error handling: Implement clear error-handling mechanisms in
    your code so that error messages can accurately indicate the location of
    the problem, possible causes, and suggested solutions, facilitating
    quick debugging.
    - Detailed comments and documentation: Add comments to complex code
    sections and provide comprehensive documentation to explain the
    functionality of the code, input-output requirements, and potential
    error scenarios.
    
    Thank you for your contributions!
    
    ---------
    Co-authored-by: default avatargushiqiao <975033167@qq.com>
    d7c99b0c
quant_adapter.py 1.22 KB