zmeeks commited on
Commit
120a2b5
·
verified ·
1 Parent(s): 1ce20d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -46,7 +46,11 @@ class BasicAgent:
46
  if SMOLAGENTS_AVAILABLE:
47
  try:
48
  # Initialize the model (from Unit 2)
49
- self.model = TransformersModel(model_id="google/gemma-3-4b-it", torch_dtype=torch.float16)
 
 
 
 
50
 
51
  # Create CodeAgent with DuckDuckGoSearchTool (core Unit 2 concept)
52
  self.agent = CodeAgent(
 
46
  if SMOLAGENTS_AVAILABLE:
47
  try:
48
  # Initialize the model (from Unit 2)
49
+ self.model = TransformersModel(
50
+ model_id="google/gemma-3-4b-it",
51
+ torch_dtype=torch.float16,
52
+ device_map="auto"
53
+ )
54
 
55
  # Create CodeAgent with DuckDuckGoSearchTool (core Unit 2 concept)
56
  self.agent = CodeAgent(