Text Generation
PEFT
Safetensors
Transformers
qwen3
grpo
lora
trl
conversational
text-generation-inference
Instructions to use cs-552-2026-clankers-builder/multilingual_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use cs-552-2026-clankers-builder/multilingual_model with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-1.7B") model = PeftModel.from_pretrained(base_model, "cs-552-2026-clankers-builder/multilingual_model") - Transformers
How to use cs-552-2026-clankers-builder/multilingual_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-clankers-builder/multilingual_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cs-552-2026-clankers-builder/multilingual_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-clankers-builder/multilingual_model") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cs-552-2026-clankers-builder/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-clankers-builder/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-clankers-builder/multilingual_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-clankers-builder/multilingual_model
- SGLang
How to use cs-552-2026-clankers-builder/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-clankers-builder/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-clankers-builder/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-clankers-builder/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-clankers-builder/multilingual_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-clankers-builder/multilingual_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-clankers-builder/multilingual_model
Upload folder using huggingface_hub
Browse files- chat_template.jinja +5 -1
- model.safetensors +1 -1
- optimizer.pt +1 -1
- rng_state.pth +1 -1
- scheduler.pt +1 -1
- tokenizer_config.json +6 -2
- trainer_state.json +0 -0
- training_args.bin +2 -2
chat_template.jinja
CHANGED
|
@@ -11,7 +11,9 @@
|
|
| 11 |
{{- "\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" }}
|
| 12 |
{%- else %}
|
| 13 |
{%- if messages[0].role == 'system' %}
|
| 14 |
-
{{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
|
|
|
|
|
|
|
| 15 |
{%- endif %}
|
| 16 |
{%- endif %}
|
| 17 |
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
|
@@ -85,5 +87,7 @@
|
|
| 85 |
{{- '<|im_start|>assistant\n' }}
|
| 86 |
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 87 |
{{- '<think>\n\n</think>\n\n' }}
|
|
|
|
|
|
|
| 88 |
{%- endif %}
|
| 89 |
{%- endif %}
|
|
|
|
| 11 |
{{- "\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" }}
|
| 12 |
{%- else %}
|
| 13 |
{%- if messages[0].role == 'system' %}
|
| 14 |
+
{{- '<|im_start|>system\n' + messages[0].content + '\nPlease reason step by step, and put your final answer within \\boxed{}.<|im_end|>\n' }}
|
| 15 |
+
{%- else %}
|
| 16 |
+
{{- '<|im_start|>system\nPlease reason step by step, and put your final answer within \\boxed{}.<|im_end|>\n' }}
|
| 17 |
{%- endif %}
|
| 18 |
{%- endif %}
|
| 19 |
{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
|
|
|
|
| 87 |
{{- '<|im_start|>assistant\n' }}
|
| 88 |
{%- if enable_thinking is defined and enable_thinking is false %}
|
| 89 |
{{- '<think>\n\n</think>\n\n' }}
|
| 90 |
+
{%- else %}
|
| 91 |
+
{{- '<think>\n' }}
|
| 92 |
{%- endif %}
|
| 93 |
{%- endif %}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3441185608
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b114739458777294e068da1dd6bbc8ef7e8320c4e3457f491cd4bd609718c5a7
|
| 3 |
size 3441185608
|
optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 6882572207
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df1c31e1ba1362ab84c3687f864ec07cb6c9479c4792a7862a9589e0762b5a83
|
| 3 |
size 6882572207
|
rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14645
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf0c9dbd64fad4e00ce3797d090b4917df0950c4f4361040b226cc75c8db1838
|
| 3 |
size 14645
|
scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1465
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30e0c06a57eee8dc58c1f299af2e1f878bc92858d1ddf8a5ba1fc76a240f3e39
|
| 3 |
size 1465
|
tokenizer_config.json
CHANGED
|
@@ -20,11 +20,15 @@
|
|
| 20 |
"<|image_pad|>",
|
| 21 |
"<|video_pad|>"
|
| 22 |
],
|
| 23 |
-
"is_local":
|
| 24 |
-
"local_files_only":
|
|
|
|
| 25 |
"model_max_length": 2048,
|
| 26 |
"pad_token": "<|endoftext|>",
|
| 27 |
"split_special_tokens": false,
|
|
|
|
| 28 |
"tokenizer_class": "Qwen2Tokenizer",
|
|
|
|
|
|
|
| 29 |
"unk_token": null
|
| 30 |
}
|
|
|
|
| 20 |
"<|image_pad|>",
|
| 21 |
"<|video_pad|>"
|
| 22 |
],
|
| 23 |
+
"is_local": true,
|
| 24 |
+
"local_files_only": true,
|
| 25 |
+
"max_length": 2048,
|
| 26 |
"model_max_length": 2048,
|
| 27 |
"pad_token": "<|endoftext|>",
|
| 28 |
"split_special_tokens": false,
|
| 29 |
+
"stride": 0,
|
| 30 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 31 |
+
"truncation_side": "right",
|
| 32 |
+
"truncation_strategy": "longest_first",
|
| 33 |
"unk_token": null
|
| 34 |
}
|
trainer_state.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76434fd4764b71251e7fd3563195a80f8320bde94cda847ab30c1147e4bb0a2d
|
| 3 |
+
size 7313
|