mirror of https://github.com/InternLM/InternLM
update
parent
7a782d6947
commit
f3b3e740a8
|
@ -41,7 +41,7 @@ jobs:
|
||||||
source activate internlm-model-latest
|
source activate internlm-model-latest
|
||||||
pip install torch==2.2.2 torchvision==0.17.2 --index-url https://download.pytorch.org/whl/cu118
|
pip install torch==2.2.2 torchvision==0.17.2 --index-url https://download.pytorch.org/whl/cu118
|
||||||
pip install /mnt/petrelfs/qa-caif-cicd/resource/flash_attn-2.5.8+cu118torch2.2cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
|
pip install /mnt/petrelfs/qa-caif-cicd/resource/flash_attn-2.5.8+cu118torch2.2cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
|
||||||
pip install sentencepiece auto-gptq==0.6.0 lmdeploy[all] beautifulsoup4 decord
|
pip install sentencepiece auto-gptq==0.6.0 lmdeploy[all] beautifulsoup4 decord lxml
|
||||||
srun -p ${SLURM_PARTITION} --kill-on-bad-exit=1 --job-name=${GITHUB_RUN_ID}-${GITHUB_JOB} --gpus-per-task=2 pytest -s -v -m tmp --color=yes ./tests/test_hf_model.py
|
srun -p ${SLURM_PARTITION} --kill-on-bad-exit=1 --job-name=${GITHUB_RUN_ID}-${GITHUB_JOB} --gpus-per-task=2 pytest -s -v -m tmp --color=yes ./tests/test_hf_model.py
|
||||||
conda deactivate
|
conda deactivate
|
||||||
- name: remove_env
|
- name: remove_env
|
||||||
|
|
|
@ -394,7 +394,7 @@ class TestXcomposer2d5Model:
|
||||||
model.tokenizer = tokenizer
|
model.tokenizer = tokenizer
|
||||||
|
|
||||||
query = 'Generate the HTML code of this web image with Tailwind CSS.'
|
query = 'Generate the HTML code of this web image with Tailwind CSS.'
|
||||||
image = ['./examples/screenshot.jpg']
|
image = ['/mnt/petrelfs/qa-caif-cicd/github_runner/examples/screenshot.jpg']
|
||||||
with torch.autocast(device_type='cuda', dtype=torch.float16):
|
with torch.autocast(device_type='cuda', dtype=torch.float16):
|
||||||
response = model.resume_2_webpage(query,
|
response = model.resume_2_webpage(query,
|
||||||
image,
|
image,
|
||||||
|
|
Loading…
Reference in New Issue