Skip to content

Commit

Permalink
[djl-convert] Exclude models in includeTokenTypes (#3435)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyang16 authored Aug 21, 2024
1 parent 29dea2a commit 99ed366
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ def save_rust_model(self, model_info, args: Namespace, temp_dir: str,
os.makedirs(temp_dir)

tokenizer = AutoTokenizer.from_pretrained(model_id)
include_types = config.model_type != "distilbert"
include_types = config.model_type not in [
"distilbert", "mistral", "qwen2", "gemma2"
]
hf_pipeline = PipelineHolder(tokenizer, ModelHolder(config))
try:
# Save tokenizer.json to temp dir
Expand Down

0 comments on commit 99ed366

Please sign in to comment.