Download src/models/Base.py from smallan13/DebateCoder: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/smallan13/DebateCoder/resolve/c7a0d4bb35b29abc02cb9891bd19979bf3eab7ad/src/models/Base.py
- Command line
-
hf download hf://smallan13/DebateCoder@c7a0d4bb35b29abc02cb9891bd19979bf3eab7ad/src/models/Base.py
-
curl -L -o Base.py https://huggingface.co/smallan13/DebateCoder/resolve/c7a0d4bb35b29abc02cb9891bd19979bf3eab7ad/src/models/Base.py
311 Bytes
| import logging | |
| import sys | |
| import traceback | |
| from abc import ABC, abstractmethod | |
| class BaseModel(ABC): | |
| def __init__(self, **kwargs): | |
| pass | |
| # @retry(wait=wait_random_exponential(min=1, max=60), stop=stop_after_attempt(5)) | |
| def prompt(self, processed_input): | |
| pass | |