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

Feature/kan 162 public ip #582

Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f02bd57
Fix dummy cache allocation
artek0chumak Apr 11, 2024
e5dddfe
Try mps device selecting
artek0chumak Apr 11, 2024
0ca54a5
Rechain reloc
artek0chumak Apr 11, 2024
c76e447
infrastructure
jmikedupont2 Apr 15, 2024
661545f
tiny mixtral running locally
Apr 16, 2024
be69f31
grok
Apr 16, 2024
c98b532
docker changes
Apr 17, 2024
6124622
mixtral working
Apr 17, 2024
3365e2e
Merge branch 'feature/docker-compose'
Apr 17, 2024
1644e89
reformat black
Apr 17, 2024
db5cb42
update config
Apr 29, 2024
a13e098
Merge pull request #1 from jmikedupont2/feature/dht1
Bakobiibizo Apr 29, 2024
f2092ac
remove deps
Apr 29, 2024
5744205
added setup.sh and added .env.example
jmikedupont2 Apr 29, 2024
41cc828
Merge pull request #2 from jmikedupont2/main
Bakobiibizo Apr 29, 2024
e01d410
Merge branch 'main' into setup-and-env.example
Bakobiibizo Apr 29, 2024
1fcc81b
update
Apr 29, 2024
0bfd0cb
updat
Apr 29, 2024
d9ba0ef
onlineer
Apr 29, 2024
2679513
Merge pull request #4 from jmikedupont2/setup-and-env.example
Bakobiibizo Apr 29, 2024
b84507c
changing defaults to set disk space
May 2, 2024
804de46
sauerkraut
May 8, 2024
41a4aba
remove options
May 8, 2024
e59cc85
block count
May 8, 2024
1615f5e
Update dht1.cillium.prod.compute.agentartificial.com.txt
jmikedupont2 May 9, 2024
90c454c
updated
May 9, 2024
04132bd
update port
jmikedupont2 Apr 30, 2024
dea21b5
changing defaults to set disk space
May 2, 2024
cf70fc1
sauerkraut
May 8, 2024
7f90c06
changing setings
May 9, 2024
fa9ffaa
Merge pull request #7 from jmikedupont2/feature/sauerkraut
Bakobiibizo May 10, 2024
e4581cf
Update docker-compose.yml
jmikedupont2 May 13, 2024
82a84bd
Merge pull request #8 from jmikedupont2/patch-1
jmikedupont2 May 16, 2024
9caa5b6
bugfix
May 25, 2024
17287db
public ip
Jun 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reformat black
  • Loading branch information
mike dupont committed Apr 17, 2024
commit 1644e8938552349e636cea2b9f3a42d6ce0ae3a6
2 changes: 1 addition & 1 deletion src/petals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
__version__ = "2.3.0.dev2"


#if not os.getenv("PETALS_IGNORE_DEPENDENCY_VERSION"):
# if not os.getenv("PETALS_IGNORE_DEPENDENCY_VERSION"):
# assert (
# version.parse("4.38.2") <= version.parse(transformers.__version__) < version.parse("4.39.0")
# ), "Please install a proper transformers version: pip install transformers>=4.37.1,<4.39.0"
Expand Down
2 changes: 1 addition & 1 deletion src/petals/client/ptune.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_prompt(self, batch_size):
batch_size,
self.pre_seq_len,
self.config.num_hidden_layers,
self.config.hidden_size
self.config.hidden_size,
# TODO: should be num_hidden_layers - 1
)
intermediate_prompts = intermediate_prompts.permute([2, 0, 1, 3])
Expand Down
1 change: 1 addition & 0 deletions src/petals/client/remote_forward_backward.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Utility functions that call RPC forward or backward on a single remote server
"""

import asyncio
from typing import Iterable, List, Optional, Sequence, Tuple

Expand Down
1 change: 1 addition & 0 deletions src/petals/client/routing/spending_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
The intent is to let Petals participants earn points by helping others while idle (e.g. at night), then use these
points to run their own compute experiments faster. See Section 4 of https://arxiv.org/abs/2209.01188 for discussion.
"""

from abc import ABC, abstractmethod


Expand Down
1 change: 1 addition & 0 deletions src/petals/client/sequential_autograd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
A PyTorch autograd function that runs forward/backward on a sequence of remote servers in a fault-tolerant manner
"""

import asyncio
import itertools
from collections import deque
Expand Down
1 change: 1 addition & 0 deletions src/petals/models/bloom/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Based on https://github.com/huggingface/transformers/commit/ca2a55e9dfb245527b5e1c954fec6ffbb7aef07b
See commit history for authorship.
"""

from typing import Optional, Tuple

import torch
Expand Down
1 change: 1 addition & 0 deletions src/petals/models/falcon/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Based on https://github.com/huggingface/transformers/blob/main/src/transformers/models/falcon/modeling_falcon.py
See commit history for authorship.
"""

import math
from functools import partial
from typing import Optional, Tuple
Expand Down
1 change: 1 addition & 0 deletions src/petals/models/llama/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Based on https://github.com/huggingface/transformers/blob/main/src/transformers/models/llama/modeling_llama.py
See commit history for authorship.
"""

import math
from typing import Optional, Tuple

Expand Down
1 change: 1 addition & 0 deletions src/petals/server/block_functions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module implements server-side computations on served blocks: forward, backward and inference; used by handler
"""

from __future__ import annotations

from typing import Any, AsyncIterator, Dict, Optional, Sequence, Tuple, Union
Expand Down
1 change: 1 addition & 0 deletions src/petals/server/from_pretrained.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- fetch the weights over IPoAC, using a fleet of trained pigeons ( http://www.faqs.org/rfcs/rfc1149.html )

"""

import json
import time
from contextlib import suppress
Expand Down
1 change: 1 addition & 0 deletions src/petals/server/memory_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
For now, the only purpose of this code is to ensure that allocated memory will be deleted properly.

"""

import asyncio
import contextlib
import ctypes
Expand Down
2 changes: 1 addition & 1 deletion src/petals/utils/auto_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def from_pretrained(cls, model_name_or_path: Union[str, os.PathLike, None], *arg
kwargs["use_auth_token"] = True

kwargs["trust_remote_code"] = True
#trust_remote_code=True
# trust_remote_code=True

config = AutoConfig.from_pretrained(model_name_or_path, *args, **kwargs)
if config.model_type not in _CLASS_MAPPING:
Expand Down
1 change: 1 addition & 0 deletions src/petals/utils/convert_block.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Tools for converting transformer blocks, applying quantization and/or tensor parallelism
"""

import re
from enum import Enum
from typing import Optional, Sequence
Expand Down
1 change: 1 addition & 0 deletions src/petals/utils/dht.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Utilities for declaring and retrieving active model layers using a shared DHT.
"""

from __future__ import annotations

import math
Expand Down