Skip to content

Commit

Permalink
rm references to fs2 modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekgfb committed Apr 5, 2024
1 parent 6efbd08 commit 4256bbd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions quantize.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def create_quantized_state_dict(self) -> Dict:

for fqn, mod in self.mod.named_modules():
# print(f"maybe? quantize {fqn}...{type(mod)}")
if isinstance(mod, torch.nn.Linear) or isinstance(mod, fsLinear):
if isinstance(mod, torch.nn.Linear):
# print(f"candidate {fqn}, nodetype {self.node_type}")
if (
(self.node_type == "*")
Expand Down Expand Up @@ -371,8 +371,6 @@ def create_quantized_state_dict(self) -> Dict:
for fqn, mod in self.mod.named_modules():
if (
isinstance(mod, nn.Embedding)
or isinstance(mod, fsEmbedding)
or isinstance(mod, fsStandardEmbedding)
):
# print("****")
# print(f"Embedding identified: {fqn, mod}")
Expand Down

0 comments on commit 4256bbd

Please sign in to comment.