You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/models.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1070,7 +1070,10 @@ export class PreTrainedModel extends Callable {
1070
1070
1071
1071
}else{// should be MODEL_TYPES.EncoderOnly
1072
1072
if(modelType!==MODEL_TYPES.EncoderOnly){
1073
-
console.warn(`Model type for '${modelName??config?.model_type}' not found, assuming encoder-only architecture. Please report this at ${GITHUB_ISSUE_URL}.`)
1073
+
consttype=modelName??config?.model_type;
1074
+
if(type!=='custom'){
1075
+
console.warn(`Model type for '${type}' not found, assuming encoder-only architecture. Please report this at ${GITHUB_ISSUE_URL}.`)
0 commit comments