mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
formatting
This commit is contained in:
parent
ca11e9e8c3
commit
4858f122db
@ -217,9 +217,7 @@ class BLOOMSharded(BLOOM):
|
||||
|
||||
return linear
|
||||
|
||||
module.linear = replace_linear(
|
||||
state
|
||||
)
|
||||
module.linear = replace_linear(state)
|
||||
|
||||
else:
|
||||
tensor = tensor.to(device)
|
||||
|
@ -315,9 +315,7 @@ class GalacticaSharded(Galactica):
|
||||
|
||||
return linear
|
||||
|
||||
module.linear = replace_linear(
|
||||
state
|
||||
)
|
||||
module.linear = replace_linear(state)
|
||||
|
||||
else:
|
||||
tensor = tensor.to(device)
|
||||
|
Loading…
Reference in New Issue
Block a user