mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-23 23:28:12 +08:00
chore(mlx-lm): add missing model_type for starcoder2 (#522)
This commit is contained in:
@@ -167,6 +167,7 @@ class Starcoder2Model(nn.Module):
|
|||||||
class Model(nn.Module):
|
class Model(nn.Module):
|
||||||
def __init__(self, args: ModelArgs):
|
def __init__(self, args: ModelArgs):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
self.model_type = args.model_type
|
||||||
self.model = Starcoder2Model(args)
|
self.model = Starcoder2Model(args)
|
||||||
# This is for 15B starcoder2 since it doesn't tie word embeddings
|
# This is for 15B starcoder2 since it doesn't tie word embeddings
|
||||||
if not args.tie_word_embeddings:
|
if not args.tie_word_embeddings:
|
||||||
|
Reference in New Issue
Block a user