mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 17:31:18 +08:00
chore(mlx-lm): add missing model_type for starcoder2 (#522)
This commit is contained in:
parent
3655bfc3bd
commit
1e3daea3bb
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user