Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ function getNormalizedConfig(config) {
case 'llama':
case 'llama4_text':
case 'nanochat':
case 'apertus':
case 'arcee':
case 'lfm2':
case 'smollm3':
Expand Down
9 changes: 9 additions & 0 deletions src/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -4766,6 +4766,13 @@ export class NanoChatModel extends NanoChatPreTrainedModel {}
export class NanoChatForCausalLM extends NanoChatPreTrainedModel {}
//////////////////////////////////////////////////

//////////////////////////////////////////////////
// Apertus models
export class ApertusPreTrainedModel extends PreTrainedModel {}
export class ApertusModel extends ApertusPreTrainedModel {}
export class ApertusForCausalLM extends ApertusPreTrainedModel {}
//////////////////////////////////////////////////

//////////////////////////////////////////////////
// Arcee models
export class ArceePreTrainedModel extends PreTrainedModel {}
Expand Down Expand Up @@ -8259,6 +8266,7 @@ const MODEL_MAPPING_NAMES_DECODER_ONLY = new Map([
['gpt_neox', ['GPTNeoXModel', GPTNeoXModel]],
['codegen', ['CodeGenModel', CodeGenModel]],
['llama', ['LlamaModel', LlamaModel]],
['apertus', ['ApertusModel', ApertusModel]],
['nanochat', ['NanoChatModel', NanoChatModel]],
['arcee', ['ArceeModel', ArceeModel]],
['lfm2', ['Lfm2Model', Lfm2Model]],
Expand Down Expand Up @@ -8372,6 +8380,7 @@ const MODEL_FOR_CAUSAL_LM_MAPPING_NAMES = new Map([
['codegen', ['CodeGenForCausalLM', CodeGenForCausalLM]],
['llama', ['LlamaForCausalLM', LlamaForCausalLM]],
['nanochat', ['NanoChatForCausalLM', NanoChatForCausalLM]],
['apertus', ['ApertusForCausalLM', ApertusForCausalLM]],
['llama4_text', ['Llama4ForCausalLM', Llama4ForCausalLM]],
['arcee', ['ArceeForCausalLM', ArceeForCausalLM]],
['lfm2', ['Lfm2ForCausalLM', Lfm2ForCausalLM]],
Expand Down
Loading