Skip to content

Commit

Permalink
skip_tokens in template fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guinmoon committed May 23, 2024
1 parent bc70df5 commit b237aec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions LLMFarm/Chats/ChatView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ struct ChatView: View {
}

private var debugOverlay: some View {
Text(aiChatModel.cur_t_name)
Text(aiChatModel.cur_eval_token_num.description)
.foregroundColor(.white)
.frame(width: 185, height: 25)
// .padding([.top, .leading], 5)
Expand Down Expand Up @@ -155,7 +155,7 @@ struct ChatView: View {
}
.listStyle(PlainListStyle())
.overlay(scrollDownOverlay, alignment: .bottomTrailing)
.overlay(debugOverlay, alignment: .topLeading)
// .overlay(debugOverlay, alignment: .topLeading)
}
.onChange(of: aiChatModel.AI_typing){ ai_typing in
scrollToBottom(with_animation: false)
Expand Down
3 changes: 3 additions & 0 deletions LLMFarm/Lib/FileHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ func parse_model_setting_template(template_path:String) -> ChatSettingsTemplate{
if (jsonResult_dict!["model_inference"] != nil){
tmp_template.inference = jsonResult_dict!["model_inference"] as! String
}
if (jsonResult_dict!["skip_tokens"] != nil){
tmp_template.skip_tokens = jsonResult_dict!["skip_tokens"] as! String
}
if (jsonResult_dict!["prompt_format"] != nil){
tmp_template.prompt_format = jsonResult_dict!["prompt_format"] as! String
}
Expand Down
2 changes: 1 addition & 1 deletion llmfarm_core.swift

0 comments on commit b237aec

Please sign in to comment.