HarshvardhanCn01 commited on
Commit
6fb3a53
·
verified ·
1 Parent(s): 7cc8410

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +6 -6
index.js CHANGED
@@ -7,14 +7,14 @@ const messages = [
7
  },
8
  ];
9
 
10
- const modelLibURLPrefix = "https://huggingface.co/HarshvardhanCn01/";
11
- const modelVersion = "Llama-MLC";
12
 
13
  const appConfig = {
14
  model_list: [
15
  {
16
- model: "https://huggingface.co/HarshvardhanCn01/Llama-MLC",
17
- model_id: "Llama-MLC",
18
  model_lib:
19
  webllm.modelLibURLPrefix + webllm.modelVersion + "/Llama-3.2-1B-Instruct-q4f16_1-ctx4k_cs1k-webgpu.wasm",
20
  vram_required_MB: 3672.07,
@@ -26,7 +26,7 @@ const appConfig = {
26
  ],
27
  };
28
 
29
- let selectedModel = "Llama-MLC";
30
  let engine = null;
31
  let isInitializing = false;
32
 
@@ -114,7 +114,7 @@ async function initializeWebLLMEngine() {
114
  progressContainer.classList.remove("hidden");
115
  statusElement.classList.remove("hidden");
116
 
117
- selectedModel = "Llama-MLC"; // Using the default model
118
  const config = {
119
  temperature: 1.0,
120
  top_p: 1,
 
7
  },
8
  ];
9
 
10
+ const modelLibURLPrefix = "https://huggingface.co/Kanha-AI/";
11
+ const modelVersion = "llama-3.2-1b-test_200steps_bs1_r0_lr2e-06_nq-q4f16_1-MLC";
12
 
13
  const appConfig = {
14
  model_list: [
15
  {
16
+ model: "https://huggingface.co/Kanha-AI/llama-3.2-1b-test_200steps_bs1_r0_lr2e-06_nq-q4f16_1-MLC",
17
+ model_id: "llama-3.2-1b-test_200steps_bs1_r0_lr2e-06_nq-q4f16_1-MLC",
18
  model_lib:
19
  webllm.modelLibURLPrefix + webllm.modelVersion + "/Llama-3.2-1B-Instruct-q4f16_1-ctx4k_cs1k-webgpu.wasm",
20
  vram_required_MB: 3672.07,
 
26
  ],
27
  };
28
 
29
+ let selectedModel = "llama-3.2-1b-test_200steps_bs1_r0_lr2e-06_nq-q4f16_1-MLC";
30
  let engine = null;
31
  let isInitializing = false;
32
 
 
114
  progressContainer.classList.remove("hidden");
115
  statusElement.classList.remove("hidden");
116
 
117
+ selectedModel = "llama-3.2-1b-test_200steps_bs1_r0_lr2e-06_nq-q4f16_1-MLC"; // Using the default model
118
  const config = {
119
  temperature: 1.0,
120
  top_p: 1,