mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-06-19 15:52:08 +00:00
turn tp embed back on
This commit is contained in:
parent
fc778e46fb
commit
15a6b79c7e
@ -499,11 +499,11 @@ class FlashGPTNeoXModel(FlashGPTNeoXPreTrainedModel):
|
||||
if config.vocab_size % self.tp_world_size == 0:
|
||||
self.tp_embeddings = True
|
||||
|
||||
# if self.tp_embeddings:
|
||||
# self.embed_in = TensorParallelEmbedding(
|
||||
# config.vocab_size, config.hidden_size, process_group=process_group
|
||||
# )
|
||||
# else:
|
||||
if self.tp_embeddings:
|
||||
self.embed_in = TensorParallelEmbedding(
|
||||
config.vocab_size, config.hidden_size, process_group=process_group
|
||||
)
|
||||
else:
|
||||
self.embed_in = nn.Embedding(config.vocab_size, config.hidden_size)
|
||||
|
||||
self.layers = nn.ModuleList(
|
||||
|
Loading…
Reference in New Issue
Block a user