Spaces:
Sleeping
Sleeping
Bobber commited on
Commit ·
a9fb427
1
Parent(s): 47a7f69
revert to 9b50a208 + modelId only, thinking enabled
Browse files- dist/assets/{highlighted-body-OFNGDK62-GrPWNwAd.js → highlighted-body-OFNGDK62-DCQ8fmWe.js} +1 -1
- dist/assets/{index-CkY69TcB.js → index-ChkjxRpW.js} +0 -0
- dist/assets/mermaid-GHXKKRXX-B2s-uAme.js +0 -1
- dist/assets/mermaid-GHXKKRXX-BpYmom9f.js +1 -0
- dist/index.html +1 -1
- src/hooks/LLMProvider.tsx +2 -3
dist/assets/{highlighted-body-OFNGDK62-GrPWNwAd.js → highlighted-body-OFNGDK62-DCQ8fmWe.js}
RENAMED
|
@@ -1 +1 @@
|
|
| 1 |
-
import{a as e,n as t,o as n,r,t as i}from"./index-
|
|
|
|
| 1 |
+
import{a as e,n as t,o as n,r,t as i}from"./index-ChkjxRpW.js";var a=n(),o=e(),s=({code:e,language:n,raw:s,className:c,startLine:l,lineNumbers:u,...d})=>{let{shikiTheme:f}=(0,a.useContext)(r),p=t(),[m,h]=(0,a.useState)(s);return(0,a.useEffect)(()=>{if(!p){h(s);return}let t=p.highlight({code:e,language:n,themes:f},e=>{h(e)});t&&h(t)},[e,n,f,p,s]),(0,o.jsx)(i,{className:c,language:n,lineNumbers:u,result:m,startLine:l,...d})};export{s as HighlightedCodeBlockBody};
|
dist/assets/{index-CkY69TcB.js → index-ChkjxRpW.js}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
dist/assets/mermaid-GHXKKRXX-B2s-uAme.js
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
import{i as e}from"./index-CkY69TcB.js";export{e as Mermaid};
|
|
|
|
|
|
dist/assets/mermaid-GHXKKRXX-BpYmom9f.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
import{i as e}from"./index-ChkjxRpW.js";export{e as Mermaid};
|
dist/index.html
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⚛️</text></svg>"
|
| 9 |
/>
|
| 10 |
<title>Nemotron-3-Nano WebGPU</title>
|
| 11 |
-
<script type="module" crossorigin src="/assets/index-
|
| 12 |
<link rel="stylesheet" crossorigin href="/assets/index-DkUc2fKb.css">
|
| 13 |
</head>
|
| 14 |
<body>
|
|
|
|
| 8 |
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⚛️</text></svg>"
|
| 9 |
/>
|
| 10 |
<title>Nemotron-3-Nano WebGPU</title>
|
| 11 |
+
<script type="module" crossorigin src="/assets/index-ChkjxRpW.js"></script>
|
| 12 |
<link rel="stylesheet" crossorigin href="/assets/index-DkUc2fKb.css">
|
| 13 |
</head>
|
| 14 |
<body>
|
src/hooks/LLMProvider.tsx
CHANGED
|
@@ -54,8 +54,8 @@ export function LLMProvider({ modelId, children, onReady }: LLMProviderProps) {
|
|
| 54 |
const [isGenerating, setIsGenerating] = useState(false);
|
| 55 |
const isGeneratingRef = useRef(false);
|
| 56 |
const [tps, setTps] = useState(0);
|
| 57 |
-
const [thinkingMode, setThinkingMode] = useState<ThinkingMode>("
|
| 58 |
-
const thinkingModeRef = useRef<ThinkingMode>("
|
| 59 |
const [systemPrompt, setSystemPrompt] = useState(MODEL_CONFIG.defaultSystemPrompt);
|
| 60 |
const systemPromptRef = useRef(MODEL_CONFIG.defaultSystemPrompt);
|
| 61 |
|
|
@@ -196,7 +196,6 @@ export function LLMProvider({ modelId, children, onReady }: LLMProviderProps) {
|
|
| 196 |
{
|
| 197 |
max_new_tokens: 4096,
|
| 198 |
do_sample: true,
|
| 199 |
-
eos_token_id: [2, 11],
|
| 200 |
streamer,
|
| 201 |
stopping_criteria: stoppingCriteria.current,
|
| 202 |
tokenizer_encode_kwargs: {
|
|
|
|
| 54 |
const [isGenerating, setIsGenerating] = useState(false);
|
| 55 |
const isGeneratingRef = useRef(false);
|
| 56 |
const [tps, setTps] = useState(0);
|
| 57 |
+
const [thinkingMode, setThinkingMode] = useState<ThinkingMode>("enabled");
|
| 58 |
+
const thinkingModeRef = useRef<ThinkingMode>("enabled");
|
| 59 |
const [systemPrompt, setSystemPrompt] = useState(MODEL_CONFIG.defaultSystemPrompt);
|
| 60 |
const systemPromptRef = useRef(MODEL_CONFIG.defaultSystemPrompt);
|
| 61 |
|
|
|
|
| 196 |
{
|
| 197 |
max_new_tokens: 4096,
|
| 198 |
do_sample: true,
|
|
|
|
| 199 |
streamer,
|
| 200 |
stopping_criteria: stoppingCriteria.current,
|
| 201 |
tokenizer_encode_kwargs: {
|