vikhyat / moondream

tiny vision language model
https://moondream.ai
Apache License 2.0
4.88k stars 433 forks source link

How do I uninstall and remove the model it downloaded #41

Open jamieduk opened 7 months ago

jamieduk commented 7 months ago

How do I uninstall and remove the model it downloaded as it was installed on a raspberry pi and it took all my space lol please help undo the install esp the models i cant find where the model files downloaded to iv tried using find and gui search tool aswell i need the install directories the default folders for the following files install to (i dont mind some of the obvious stuff im concerned wiuth the hard to find big model files .safesearch files for example there like 5 gb and 2 gb

(myenv) jay@jnetai:~/Documents/Scripts/AI/MoonDream $ python sample.py --image /home/jay/Documents/Scripts/AI/MoonDream/Brick.jpg --prompt "what is this a picture of" tokenizer_config.json: 100%|███████████████| 7.34k/7.34k [00:00<00:00, 29.1MB/s] vocab.json: 100%|████████████████████████████| 798k/798k [00:00<00:00, 10.4MB/s] merges.txt: 100%|████████████████████████████| 456k/456k [00:00<00:00, 2.04MB/s] tokenizer.json: 100%|██████████████████████| 2.11M/2.11M [00:00<00:00, 6.75MB/s] added_tokens.json: 100%|███████████████████| 1.08k/1.08k [00:00<00:00, 6.85MB/s] special_tokens_map.json: 100%|█████████████████| 441/441 [00:00<00:00, 2.64MB/s] config.json: 100%|█████████████████████████████| 323/323 [00:00<00:00, 2.17MB/s] model.safetensors.index.json: 100%|█████████| 59.0k/59.0k [00:00<00:00, 804kB/s] model-00001-of-00002.safetensors: 100%|████| 5.00G/5.00G [03:14<00:00, 25.7MB/s] model-00002-of-00002.safetensors: 100%|████| 2.57G/2.57G [01:59<00:00, 21.5MB/s] Downloading shards: 100%|████████████████████████| 2/2 [05:14<00:00, 157.14s/it] Loading checkpoint shards: 50%|████████▌ | 1/2 [01:56<01:56, 116.48s/it]Killed

vikhyat commented 7 months ago

can you check ~/. cache/huggingface/transformers/ ?

sujitvasanth commented 7 months ago

Hi I think its stored in your cache/huggingface folder ie for me /home/sujit/.cache/huggingface

jamieduk commented 7 months ago

nice ty i have reclaimed the space and saved the day i wish it was more clear and also have options to put the models where we want for example i want to make a symbolic link and have the models all in 1 place on 1 drive a usb connected drive using symbolic links i can do the symbolic link part but how do i set the symbolic link in the app so i can use this problem with models sotred somewhoere other than cache or are these files not needed anyway and will still work without it?