@@ -126,8 +126,8 @@ async function initializeWebLLMEngine() {
126126 document . getElementById ( "download-status" ) . classList . remove ( "hidden" ) ;
127127 selectedModel = document . getElementById ( "model-selection" ) . value ;
128128 const config = {
129- temperature : 0.2 ,
130- // top_p: 1 ,
129+ temperature : 0.6 ,
130+ top_p : 0.9 ,
131131 context_window_size : - 1 ,
132132 sliding_window_size : 8192 ,
133133 prefill_chunk_size : 8192 ,
@@ -194,7 +194,7 @@ const availableModels = webllm.prebuiltAppConfig.model_list
194194 . map ( ( m ) => m . model_id )
195195 . filter ( ( model_id ) => (
196196 model_id . startsWith ( 'Qwen2.5-7B' )
197- || model_id . startsWith ( 'Hermes-2-Pro-Llama' )
197+ // || model_id.startsWith('Hermes-2-Pro-Llama')
198198 || model_id . startsWith ( 'Hermes-3-Llama-3.1' )
199199 || ( model_id . startsWith ( 'Llama-3.1-8B-' ) && ! model_id . endsWith ( '-1k' ) )
200200// || model_id.startsWith('DeepSeek-R1-Distill-Llama-')
@@ -229,7 +229,7 @@ async function onMessageSend() {
229229
230230 let done = false ;
231231 let iter = 0 ;
232- while ( ! done && iter <= 3 ) {
232+ while ( ! done && iter < 3 ) {
233233 iter ++ ;
234234 document . getElementById ( "send" ) . disabled = true ;
235235
@@ -485,7 +485,7 @@ class ToolHanler {
485485 constructor ( model_id ) {
486486 if ( model_id . startsWith ( 'Qwen2.5' ) )
487487 this . mode = 'qwen' ;
488- else if ( model_id . startsWith ( 'Hermes-2-Pro-Llama ' ) )
488+ else if ( model_id . startsWith ( 'Hermes-2-Pro-' ) )
489489 this . mode = 'hermes2_llama'
490490 else if ( model_id . startsWith ( 'Hermes-3-Llama' ) )
491491 this . mode = 'hermes3_llama'
0 commit comments