ariG23498 HF Staff commited on
Commit
5449828
·
verified ·
1 Parent(s): bbc718d

Upload trillionlabs_Tri-70B-preview-SFT_0.py with huggingface_hub

Browse files
trillionlabs_Tri-70B-preview-SFT_0.py CHANGED
@@ -7,14 +7,8 @@
7
  # ///
8
 
9
  try:
10
- # Use a pipeline as a high-level helper
11
- from transformers import pipeline
12
-
13
- pipe = pipeline("text-generation", model="trillionlabs/Tri-70B-preview-SFT")
14
- messages = [
15
- {"role": "user", "content": "Who are you?"},
16
- ]
17
- pipe(messages)
18
  with open('trillionlabs_Tri-70B-preview-SFT_0.txt', 'w') as f:
19
  f.write('Everything was good in trillionlabs_Tri-70B-preview-SFT_0.txt')
20
  except Exception as e:
 
7
  # ///
8
 
9
  try:
10
+ from huggingface_hub import login
11
+ login(new_session=False)
 
 
 
 
 
 
12
  with open('trillionlabs_Tri-70B-preview-SFT_0.txt', 'w') as f:
13
  f.write('Everything was good in trillionlabs_Tri-70B-preview-SFT_0.txt')
14
  except Exception as e: