Skip to content

Commit

Permalink
integrate programming and leave model init to llm core
Browse files Browse the repository at this point in the history
  • Loading branch information
= Enea_Gore committed Oct 7, 2024
1 parent 8001572 commit 4abb2f7
Show file tree
Hide file tree
Showing 15 changed files with 295 additions and 843 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ services:
build: modules/programming/module_programming_llm
depends_on:
- athena
- llm_core
ports:
- "5002:5002"

Expand Down

This file was deleted.

1 change: 1 addition & 0 deletions modules/programming/module_programming_llm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN pip install --no-cache-dir poetry==1.5.0
COPY pyproject.toml poetry.lock ./
# athena module (from the Dockerfile in the athena folder)
COPY --from=athena /code /athena
COPY --from=llm_core /code /llm_core
# install dependencies
RUN poetry config virtualenvs.create true \
&& poetry config virtualenvs.in-project true \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from module_programming_llm.split_problem_statement_by_file import (
split_problem_statement_by_file,
)
from module_programming_llm.helpers.llm_utils import (
from llm_core.utils.llm_utils import (
check_prompt_length_and_omit_features_if_necessary,
get_chat_prompt_with_formatting_instructions,
num_tokens_from_string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from module_programming_llm.split_problem_statement_by_file import (
split_problem_statement_by_file,
)
from module_programming_llm.helpers.llm_utils import (
from llm_core.utils.llm_utils import (
check_prompt_length_and_omit_features_if_necessary,
get_chat_prompt_with_formatting_instructions,
num_tokens_from_string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from athena.programming import Exercise, Submission

from module_programming_llm.config import GradedBasicApproachConfig, BasicApproachConfig
from module_programming_llm.helpers.llm_utils import (
from llm_core.utils.llm_utils import (
get_chat_prompt_with_formatting_instructions,
num_tokens_from_prompt,
predict_and_parse,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4abb2f7

Please sign in to comment.