Instructions to use cs-552-2026-flab/multilingual_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-flab/multilingual_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-flab/multilingual_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cs-552-2026-flab/multilingual_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-flab/multilingual_model", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cs-552-2026-flab/multilingual_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cs-552-2026-flab/multilingual_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cs-552-2026-flab/multilingual_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-flab/multilingual_model
- SGLang
How to use cs-552-2026-flab/multilingual_model with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "cs-552-2026-flab/multilingual_model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cs-552-2026-flab/multilingual_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "cs-552-2026-flab/multilingual_model" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cs-552-2026-flab/multilingual_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-flab/multilingual_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-flab/multilingual_model
submit multilingual a10-a33-t007 tiny soup candidate
Browse filesFiles changed (10)
12345{%- set enable_thinking = false %}{%- set flab_boxed_instruction = "Choose the best option. Do not write an explanation. Return exactly one final answer in the form \\boxed{LETTER}." %}{%- if flab_boxed_instruction %}{{ '<|im_start|>system\n' + flab_boxed_instruction + '<|im_end|>\n' }}{%- endif %}{%- if tools %}{{- '<|im_start|>system\n' }}{%- if messages[0].role == 'system' %}12345{%- set enable_thinking = true %}{%- set flab_boxed_instruction = "Solve the problem carefully. Think before answering. You must finish every response with exactly one final answer in the form \\boxed{LETTER}. Never omit the final boxed answer." %}{%- if flab_boxed_instruction %}{{ '<|im_start|>system\n' + flab_boxed_instruction + '<|im_end|>\n' }}{%- endif %}{%- if tools %}{{- '<|im_start|>system\n' }}{%- if messages[0].role == 'system' %}
3 unmodified lines4567891037 unmodified lines484950515253542 unmodified lines575859606162633 unmodified lines],"attention_bias": false,"attention_dropout": 0.0,"bos_token_id": null,"dtype": "bfloat16","eos_token_id": 151645,"head_dim": 128,37 unmodified lines"num_attention_heads": 16,"num_hidden_layers": 28,"num_key_value_heads": 8,"pad_token_id": 151643,"rms_norm_eps": 1e-06,"rope_parameters": {"rope_theta": 1000000,2 unmodified lines"sliding_window": null,"tie_word_embeddings": true,"transformers_version": "5.7.0","use_cache": false,"use_sliding_window": false,"vocab_size": 151936}3 unmodified lines4567891037 unmodified lines484950515253542 unmodified lines575859606162633 unmodified lines],"attention_bias": false,"attention_dropout": 0.0,"bos_token_id": 151643,"dtype": "bfloat16","eos_token_id": 151645,"head_dim": 128,37 unmodified lines"num_attention_heads": 16,"num_hidden_layers": 28,"num_key_value_heads": 8,"pad_token_id": null,"rms_norm_eps": 1e-06,"rope_parameters": {"rope_theta": 1000000,2 unmodified lines"sliding_window": null,"tie_word_embeddings": true,"transformers_version": "5.7.0","use_cache": true,"use_sliding_window": false,"vocab_size": 151936}
1234{"do_sample": true,"eos_token_id": [151645,12345{"bos_token_id": 151643,"do_sample": true,"eos_token_id": [151645,
46 unmodified lines474849505152534 unmodified lines585960616263646566672 unmodified lines7071727374757614 unmodified lines919293949596979846 unmodified linesadapter_model_dir: nulldomain:name: multilingualthinking_mode: falsebenchmark: multilinguallanguages:- it4 unmodified linestarget_format: boxedmax_options: 20reward_fn: multilingualsystem_instruction: Choose the best option. Do not write an explanation. Returnexactly one final answer in the form \boxed{LETTER}.template_boxed_instruction: Choose the best option. Do not write an explanation.Return exactly one final answer in the form \boxed{LETTER}.post_train:enabled: falsemerge_adapter: false2 unmodified linesevals: []seed: 42run_id: ${now:%Y%m%d_%H%M%S}output_dir: /scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/merged_resumewandb:project: flab-cs552entity: cs-552-2026-flab14 unmodified linesmax_tokens: 4096samples_dir: nullpush:model_dir: /scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/sft_resumebase_model_dir: /scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/cptes:base_model_dir: nulldata: null46 unmodified lines474849505152534 unmodified lines5859606162636465666768692 unmodified lines7273747576777814 unmodified lines9394959697989946 unmodified linesadapter_model_dir: nulldomain:name: multilingualthinking_mode: truebenchmark: multilinguallanguages:- it4 unmodified linestarget_format: boxedmax_options: 20reward_fn: multilingualsystem_instruction: Solve the problem carefully. Think before answering. You mustfinish every response with exactly one final answer in the form \boxed{LETTER}.Never omit the final boxed answer.template_boxed_instruction: Solve the problem carefully. Think before answering.You must finish every response with exactly one final answer in the form \boxed{LETTER}.Never omit the final boxed answer.post_train:enabled: falsemerge_adapter: false2 unmodified linesevals: []seed: 42run_id: ${now:%Y%m%d_%H%M%S}output_dir: /scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500_mergedwandb:project: flab-cs552entity: cs-552-2026-flab14 unmodified linesmax_tokens: 4096samples_dir: nullpush:model_dir: /scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500es:base_model_dir: nulldata: null
111 unmodified lines1121131141151161171181191201211221231241257 unmodified lines133134135136137138139140141142143144145146147148149150151152153111 unmodified lineshydra:- hydra.mode=RUNtask:- domain=multilingual_nothink_direct- push.model_dir=/scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/sft_resume- push.base_model_dir=/scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/cpt- output_dir=/scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/merged_resumejob:name: merge_peftchdir: falseoverride_dirname: domain=multilingual_nothink_direct,output_dir=/scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/merged_resume,push.base_model_dir=/scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/cpt,push.model_dir=/scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/sft_resumeid: ???num: ???config_name: base7 unmodified linesruntime:version: 1.3.2version_base: '1.3'cwd: /scratch/runs/cs552-mazniche-g07-a33-branchout-resume-203908config_sources:- path: hydra.confschema: pkgprovider: hydra- path: /scratch/runs/cs552-mazniche-g07-a33-branchout-resume-203908/configsschema: fileprovider: main- path: ''schema: structuredprovider: schemaoutput_dir: /scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/merged_resume/hydrachoices:post_train: disableddomain: multilingual_nothink_directtraining: sftdata: nemotron_mathmodel: qwen3_17b111 unmodified lines1121131141151161171181191201211221231247 unmodified lines132133134135136137138139140141142143144145146147148149150151152111 unmodified lineshydra:- hydra.mode=RUNtask:- domain=multilingual_reasoning_thinking- push.model_dir=/scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500- output_dir=/scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500_mergedjob:name: merge_peftchdir: falseoverride_dirname: domain=multilingual_reasoning_thinking,output_dir=/scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500_merged,push.model_dir=/scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500id: ???num: ???config_name: base7 unmodified linesruntime:version: 1.3.2version_base: '1.3'cwd: /scratch/runs/cs552-mazniche-g07-ps-a10-rmix-lr1e6-s500-185054config_sources:- path: hydra.confschema: pkgprovider: hydra- path: /scratch/runs/cs552-mazniche-g07-ps-a10-rmix-lr1e6-s500-185054/configsschema: fileprovider: main- path: ''schema: structuredprovider: schemaoutput_dir: /scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500_merged/hydrachoices:post_train: disableddomain: multilingual_reasoning_thinkingtraining: sftdata: nemotron_mathmodel: qwen3_17b
1234- domain=multilingual_nothink_direct- push.model_dir=/scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/sft_resume- push.base_model_dir=/scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/cpt- output_dir=/scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/merged_resume123- domain=multilingual_reasoning_thinking- push.model_dir=/scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500- output_dir=/scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500_merged
12345678910[2026-05-28 20:16:32,709][__main__][INFO] - Loading base model for merge ...[2026-05-28 20:16:32,950][__main__][INFO] - Loading PEFT adapter from /scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/sft_resume ...[2026-05-28 20:16:37,116][__main__][INFO] - Merging adapter into base weights ...[2026-05-28 20:16:48,659][root][INFO] - x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -c /tmp/tmp7zwib3dh/test.c -o /tmp/tmp7zwib3dh/test.o[2026-05-28 20:16:48,680][root][INFO] - x86_64-linux-gnu-gcc /tmp/tmp7zwib3dh/test.o -laio -o /tmp/tmp7zwib3dh/a.out[2026-05-28 20:16:48,699][root][INFO] - x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -c /tmp/tmpaakmu110/test.c -o /tmp/tmpaakmu110/test.o[2026-05-28 20:16:48,725][root][INFO] - x86_64-linux-gnu-gcc /tmp/tmpaakmu110/test.o -L/usr/local/cuda -L/usr/local/cuda/lib64 -lcufile -o /tmp/tmpaakmu110/a.out[2026-05-28 20:16:48,775][root][INFO] - x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -c /tmp/tmp0e17z9nj/test.c -o /tmp/tmp0e17z9nj/test.o[2026-05-28 20:16:48,797][root][INFO] - x86_64-linux-gnu-gcc /tmp/tmp0e17z9nj/test.o -laio -o /tmp/tmp0e17z9nj/a.out[2026-05-28 20:16:59,827][__main__][INFO] - Merged checkpoint saved to /scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/merged_resume1234567891011121314151617181920212223[2026-05-21 00:12:59,924][__main__][INFO] - Loading base model for merge ...[2026-05-21 00:13:00,074][httpx][INFO] - HTTP Request: HEAD https://huggingface.co/Qwen/Qwen3-1.7B/resolve/main/config.json "HTTP/1.1 307 Temporary Redirect"[2026-05-21 00:13:00,081][httpx][INFO] - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/Qwen/Qwen3-1.7B/70d244cc86ccca08cf5af4e1e306ecf908b1ad5e/config.json "HTTP/1.1 200 OK"[2026-05-21 00:13:00,205][httpx][INFO] - HTTP Request: HEAD https://huggingface.co/Qwen/Qwen3-1.7B/resolve/main/config.json "HTTP/1.1 307 Temporary Redirect"[2026-05-21 00:13:00,211][httpx][INFO] - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/Qwen/Qwen3-1.7B/70d244cc86ccca08cf5af4e1e306ecf908b1ad5e/config.json "HTTP/1.1 200 OK"[2026-05-21 00:13:00,631][httpx][INFO] - HTTP Request: HEAD https://huggingface.co/Qwen/Qwen3-1.7B/resolve/main/generation_config.json "HTTP/1.1 307 Temporary Redirect"[2026-05-21 00:13:00,637][httpx][INFO] - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/Qwen/Qwen3-1.7B/70d244cc86ccca08cf5af4e1e306ecf908b1ad5e/generation_config.json "HTTP/1.1 200 OK"[2026-05-21 00:13:00,642][__main__][INFO] - Loading PEFT adapter from /scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500 ...[2026-05-21 00:13:03,491][__main__][INFO] - Merging adapter into base weights ...[2026-05-21 00:13:11,291][root][INFO] - x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -c /tmp/tmpvug24lq7/test.c -o /tmp/tmpvug24lq7/test.o[2026-05-21 00:13:11,312][root][INFO] - x86_64-linux-gnu-gcc /tmp/tmpvug24lq7/test.o -laio -o /tmp/tmpvug24lq7/a.out[2026-05-21 00:13:11,327][root][INFO] - x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -c /tmp/tmpcxj5ym_i/test.c -o /tmp/tmpcxj5ym_i/test.o[2026-05-21 00:13:11,354][root][INFO] - x86_64-linux-gnu-gcc /tmp/tmpcxj5ym_i/test.o -L/usr/local/cuda -L/usr/local/cuda/lib64 -lcufile -o /tmp/tmpcxj5ym_i/a.out[2026-05-21 00:13:11,399][root][INFO] - x86_64-linux-gnu-gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O2 -Wall -fPIC -c /tmp/tmp7zbt920l/test.c -o /tmp/tmp7zbt920l/test.o[2026-05-21 00:13:11,419][root][INFO] - x86_64-linux-gnu-gcc /tmp/tmp7zbt920l/test.o -laio -o /tmp/tmp7zbt920l/a.out[2026-05-21 00:13:21,034][httpx][INFO] - HTTP Request: HEAD https://huggingface.co/Qwen/Qwen3-1.7B/resolve/main/config.json "HTTP/1.1 307 Temporary Redirect"[2026-05-21 00:13:21,041][httpx][INFO] - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/Qwen/Qwen3-1.7B/70d244cc86ccca08cf5af4e1e306ecf908b1ad5e/config.json "HTTP/1.1 200 OK"[2026-05-21 00:13:21,156][httpx][INFO] - HTTP Request: HEAD https://huggingface.co/Qwen/Qwen3-1.7B/resolve/main/tokenizer_config.json "HTTP/1.1 307 Temporary Redirect"[2026-05-21 00:13:21,164][httpx][INFO] - HTTP Request: HEAD https://huggingface.co/api/resolve-cache/models/Qwen/Qwen3-1.7B/70d244cc86ccca08cf5af4e1e306ecf908b1ad5e/tokenizer_config.json "HTTP/1.1 200 OK"[2026-05-21 00:13:21,282][httpx][INFO] - HTTP Request: GET https://huggingface.co/api/models/Qwen/Qwen3-1.7B/tree/main/additional_chat_templates?recursive=false&expand=false "HTTP/1.1 404 Not Found"[2026-05-21 00:13:21,398][httpx][INFO] - HTTP Request: GET https://huggingface.co/api/models/Qwen/Qwen3-1.7B/tree/main?recursive=true&expand=false "HTTP/1.1 200 OK"[2026-05-21 00:13:22,226][httpx][INFO] - HTTP Request: GET https://huggingface.co/api/models/Qwen/Qwen3-1.7B "HTTP/1.1 200 OK"[2026-05-21 00:13:22,338][__main__][INFO] - Merged checkpoint saved to /scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500_merged
123456{ "base": "/scratch/checkpoints/multilingual/parallel-sweep-20260520/ps-a10-rmix-lr1e6-s500_merged", "target": "/scratch/checkpoints/multilingual/a33-branchout-fit12h-20260528/merged_resume", "alpha": 0.07, "formula": "(1 - alpha) * base + alpha * target"}123version https://git-lfs.github.com/spec/v1oid sha256:2824593b0d0a235341ff32752d82999c392b27b7e6d7dcabe76f6fa0a87090dcsize 3441185608123version https://git-lfs.github.com/spec/v1oid sha256:764f199e8ca05f39b673fb8e052492143528cb44087a58a10116f78fe3bd84b5size 3441185608
19 unmodified lines20212223242526272829303119 unmodified lines"<|image_pad|>","<|video_pad|>"],"is_local": true,"local_files_only": false,"model_max_length": 131072,"pad_token": "<|endoftext|>","split_special_tokens": false,"tokenizer_class": "Qwen2Tokenizer","unk_token": null,"chat_template": "{%- set enable_thinking = false %}\n{%- set flab_boxed_instruction = \"Choose the best option. Do not write an explanation. Return exactly one final answer in the form \\\\boxed{LETTER}.\" %}\n{%- if flab_boxed_instruction %}{{ '<|im_start|>system\\n' + flab_boxed_instruction + '<|im_end|>\\n' }}{%- endif %}{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}"}19 unmodified lines20212223242526272829303119 unmodified lines"<|image_pad|>","<|video_pad|>"],"is_local": false,"local_files_only": false,"model_max_length": 131072,"pad_token": "<|endoftext|>","split_special_tokens": false,"tokenizer_class": "Qwen2Tokenizer","unk_token": null,"chat_template": "{%- set enable_thinking = true %}\n{%- set flab_boxed_instruction = \"Solve the problem carefully. Think before answering. You must finish every response with exactly one final answer in the form \\\\boxed{LETTER}. Never omit the final boxed answer.\" %}\n{%- if flab_boxed_instruction %}{{ '<|im_start|>system\\n' + flab_boxed_instruction + '<|im_end|>\\n' }}{%- endif %}{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\n {{- \"# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0].role == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0].content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if message.content is string %}\n {%- set content = message.content %}\n {%- else %}\n {%- set content = '' %}\n {%- endif %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is string %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in content %}\n {%- set reasoning_content = content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- set content = content.split('</think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}"}
chat_template.jinja+2-2
config.json+3-3
generation_config.json+1
hydra/.hydra/config.yaml+9-8
hydra/.hydra/hydra.yaml+8-9
hydra/.hydra/overrides.yaml+3-4
hydra/merge_peft.log+23-10
interpolation.jsonAdded+6
model.safetensors+1-1
tokenizer_config.json+2-2