r/MachineLearning • • Sep 12 '20

Project [P] codequestion: Ask coding questions directly from the terminal

657 Upvotes

45 comments sorted by

View all comments

14

u/LaMifour Sep 12 '20

Nice. A friend and I thought of that few months ago. We dl the very same stack exchange zips and thought to use some text matching algo/comlands on it. The main caveats was storage. How much user storage do you use?

19

u/davidmezzetti Sep 12 '20

Thanks. With the compressed and uncompressed files, it's 100GB. The process only takes questions that have an accepted answer with at least 5 upvotes, which comes out to ~500k questions.

The pre-trained model is around 500MB compressed.

12

u/Rex_In_Mundo Sep 12 '20

Great idea, but isn't 100 GB worth of space asking too much?

23

u/RoughMedicine Sep 12 '20

That's only for the training process. For users, you'll download a 542Mb zip file that becomes 1.3Gb uncompressed.

That file has the questions database (1Gb) and the ML model itself (embeddings and stuff).

8

u/LaMifour Sep 12 '20

Yes you are right. I installed codequestion on a 128gB ssd and was concerned but simple du command shows it takes 1.2GB of space uncompressed for the user!

6

u/davidmezzetti Sep 12 '20

Saw the note on uninstalling, please do file an issue (https://github.com/neuml/codequestion/issues) with what the expected behavior would be.

4

u/slomotion Sep 13 '20

How do you keep the model up-to-date?

1

u/davidmezzetti Sep 13 '20

Requires an index rebuild which is due. Most of the top questions are surprisingly old, at least for general programming questions.