Spaces:
Sleeping
Sleeping
Download python_backend/src/Agents/llm/llm_loader.py from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/src/Agents/llm/llm_loader.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/python_backend/src/Agents/llm/llm_loader.py
-
curl -L -o llm_loader.py https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/src/Agents/llm/llm_loader.py
290 Bytes
| from langchain_aws import ChatBedrockConverse | |
| from src.Agents.constants import LLM_MODEL_ID, LLM_REGION | |
| import logging | |
| llm = ChatBedrockConverse( | |
| model_id=LLM_MODEL_ID, | |
| region_name=LLM_REGION | |
| ) | |
| logging.info(f"LLM initialized with model_id={LLM_MODEL_ID}, region_name={LLM_REGION}") |