This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import os
|
||||
|
||||
os.environ['CUDA_VISIBLE_DEVICES'] = '0'
|
||||
os.environ['ASCEND_RT_VISIBLE_DEVICES'] = '0'
|
||||
|
||||
|
||||
def test_cogvlm():
|
||||
from swift import InferArguments, SftArguments, infer_main, sft_main
|
||||
|
||||
# infer_main(InferArguments(model='ZhipuAI/cogvlm2-video-llama3-chat'))
|
||||
sft_main(
|
||||
SftArguments(
|
||||
model='ZhipuAI/cogvlm2-video-llama3-chat',
|
||||
dataset=['AI-ModelScope/alpaca-gpt4-data-zh#200', 'swift/VideoChatGPT:Generic#200'],
|
||||
split_dataset_ratio=0.01))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_cogvlm()
|
||||
Reference in New Issue
Block a user