ariG23498 HF Staff commited on
Commit
02a93e6
·
verified ·
1 Parent(s): 0057c16

Upload rednote-hilab_dots.vlm1.inst_0.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. rednote-hilab_dots.vlm1.inst_0.py +4 -0
rednote-hilab_dots.vlm1.inst_0.py CHANGED
@@ -26,6 +26,10 @@ try:
26
  },
27
  ]
28
  pipe(text=messages)
 
 
 
 
29
  with open('rednote-hilab_dots.vlm1.inst_0.txt', 'w') as f:
30
  f.write('Everything was good in rednote-hilab_dots.vlm1.inst_0.txt')
31
  except Exception as e:
 
26
  },
27
  ]
28
  pipe(text=messages)
29
+
30
+ # Load model directly
31
+ from transformers import AutoModelForCausalLM
32
+ model = AutoModelForCausalLM.from_pretrained("rednote-hilab/dots.vlm1.inst", torch_dtype="auto"),
33
  with open('rednote-hilab_dots.vlm1.inst_0.txt', 'w') as f:
34
  f.write('Everything was good in rednote-hilab_dots.vlm1.inst_0.txt')
35
  except Exception as e: