Skip to content

Commit

Permalink
chore: Update package names and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
endomorphosis committed Sep 2, 2024
1 parent ec50ee5 commit d576d20
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from transformers import AutoModel
from ipfs_transformers import AutoModel
from ipfs_transformers_py import AutoModel

model = AutoModel.from_auto_download("bge-small-en-v1.5")
print(dir(model))
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __init__(self, collection=None, meta=None):
"s3_cfg": self.s3cfg,
"role": self.role
}
from ipfs_transformers.model_manager_bak import model_manager as model_manager
from ipfs_transformers_py.model_manager_bak import model_manager as model_manager
self.model_manager = model_manager(collection, meta)
self.model_manager.load_collection_cache()
self.model_manager.state()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test(self, **kwargs):
from transformers import AutoModel
#model = AutoModel.from_pretrained("google-bert/bert-base-cased")
#what do we want to call the library?
from ipfs_transformers import AutoModel
from ipfs_transformers_py import AutoModel
#do we want to use the ipfs hash or the model name? This requires IPNS to be enabled
#model = T5Model.from_ipfs("QmWJr4M1VN5KpJjqCsJsJg7PDmFoqQYs1BKpYxcdMY1qkh")
#model = AutoModelForSeq2SeqLM.from_auto_download("t0") # 40GB test this afterwards
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ipfs_kit@git+https://github.com/endomorphosis/ipfs_kit.git
ipfs_kit_py
ipfs_model_manager_py
transformers
torch
torchvision
Expand Down

0 comments on commit d576d20

Please sign in to comment.