LiJunY

Results 1 issues of LiJunY

import os os.environ['CUDA_VISIBLE_DEVICES'] = '0' from swift.llm import ( get_model_tokenizer, get_template, inference, ModelType, get_default_template_type, inference_stream ) from swift.utils import seed_everything import torch model_type = ModelType.minicpm_v_v2_chat template_type = get_default_template_type(model_type) print(f'template_type: {template_type}')...