@@ -126,8 +126,8 @@ async function initializeWebLLMEngine() {
126
126
document . getElementById ( "download-status" ) . classList . remove ( "hidden" ) ;
127
127
selectedModel = document . getElementById ( "model-selection" ) . value ;
128
128
const config = {
129
- temperature : 0.2 ,
130
- // top_p: 1 ,
129
+ temperature : 0.6 ,
130
+ top_p : 0.9 ,
131
131
context_window_size : - 1 ,
132
132
sliding_window_size : 8192 ,
133
133
prefill_chunk_size : 8192 ,
@@ -194,7 +194,7 @@ const availableModels = webllm.prebuiltAppConfig.model_list
194
194
. map ( ( m ) => m . model_id )
195
195
. filter ( ( model_id ) => (
196
196
model_id . startsWith ( 'Qwen2.5-7B' )
197
- || model_id . startsWith ( 'Hermes-2-Pro-Llama' )
197
+ // || model_id.startsWith('Hermes-2-Pro-Llama')
198
198
|| model_id . startsWith ( 'Hermes-3-Llama-3.1' )
199
199
|| ( model_id . startsWith ( 'Llama-3.1-8B-' ) && ! model_id . endsWith ( '-1k' ) )
200
200
// || model_id.startsWith('DeepSeek-R1-Distill-Llama-')
@@ -229,7 +229,7 @@ async function onMessageSend() {
229
229
230
230
let done = false ;
231
231
let iter = 0 ;
232
- while ( ! done && iter <= 3 ) {
232
+ while ( ! done && iter < 3 ) {
233
233
iter ++ ;
234
234
document . getElementById ( "send" ) . disabled = true ;
235
235
@@ -485,7 +485,7 @@ class ToolHanler {
485
485
constructor ( model_id ) {
486
486
if ( model_id . startsWith ( 'Qwen2.5' ) )
487
487
this . mode = 'qwen' ;
488
- else if ( model_id . startsWith ( 'Hermes-2-Pro-Llama ' ) )
488
+ else if ( model_id . startsWith ( 'Hermes-2-Pro-' ) )
489
489
this . mode = 'hermes2_llama'
490
490
else if ( model_id . startsWith ( 'Hermes-3-Llama' ) )
491
491
this . mode = 'hermes3_llama'
0 commit comments