johnsmith0031 / alpaca_lora_4bit

MIT License
533 stars 84 forks source link

Tests #134

Closed alex4321 closed 1 year ago

alex4321 commented 1 year ago

Since I am probably going to use the library now more and send some more patches in case I will find some real/potential problems (like #133 ) I think it may be usefull to add some autotests to the library.

So far it covers the following cases:

So what drawbacks may be improved in the future patches (but probably it may be useful in the current state):

So, now to run these tests you need to do something like

python -m pip install . # To rebuild native stuff and generally reinstall the package
python -m pytest # To run tests

not sure what is the best way to make pytest run installation before tests (or is it good idea at all)

johnsmith0031 commented 1 year ago

Thanks for your contribution!