Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
yeeeqichen committed Oct 28, 2023
1 parent 4854ee7 commit d736a63
Show file tree
Hide file tree
Showing 48 changed files with 6,325 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Python
__pycache__
*.pyc
*.egg-info
dist

# Log
*.log
*.log.*
# *.json
# *.jsonl

# Data
!**/alpaca-data-conversation.json

# Editor
.idea
*.swp
*.code-workspace

# Other
.DS_Store
wandb
output

checkpoints
ckpts*

.ipynb_checkpoints
*.ipynb


eval/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Large Language Models (LLMs) have introduced a new era of proficiency in compreh

## ✅ Todo

- [ ] training scripts
- [x] training scripts
- [ ] training data
- [ ] models

Expand Down
1 change: 1 addition & 0 deletions llava/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .model import LlavaLlamaForCausalLM
12 changes: 12 additions & 0 deletions llava/constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
CONTROLLER_HEART_BEAT_EXPIRATION = 30
WORKER_HEART_BEAT_INTERVAL = 15

LOGDIR = "."

# Model Constants
IGNORE_INDEX = -100
IMAGE_TOKEN_INDEX = -200
DEFAULT_IMAGE_TOKEN = "<image>"
DEFAULT_IMAGE_PATCH_TOKEN = "<im_patch>"
DEFAULT_IM_START_TOKEN = "<im_start>"
DEFAULT_IM_END_TOKEN = "<im_end>"
Loading

0 comments on commit d736a63

Please sign in to comment.