MCPcopy Create free account
hub / github.com/aiming-lab/MDocAgent / __init__

Method __init__

models/base_model.py:3–8  ·  view source on GitHub ↗

Base model constructor to initialize common attributes. :param config: A dictionary containing model configuration parameters.

(self, config)

Source from the content-addressed store, hash-verified

1import torch
2class BaseModel():
3 def __init__(self, config):
4 """
5 Base model constructor to initialize common attributes.
6 :param config: A dictionary containing model configuration parameters.
7 """
8 self.config = config
9
10 def predict(self, question, texts = None, images = None, history = None):
11 pass

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected