mimimumumomo commited on
Commit
681fde0
·
verified ·
1 Parent(s): ecd00fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -49,15 +49,21 @@ final_answer = FinalAnswerTool()
49
  # custom_role_conversions=None,
50
  # )
51
 
 
 
 
 
 
 
 
 
52
  model = TransformersModel(
53
- model_id="bigscience/bloomz-1b1",
54
- device_map="auto", # Colab GPU 자동 할당
55
- torch_dtype="auto", # 메모리 절약
56
- max_new_tokens=512, # (= max_tokens 별칭으로도 동작)
57
- temperature=0.7,
58
  )
59
 
60
-
61
  # Import tool from Hub
62
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
63
 
 
49
  # custom_role_conversions=None,
50
  # )
51
 
52
+ # model = TransformersModel(
53
+ # model_id="bigscience/bloomz-1b1",
54
+ # device_map="auto", # Colab GPU 자동 할당
55
+ # torch_dtype="auto", # 메모리 절약
56
+ # max_new_tokens=512, # (= max_tokens 별칭으로도 동작)
57
+ # temperature=0.7,
58
+ # )
59
+
60
  model = TransformersModel(
61
+ model_id="TinyLlama/TinyLlama-1.1B-Chat-v1.0",
62
+ dtype="auto",
63
+ max_tokens=1024,
64
+ temperature=0.5
 
65
  )
66
 
 
67
  # Import tool from Hub
68
  image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
69