@@ -10,6 +10,16 @@ import howInstructLabsSyntheticDataGenerationEnhancesLLM from '/@/lib/images/how
10
10
import instructLabTitleImage from ' /@/lib/images/instructLabTitleImage.png' ;
11
11
import AboutInstructLabDiscoverCard from ' ../../lib/instructlab/AboutInstructLabDiscoverCard.svelte' ;
12
12
import AboutInstructLabExploreCard from ' ../../lib/instructlab/AboutInstructLabExploreCard.svelte' ;
13
+ import { configuration } from ' /@/stores/extensionConfiguration' ;
14
+ import { onMount } from ' svelte' ;
15
+
16
+ let experimentalTuning = false ;
17
+
18
+ onMount (() => {
19
+ configuration .subscribe (val => {
20
+ experimentalTuning = val ?.experimentalTuning ?? false ;
21
+ });
22
+ });
13
23
14
24
function start(): void {
15
25
router .goto (' /tune/start' );
@@ -19,6 +29,10 @@ const instructLabDocumentation = 'https://docs.instructlab.ai/';
19
29
const instructLabHuggingFace = ' https://huggingface.co/instructlab' ;
20
30
const instructLabSamples = ' ' ;
21
31
32
+ async function enableFineTuning(): Promise <void > {
33
+ await studioClient .updateExtensionConfiguration ({ experimentalTuning: true });
34
+ }
35
+
22
36
async function openInstructLabDocumentation(): Promise <void > {
23
37
await studioClient .openURL (instructLabDocumentation );
24
38
}
@@ -68,7 +82,11 @@ let cards: AboutInstructLabExploreCardInterface[] = [
68
82
69
83
<NavPage title ="About InstructLab" searchEnabled ={false }>
70
84
<div slot =" additional-actions" >
71
- <Button icon ={faPlusCircle } on:click ={start }>Start Fine Tuning</Button >
85
+ {#if experimentalTuning }
86
+ <Button icon ={faPlusCircle } on:click ={start }>Start Fine Tuning</Button >
87
+ {:else }
88
+ <Button icon ={faPlusCircle } on:click ={enableFineTuning }>Enable Experimental Fine Tuning</Button >
89
+ {/if }
72
90
</div >
73
91
<div slot =" content" class =" flex flex-col min-w-full min-h-full" >
74
92
<div class =" min-w-full min-h-full flex-1" >
0 commit comments