Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Get organized, move all the things
  • Loading branch information
s2t2 committed Jan 14, 2024
commit 5fa7c8ca1117642ff2dff6de37a03b67ac8e47a8
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ Create ".env" file and set environment variables:
```sh
# this is the ".env" file...

# choose one based on your preferred llm provider:
OPENAI_API_KEY="sk-..."
# or:
HUGGINGFACE_TOKEN="..."
HUGGINGFACE_TOKEN="hf_..."

# for grading a particular homework:
SUBMISSIONS_DIRPATH="/Users/USERNAME/Desktop/GRADING HW 4"
STARTER_FILENAME="Homework_X_STARTER.ipynb"
FILE_ID_SPLIT_INDEX="0" # 0 for files from Canvas, 1 for files from Blackboard
Expand Down Expand Up @@ -121,6 +122,8 @@ DOCS_LIMIT=5 python -m app.submissions_retriever

### Retreival Augmented Generation (RAG)

#### OpenAI LLM

Chat with the LLM:

```sh
Expand All @@ -133,6 +136,11 @@ DOCS_LIMIT=5 python -m app.submissions_grader
# DOCS_LIMIT=5 SIMILARITY_THRESHOLD=0.75 CHUNK_SIZE=1000 CHUNK_OVERLAP=0 python -m app.submissions_grader
```

#### Llama 2 LLM

```sh
TEMP=0.6 python -m app.meta_llm
```

## Testing

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tiktoken
faiss-cpu

# llama:
torch # 2.1.0+cu121
torch # 2.1.0+cu121 (for colab)
transformers # 4.35.2
#accelerate # 0.25.0
# torchtext # 0.16.0
Expand Down