Skip to content

Commit

Permalink
Remove contributions from Carsten Kragelund
Browse files Browse the repository at this point in the history
  • Loading branch information
cg123 committed Feb 5, 2025
1 parent 9017715 commit 8269f39
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 233 deletions.
37 changes: 0 additions & 37 deletions examples/mega.yml

This file was deleted.

4 changes: 0 additions & 4 deletions mergekit/io/tensor_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class TensorWriter:
weight_map = Dict[str, str]
current_shard: Dict[str, torch.Tensor]
current_shard_size: int
total_size: int
safe_serialization: bool

def __init__(
Expand All @@ -47,7 +46,6 @@ def __init__(
self.weight_map = {}
self.current_shard = {}
self.current_shard_size = 0
self.total_size = 0

def save_tensor(self, name: str, tensor: torch.Tensor, clone: bool = False):
if not tensor.is_contiguous():
Expand All @@ -64,7 +62,6 @@ def save_tensor(self, name: str, tensor: torch.Tensor, clone: bool = False):
tensor = tensor.clone()

self.current_shard[name] = tensor
self.total_size += tensor_size
self.current_shard_size += tensor_size

def flush_current_shard(self):
Expand Down Expand Up @@ -122,7 +119,6 @@ def finalize(self):
{
"metadata": {
"mergekit_version": "0.0.6",
"total_size": self.total_size,
},
"weight_map": self.weight_map,
},
Expand Down
191 changes: 0 additions & 191 deletions mergekit/scripts/megamerge.py

This file was deleted.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ repository = "https://github.com/cg123/mergekit"

[project.scripts]
mergekit-yaml = "mergekit.scripts.run_yaml:main"
mergekit-mega = "mergekit.scripts.megamerge:main"
mergekit-legacy = "mergekit.scripts.legacy:main"
mergekit-layershuffle = "mergekit.scripts.layershuffle:main"
bakllama = "mergekit.scripts.bakllama:main"
Expand Down

2 comments on commit 8269f39

@LumiWasTaken
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Childish act

@cg123
Copy link
Collaborator Author

@cg123 cg123 commented on 8269f39 Feb 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was by no means meant as a snub - the removal was at the request of nyxkrage, see #501.

Please sign in to comment.