Compare commits
4 Commits
hf-trainer
...
eos-hell
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c49083d8b | ||
|
|
94c226edb3 | ||
|
|
8fb72cbc0b | ||
|
|
bb9d4102c4 |
@@ -20,7 +20,8 @@ RUN apt install --yes --no-install-recommends openssh-server tmux && \
|
|||||||
printf "\n[[ -z \"\$TMUX\" ]] && { tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; }\n" >> ~/.bashrc && \
|
printf "\n[[ -z \"\$TMUX\" ]] && { tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux; exit; }\n" >> ~/.bashrc && \
|
||||||
printf "[ ! -z \"\$TERM\" -a -r /etc/motd ] && cat /etc/motd\n" >> ~/.bashrc && \
|
printf "[ ! -z \"\$TERM\" -a -r /etc/motd ] && cat /etc/motd\n" >> ~/.bashrc && \
|
||||||
chmod +x /workspace/axolotl/scripts/cloud-entrypoint.sh && \
|
chmod +x /workspace/axolotl/scripts/cloud-entrypoint.sh && \
|
||||||
chmod +x /root/cloud-entrypoint.sh
|
chmod +x /root/cloud-entrypoint.sh && \
|
||||||
|
echo 'set-option -g history-limit 5000' >> ~/.tmux.conf
|
||||||
|
|
||||||
ENTRYPOINT ["/root/cloud-entrypoint.sh"]
|
ENTRYPOINT ["/root/cloud-entrypoint.sh"]
|
||||||
CMD ["sleep", "infinity"]
|
CMD ["sleep", "infinity"]
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ def parse_dataset(dataset=None, split="train"):
|
|||||||
)
|
)
|
||||||
ds_cfg["field_messages"] = field_messages
|
ds_cfg["field_messages"] = field_messages
|
||||||
|
|
||||||
message_fields = features["conversations"][0].keys()
|
message_fields = features[field_messages][0].keys()
|
||||||
message_field_role = None
|
message_field_role = None
|
||||||
for key in ["from", "role"]:
|
for key in ["from", "role"]:
|
||||||
if key in message_fields:
|
if key in message_fields:
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ class ChatTemplateStrategy(PromptTokenizingStrategy):
|
|||||||
def tokenize_prompt(self, prompt):
|
def tokenize_prompt(self, prompt):
|
||||||
# Old simple legacy behavior that works reliably.
|
# Old simple legacy behavior that works reliably.
|
||||||
if (
|
if (
|
||||||
not self.roles_to_train
|
(not self.roles_to_train or self.roles_to_train == ["assistant"])
|
||||||
and not self.train_on_eos
|
and not self.train_on_eos
|
||||||
and not self.prompter.message_field_training
|
and not self.prompter.message_field_training
|
||||||
and not self.prompter.message_field_training_detail
|
and not self.prompter.message_field_training_detail
|
||||||
|
|||||||
Reference in New Issue
Block a user