Skip to content

[WIP] add hf lalm example#14

Open
YiwenShaoStephen wants to merge 1 commit intomainfrom
lalm_hf
Open

[WIP] add hf lalm example#14
YiwenShaoStephen wants to merge 1 commit intomainfrom
lalm_hf

Conversation

@YiwenShaoStephen
Copy link
Copy Markdown
Contributor

Add an example with more native HF transformers interface for large audio language model (LALM) training.

if instruction:
user_content.append({"type": "text", "text": str(instruction)})
messages.append({"role": "user", "content": user_content})
messages.append({"role": "assistant", "content": response})
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Stephen, I got a question for instruction. It seems that the current version load the same instruction template for all turns (the audio sources are different but the textual questions are the same). In retrieval cases, I would like to ask the onsite and offsite of specific single events in each audio source. So, may I modify the instruction to be turn specific? Thanks!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this example is set as a base example just to show people how to do LALM training in Auden with a standard hf transformers setup. You can have you own version in terms of manifest preparation and data loading. The suggestion is to prepare the conversation offline and put it in your manifest.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants