File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 501
501
"source" : [
502
502
" # @title Chat completion\n " ,
503
503
" \n " ,
504
+ " _region = REGION\n " ,
505
+ " REGION = TPU_DEPLOYMENT_REGION\n " ,
506
+ " \n " ,
504
507
" ENDPOINT_RESOURCE_NAME = \" projects/{}/locations/{}/endpoints/{}\" .format(\n " ,
505
- " PROJECT_ID, TPU_DEPLOYMENT_REGION , endpoints[\" hexllm_tpu\" ].name\n " ,
508
+ " PROJECT_ID, REGION , endpoints[\" hexllm_tpu\" ].name\n " ,
506
509
" )\n " ,
507
510
" \n " ,
508
511
" # @title Chat Completions Inference\n " ,
564
567
" )\n " ,
565
568
" print(model_response)\n " ,
566
569
" \n " ,
570
+ " REGION = _region\n " ,
571
+ " \n " ,
567
572
" # @markdown Click \" Show Code\" to see more details."
568
573
]
569
574
},
Original file line number Diff line number Diff line change 489
489
"source" : [
490
490
" # @title Chat completion\n " ,
491
491
" \n " ,
492
+ " _region = REGION\n " ,
493
+ " REGION = TPU_DEPLOYMENT_REGION\n " ,
494
+ " \n " ,
492
495
" ENDPOINT_RESOURCE_NAME = \" projects/{}/locations/{}/endpoints/{}\" .format(\n " ,
493
- " PROJECT_ID, TPU_DEPLOYMENT_REGION , endpoints[\" hexllm_tpu\" ].name\n " ,
496
+ " PROJECT_ID, REGION , endpoints[\" hexllm_tpu\" ].name\n " ,
494
497
" )\n " ,
495
498
" \n " ,
496
499
" # @title Chat Completions Inference\n " ,
552
555
" )\n " ,
553
556
" print(model_response)\n " ,
554
557
" \n " ,
558
+ " REGION = _region\n " ,
559
+ " \n " ,
555
560
" # @markdown Click \" Show Code\" to see more details."
556
561
]
557
562
},
You can’t perform that action at this time.
0 commit comments