Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create model index in DHT #491

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Create model index in DHT #491

merged 1 commit into from
Aug 31, 2023

Conversation

borzunov
Copy link
Collaborator

@borzunov borzunov commented Aug 31, 2023

This PR creates an index of models hosted in the swarm - it is useful to know which custom models users run and display them at https://health.petals.dev as "not officially supported" models.

After this PR:

In [1]: import hivemind 

In [2]: from petals.constants import PUBLIC_INITIAL_PEERS                                                                  
                                                                                                    
In [3]: dht = hivemind.DHT(initial_peers=PUBLIC_INITIAL_PEERS, client_mode=True, start=True)
                                                                    
In [4]: dht.get("_petals.models")                                                                  
Out[4]: ValueWithExpiration(value={'llama-65b-hf': ValueWithExpiration(value={'num_blocks': 80, 'repository': 'https://huggingface.co/huggyllama/llama-65b'}, expiration_time=1693462442.2670343)}, expiration
_time=1693462442.2670343)        

@borzunov borzunov merged commit 6ef6bf5 into main Aug 31, 2023
9 checks passed
@borzunov borzunov deleted the model-index branch August 31, 2023 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant