File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ async function main() {
99 const fileId = 'file-bf72b951-fa1a-41af-a152-fe385dca0201' ;
1010
1111 // Create a model
12- const fineTuneModel = await together . fineTune . create ( {
12+ const fineTuneModel = await together . fineTuning . create ( {
1313 model : 'meta-llama/Meta-Llama-3-8B' ,
1414 training_file : fileId ,
1515 } ) ;
@@ -20,7 +20,7 @@ async function main() {
2020
2121 //Wait for completion
2222 while ( true ) {
23- const fineTuneStatus = await together . fineTune . retrieve ( fineTuneId ) ;
23+ const fineTuneStatus = await together . fineTuning . retrieve ( fineTuneId ) ;
2424 if ( fineTuneStatus . status === 'completed' ) {
2525 break ;
2626 } else {
@@ -29,13 +29,13 @@ async function main() {
2929 }
3030
3131 //List the model events
32- const modelEvents = await together . fineTune . listEvents ( fineTuneId ) ;
32+ const modelEvents = await together . fineTuning . listEvents ( fineTuneId ) ;
3333 for ( const e of modelEvents . data ) {
3434 console . log ( e ) ;
3535 }
3636
3737 //Download the model
38- const down = await together . fineTune . download ( {
38+ const down = await together . fineTuning . download ( {
3939 ft_id : fineTuneId ,
4040 } ) ;
4141 console . log ( JSON . stringify ( down ) ) ;
You can’t perform that action at this time.
0 commit comments