Skip to content
This repository was archived by the owner on Jun 16, 2026. It is now read-only.

Commit 18d590e

Browse files
committed
Update 2026-06-10 06:26:08
1 parent 1d9286d commit 18d590e

194 files changed

Lines changed: 8914 additions & 7674 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
4040
<script src="_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
4141

42-
<script src="_static/documentation_options.js?v=e28766f7"></script>
42+
<script src="_static/documentation_options.js?v=053f4175"></script>
4343
<script src="_static/doctools.js?v=9bcbadda"></script>
4444
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
4545
<script src="_static/clipboard.min.js?v=a7894cd8"></script>

_sources/advanced_features/lora.ipynb

Lines changed: 433 additions & 359 deletions
Large diffs are not rendered by default.

_sources/advanced_features/separate_reasoning.ipynb

Lines changed: 550 additions & 249 deletions
Large diffs are not rendered by default.

_sources/advanced_features/structured_outputs.ipynb

Lines changed: 529 additions & 303 deletions
Large diffs are not rendered by default.

_sources/advanced_features/structured_outputs_for_reasoning_models.ipynb

Lines changed: 287 additions & 331 deletions
Large diffs are not rendered by default.

_sources/advanced_features/tool_parser.ipynb

Lines changed: 320 additions & 353 deletions
Large diffs are not rendered by default.

_sources/advanced_features/vlm_query.ipynb

Lines changed: 360 additions & 368 deletions
Large diffs are not rendered by default.

_sources/basic_usage/native_api.ipynb

Lines changed: 189 additions & 189 deletions
Large diffs are not rendered by default.

_sources/basic_usage/offline_engine_api.ipynb

Lines changed: 607 additions & 620 deletions
Large diffs are not rendered by default.

_sources/basic_usage/openai_api_completions.ipynb

Lines changed: 59 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
"execution_count": 1,
3232
"metadata": {
3333
"execution": {
34-
"iopub.execute_input": "2026-06-10T06:03:52.933107Z",
35-
"iopub.status.busy": "2026-06-10T06:03:52.933026Z",
36-
"iopub.status.idle": "2026-06-10T06:04:23.324858Z",
37-
"shell.execute_reply": "2026-06-10T06:04:23.324019Z"
34+
"iopub.execute_input": "2026-06-10T06:22:13.507625Z",
35+
"iopub.status.busy": "2026-06-10T06:22:13.507537Z",
36+
"iopub.status.idle": "2026-06-10T06:22:43.792052Z",
37+
"shell.execute_reply": "2026-06-10T06:22:43.791407Z"
3838
}
3939
},
4040
"outputs": [
@@ -55,8 +55,8 @@
5555
"text": [
5656
"\r",
5757
"Multi-thread loading shards: 0% Completed | 0/1 [00:00<?, ?it/s]\r",
58-
"Multi-thread loading shards: 100% Completed | 1/1 [00:00<00:00, 6.63it/s]\r",
59-
"Multi-thread loading shards: 100% Completed | 1/1 [00:00<00:00, 6.62it/s]\n"
58+
"Multi-thread loading shards: 100% Completed | 1/1 [00:00<00:00, 5.58it/s]\r",
59+
"Multi-thread loading shards: 100% Completed | 1/1 [00:00<00:00, 5.57it/s]\n"
6060
]
6161
},
6262
{
@@ -83,7 +83,7 @@
8383
"name": "stdout",
8484
"output_type": "stream",
8585
"text": [
86-
"Server started on http://localhost:33777\n"
86+
"Server started on http://localhost:31258\n"
8787
]
8888
}
8989
],
@@ -117,17 +117,17 @@
117117
"execution_count": 2,
118118
"metadata": {
119119
"execution": {
120-
"iopub.execute_input": "2026-06-10T06:04:23.326883Z",
121-
"iopub.status.busy": "2026-06-10T06:04:23.326573Z",
122-
"iopub.status.idle": "2026-06-10T06:04:23.886954Z",
123-
"shell.execute_reply": "2026-06-10T06:04:23.886175Z"
120+
"iopub.execute_input": "2026-06-10T06:22:43.793855Z",
121+
"iopub.status.busy": "2026-06-10T06:22:43.793559Z",
122+
"iopub.status.idle": "2026-06-10T06:22:44.386518Z",
123+
"shell.execute_reply": "2026-06-10T06:22:44.385875Z"
124124
}
125125
},
126126
"outputs": [
127127
{
128128
"data": {
129129
"text/html": [
130-
"<strong style='color: #00008B;'>Response: ChatCompletion(id='fa235015836447c0b9c3f4d992531b5d', choices=[Choice(finish_reason='stop', index=0, logprobs=None, message=ChatCompletionMessage(content='Sure, here are three countries and their respective capitals:\\n\\n1. **United States** - Washington D.C.\\n2. **Canada** - Ottawa\\n3. **Australia** - Canberra', refusal=None, role='assistant', annotations=None, audio=None, function_call=None, tool_calls=None, reasoning_content=None), matched_stop=151645)], created=1781071463, model='qwen/qwen2.5-0.5b-instruct', object='chat.completion', service_tier=None, system_fingerprint=None, usage=CompletionUsage(completion_tokens=38, prompt_tokens=37, total_tokens=75, completion_tokens_details=None, prompt_tokens_details=None, reasoning_tokens=0), metadata={'weight_version': 'default'})</strong>"
130+
"<strong style='color: #00008B;'>Response: ChatCompletion(id='495a40803804469085a1b6d309dabf95', choices=[Choice(finish_reason='stop', index=0, logprobs=None, message=ChatCompletionMessage(content='Sure, here are three countries and their respective capitals:\\n\\n1. **United States** - Washington D.C.\\n2. **Canada** - Ottawa\\n3. **Australia** - Canberra', refusal=None, role='assistant', annotations=None, audio=None, function_call=None, tool_calls=None, reasoning_content=None), matched_stop=151645)], created=1781072564, model='qwen/qwen2.5-0.5b-instruct', object='chat.completion', service_tier=None, system_fingerprint=None, usage=CompletionUsage(completion_tokens=38, prompt_tokens=37, total_tokens=75, completion_tokens_details=None, prompt_tokens_details=None, reasoning_tokens=0), metadata={'weight_version': 'default'})</strong>"
131131
],
132132
"text/plain": [
133133
"<IPython.core.display.HTML object>"
@@ -348,10 +348,10 @@
348348
"execution_count": 3,
349349
"metadata": {
350350
"execution": {
351-
"iopub.execute_input": "2026-06-10T06:04:23.888707Z",
352-
"iopub.status.busy": "2026-06-10T06:04:23.888602Z",
353-
"iopub.status.idle": "2026-06-10T06:04:24.133799Z",
354-
"shell.execute_reply": "2026-06-10T06:04:24.133197Z"
351+
"iopub.execute_input": "2026-06-10T06:22:44.388037Z",
352+
"iopub.status.busy": "2026-06-10T06:22:44.387928Z",
353+
"iopub.status.idle": "2026-06-10T06:22:44.620795Z",
354+
"shell.execute_reply": "2026-06-10T06:22:44.620218Z"
355355
}
356356
},
357357
"outputs": [
@@ -405,17 +405,17 @@
405405
"execution_count": 4,
406406
"metadata": {
407407
"execution": {
408-
"iopub.execute_input": "2026-06-10T06:04:24.135641Z",
409-
"iopub.status.busy": "2026-06-10T06:04:24.135535Z",
410-
"iopub.status.idle": "2026-06-10T06:04:25.280599Z",
411-
"shell.execute_reply": "2026-06-10T06:04:25.279888Z"
408+
"iopub.execute_input": "2026-06-10T06:22:44.622132Z",
409+
"iopub.status.busy": "2026-06-10T06:22:44.622026Z",
410+
"iopub.status.idle": "2026-06-10T06:22:45.744918Z",
411+
"shell.execute_reply": "2026-06-10T06:22:45.744157Z"
412412
}
413413
},
414414
"outputs": [
415415
{
416416
"data": {
417417
"text/html": [
418-
"<strong style='color: #00008B;'>Ancient Rome was a major civilization that left an indelible mark on history. Some of their most significant achievements include:<br><br>1. **Founding of the Roman Empire**: The Romans founded what is now known as the Roman Empire, which stretched from modern-day Italy to Spain and beyond.<br><br>2. **Architecture**: They developed impressive structures such as the Colosseum in Rome, the Pantheon in Athens, and the Temple of Jupiter Optimus Maximus in Rome. These buildings were designed for religious or political purposes and are still admired today.<br><br>3. **Law**: The Romans established one of the oldest written legal systems in the world</strong>"
418+
"<strong style='color: #00008B;'>The major achievements of ancient Rome include the construction of magnificent public works such as aqueducts, roads, and temples. They also developed a complex legal system that included laws for marriage, divorce, inheritance, and property rights. The Roman Empire was one of the largest empires in history, spanning from Italy to Spain and including parts of modern-day France, Germany, Belgium, Luxembourg, Switzerland, and parts of Poland.<br><br>In addition to these monumental achievements, ancient Rome is known for its art, architecture, literature, philosophy, science, engineering, mathematics, astronomy, law, politics, religion, and military tactics. Their contributions have had lasting</strong>"
419419
],
420420
"text/plain": [
421421
"<IPython.core.display.HTML object>"
@@ -473,25 +473,39 @@
473473
"execution_count": 5,
474474
"metadata": {
475475
"execution": {
476-
"iopub.execute_input": "2026-06-10T06:04:25.282477Z",
477-
"iopub.status.busy": "2026-06-10T06:04:25.282373Z",
478-
"iopub.status.idle": "2026-06-10T06:04:25.727778Z",
479-
"shell.execute_reply": "2026-06-10T06:04:25.727075Z"
476+
"iopub.execute_input": "2026-06-10T06:22:45.746757Z",
477+
"iopub.status.busy": "2026-06-10T06:22:45.746570Z",
478+
"iopub.status.idle": "2026-06-10T06:22:46.463651Z",
479+
"shell.execute_reply": "2026-06-10T06:22:46.463010Z"
480480
}
481481
},
482482
"outputs": [
483483
{
484484
"name": "stdout",
485485
"output_type": "stream",
486486
"text": [
487-
"Yes, I am Qwen, a large language model created by Alibaba Cloud. My purpose is to assist you with any questions"
487+
"Yes, I am Qwen, created by Alibaba Cloud. As a language model AI assistant, I can be used in various"
488488
]
489489
},
490490
{
491491
"name": "stdout",
492492
"output_type": "stream",
493493
"text": [
494-
" or tasks you may have regarding various topics and domains. Please let me know how I can be of assistance to you!"
494+
" ways and tasks to provide information or answer questions based on my training data. This includes helping with natural language processing, answering questions"
495+
]
496+
},
497+
{
498+
"name": "stdout",
499+
"output_type": "stream",
500+
"text": [
501+
", providing recommendations, generating text, etc. If you have any specific questions or tasks that you would like me to assist you"
502+
]
503+
},
504+
{
505+
"name": "stdout",
506+
"output_type": "stream",
507+
"text": [
508+
" with, feel free to ask!"
495509
]
496510
}
497511
],
@@ -520,10 +534,10 @@
520534
"execution_count": 6,
521535
"metadata": {
522536
"execution": {
523-
"iopub.execute_input": "2026-06-10T06:04:25.729612Z",
524-
"iopub.status.busy": "2026-06-10T06:04:25.729505Z",
525-
"iopub.status.idle": "2026-06-10T06:04:26.027911Z",
526-
"shell.execute_reply": "2026-06-10T06:04:26.027221Z"
537+
"iopub.execute_input": "2026-06-10T06:22:46.465461Z",
538+
"iopub.status.busy": "2026-06-10T06:22:46.465282Z",
539+
"iopub.status.idle": "2026-06-10T06:22:46.808017Z",
540+
"shell.execute_reply": "2026-06-10T06:22:46.807342Z"
527541
}
528542
},
529543
"outputs": [
@@ -574,17 +588,17 @@
574588
"execution_count": 7,
575589
"metadata": {
576590
"execution": {
577-
"iopub.execute_input": "2026-06-10T06:04:26.029762Z",
578-
"iopub.status.busy": "2026-06-10T06:04:26.029661Z",
579-
"iopub.status.idle": "2026-06-10T06:04:26.512217Z",
580-
"shell.execute_reply": "2026-06-10T06:04:26.511433Z"
591+
"iopub.execute_input": "2026-06-10T06:22:46.809748Z",
592+
"iopub.status.busy": "2026-06-10T06:22:46.809566Z",
593+
"iopub.status.idle": "2026-06-10T06:22:47.330460Z",
594+
"shell.execute_reply": "2026-06-10T06:22:47.329783Z"
581595
}
582596
},
583597
"outputs": [
584598
{
585599
"data": {
586600
"text/html": [
587-
"<strong style='color: #00008B;'>Response: Completion(id='9b007e0090604df99e8cb3c469b0a242', choices=[CompletionChoice(finish_reason='length', index=0, logprobs=None, text=' 1. United States - Washington D.C.\\n2. United Kingdom - London\\n3. France - Paris\\n4. Germany - Berlin\\n5. Japan - Tokyo\\n6. Italy - Rome\\n7. Spain - Madrid\\n8. Australia - Canberra\\n9. Canada - Ottawa\\n10. Mexico -', matched_stop=None)], created=1781071466, model='qwen/qwen2.5-0.5b-instruct', object='text_completion', system_fingerprint=None, usage=CompletionUsage(completion_tokens=64, prompt_tokens=8, total_tokens=72, completion_tokens_details=None, prompt_tokens_details=None, reasoning_tokens=0), metadata={'weight_version': 'default'})</strong>"
601+
"<strong style='color: #00008B;'>Response: Completion(id='66b2aad754bd426e9b0862fe05f71647', choices=[CompletionChoice(finish_reason='length', index=0, logprobs=None, text=' 1. United States - Washington D.C.\\n2. United Kingdom - London\\n3. France - Paris\\n4. Germany - Berlin\\n5. Japan - Tokyo\\n6. Italy - Rome\\n7. Spain - Madrid\\n8. Australia - Canberra\\n9. Canada - Ottawa\\n10. Mexico -', matched_stop=None)], created=1781072567, model='qwen/qwen2.5-0.5b-instruct', object='text_completion', system_fingerprint=None, usage=CompletionUsage(completion_tokens=64, prompt_tokens=8, total_tokens=72, completion_tokens_details=None, prompt_tokens_details=None, reasoning_tokens=0), metadata={'weight_version': 'default'})</strong>"
588602
],
589603
"text/plain": [
590604
"<IPython.core.display.HTML object>"
@@ -623,17 +637,17 @@
623637
"execution_count": 8,
624638
"metadata": {
625639
"execution": {
626-
"iopub.execute_input": "2026-06-10T06:04:26.513793Z",
627-
"iopub.status.busy": "2026-06-10T06:04:26.513688Z",
628-
"iopub.status.idle": "2026-06-10T06:04:26.846483Z",
629-
"shell.execute_reply": "2026-06-10T06:04:26.845810Z"
640+
"iopub.execute_input": "2026-06-10T06:22:47.332041Z",
641+
"iopub.status.busy": "2026-06-10T06:22:47.331871Z",
642+
"iopub.status.idle": "2026-06-10T06:22:47.671566Z",
643+
"shell.execute_reply": "2026-06-10T06:22:47.670950Z"
630644
}
631645
},
632646
"outputs": [
633647
{
634648
"data": {
635649
"text/html": [
636-
"<strong style='color: #00008B;'>Response: Completion(id='d851ed084a114d288893fc4b69824c04', choices=[CompletionChoice(finish_reason='stop', index=0, logprobs=None, text=\" As an AI language model, I don't have personal experiences or emotions, but I can generate a story based on common human experiences. Here's a short story about a space explorer:\", matched_stop='\\n\\n')], created=1781071466, model='qwen/qwen2.5-0.5b-instruct', object='text_completion', system_fingerprint=None, usage=CompletionUsage(completion_tokens=37, prompt_tokens=9, total_tokens=46, completion_tokens_details=None, prompt_tokens_details=None, reasoning_tokens=0), metadata={'weight_version': 'default'})</strong>"
650+
"<strong style='color: #00008B;'>Response: Completion(id='d47c2af1be2549e2a4bf908f6d47a3bf', choices=[CompletionChoice(finish_reason='stop', index=0, logprobs=None, text=' Once upon a time, there was a space explorer named Sarah who had always dreamed of exploring the stars. She had always wanted to see the wonders of outer space and experience the thrill of the unknown.', matched_stop='\\n\\n')], created=1781072567, model='qwen/qwen2.5-0.5b-instruct', object='text_completion', system_fingerprint=None, usage=CompletionUsage(completion_tokens=40, prompt_tokens=9, total_tokens=49, completion_tokens_details=None, prompt_tokens_details=None, reasoning_tokens=0), metadata={'weight_version': 'default'})</strong>"
637651
],
638652
"text/plain": [
639653
"<IPython.core.display.HTML object>"
@@ -727,10 +741,10 @@
727741
"execution_count": 9,
728742
"metadata": {
729743
"execution": {
730-
"iopub.execute_input": "2026-06-10T06:04:26.848454Z",
731-
"iopub.status.busy": "2026-06-10T06:04:26.848339Z",
732-
"iopub.status.idle": "2026-06-10T06:04:26.870086Z",
733-
"shell.execute_reply": "2026-06-10T06:04:26.869402Z"
744+
"iopub.execute_input": "2026-06-10T06:22:47.673408Z",
745+
"iopub.status.busy": "2026-06-10T06:22:47.673215Z",
746+
"iopub.status.idle": "2026-06-10T06:22:47.720918Z",
747+
"shell.execute_reply": "2026-06-10T06:22:47.720179Z"
734748
}
735749
},
736750
"outputs": [],

0 commit comments

Comments
 (0)