Add files using upload-large-folder tool
Browse files- .gitattributes +1 -0
- models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/31349551d90c7606f325fe0f11bbb8bd5fa0d7c7 +0 -0
- models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/4783fe10ac3adce15ac8f358ef5462739852c569 +0 -0
- models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/49b0e8d0ee7e655434942233b4b0ab2104d5247e +117 -0
- models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/85c7de5b6114edc061271408a62af51fd7449020 +195 -0
- models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4 +3 -0
- models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/ba3e8d9206508daab666e1aaa9dcc9c435bfa541 +12 -0
- models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/cc8cf0649efea42a8c099d852b1525fcfc42c222 +239 -0
- models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/refs/main +1 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm-0.10.1.1.dist-info/licenses/LICENSE +201 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/enc_dec_model_runner.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/model_runner.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/model_runner_base.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/neuron_model_runner.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/neuron_worker.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/neuronx_distributed_model_runner.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/pooling_model_runner.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/utils.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/worker.cpython-312.pyc +0 -0
- tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/worker_base.cpython-312.pyc +0 -0
- tool_server/.venv/share/man/man1/isympy.1 +188 -0
.gitattributes
CHANGED
|
@@ -4619,3 +4619,4 @@ tool_server/.venv/lib/python3.12/site-packages/torch/_dynamo/variables/__pycache
|
|
| 4619 |
tool_server/.venv/lib/python3.12/site-packages/vllm/third_party/__pycache__/pynvml.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 4620 |
tool_server/.venv/lib/python3.12/site-packages/vllm/utils/__pycache__/__init__.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 4621 |
tool_server/.venv/lib/python3.12/site-packages/vllm/v1/worker/__pycache__/gpu_model_runner.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 4619 |
tool_server/.venv/lib/python3.12/site-packages/vllm/third_party/__pycache__/pynvml.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 4620 |
tool_server/.venv/lib/python3.12/site-packages/vllm/utils/__pycache__/__init__.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 4621 |
tool_server/.venv/lib/python3.12/site-packages/vllm/v1/worker/__pycache__/gpu_model_runner.cpython-312.pyc filter=lfs diff=lfs merge=lfs -text
|
| 4622 |
+
models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4 filter=lfs diff=lfs merge=lfs -text
|
models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/31349551d90c7606f325fe0f11bbb8bd5fa0d7c7
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/4783fe10ac3adce15ac8f358ef5462739852c569
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/49b0e8d0ee7e655434942233b4b0ab2104d5247e
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% macro render_extra_keys(json_dict, handled_keys) %}
|
| 2 |
+
{%- if json_dict is mapping %}
|
| 3 |
+
{%- for json_key in json_dict if json_key not in handled_keys %}
|
| 4 |
+
{%- if json_dict[json_key] is mapping or (json_dict[json_key] is sequence and json_dict[json_key] is not string) %}
|
| 5 |
+
{{- '\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | tojson | safe) ~ '</' ~ json_key ~ '>' }}
|
| 6 |
+
{%- else %}
|
| 7 |
+
{{-'\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | string) ~ '</' ~ json_key ~ '>' }}
|
| 8 |
+
{%- endif %}
|
| 9 |
+
{%- endfor %}
|
| 10 |
+
{%- endif %}
|
| 11 |
+
{% endmacro %}
|
| 12 |
+
|
| 13 |
+
{%- if messages[0]["role"] == "system" %}
|
| 14 |
+
{%- set system_message = messages[0]["content"] %}
|
| 15 |
+
{%- set loop_messages = messages[1:] %}
|
| 16 |
+
{%- else %}
|
| 17 |
+
{%- set loop_messages = messages %}
|
| 18 |
+
{%- endif %}
|
| 19 |
+
|
| 20 |
+
{%- if not tools is defined %}
|
| 21 |
+
{%- set tools = [] %}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
|
| 24 |
+
{%- if system_message is defined %}
|
| 25 |
+
{{- "<|im_start|>system\n" + system_message }}
|
| 26 |
+
{%- else %}
|
| 27 |
+
{%- if tools is iterable and tools | length > 0 %}
|
| 28 |
+
{{- "<|im_start|>system\nYou are Qwen, a helpful AI assistant that can interact with a computer to solve tasks." }}
|
| 29 |
+
{%- endif %}
|
| 30 |
+
{%- endif %}
|
| 31 |
+
{%- if tools is iterable and tools | length > 0 %}
|
| 32 |
+
{{- "\n\n# Tools\n\nYou have access to the following functions:\n\n" }}
|
| 33 |
+
{{- "<tools>" }}
|
| 34 |
+
{%- for tool in tools %}
|
| 35 |
+
{%- if tool.function is defined %}
|
| 36 |
+
{%- set tool = tool.function %}
|
| 37 |
+
{%- endif %}
|
| 38 |
+
{{- "\n<function>\n<name>" ~ tool.name ~ "</name>" }}
|
| 39 |
+
{%- if tool.description is defined %}
|
| 40 |
+
{{- '\n<description>' ~ (tool.description | trim) ~ '</description>' }}
|
| 41 |
+
{%- endif %}
|
| 42 |
+
{{- '\n<parameters>' }}
|
| 43 |
+
{%- if tool.parameters is defined and tool.parameters is mapping and tool.parameters.properties is defined and tool.parameters.properties is mapping %}
|
| 44 |
+
{%- for param_name, param_fields in tool.parameters.properties|items %}
|
| 45 |
+
{{- '\n<parameter>' }}
|
| 46 |
+
{{- '\n<name>' ~ param_name ~ '</name>' }}
|
| 47 |
+
{%- if param_fields.type is defined %}
|
| 48 |
+
{{- '\n<type>' ~ (param_fields.type | string) ~ '</type>' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- if param_fields.description is defined %}
|
| 51 |
+
{{- '\n<description>' ~ (param_fields.description | trim) ~ '</description>' }}
|
| 52 |
+
{%- endif %}
|
| 53 |
+
{%- set handled_keys = ['name', 'type', 'description'] %}
|
| 54 |
+
{{- render_extra_keys(param_fields, handled_keys) }}
|
| 55 |
+
{{- '\n</parameter>' }}
|
| 56 |
+
{%- endfor %}
|
| 57 |
+
{%- endif %}
|
| 58 |
+
{% set handled_keys = ['type', 'properties'] %}
|
| 59 |
+
{{- render_extra_keys(tool.parameters, handled_keys) }}
|
| 60 |
+
{{- '\n</parameters>' }}
|
| 61 |
+
{%- set handled_keys = ['type', 'name', 'description', 'parameters'] %}
|
| 62 |
+
{{- render_extra_keys(tool, handled_keys) }}
|
| 63 |
+
{{- '\n</function>' }}
|
| 64 |
+
{%- endfor %}
|
| 65 |
+
{{- "\n</tools>" }}
|
| 66 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
| 67 |
+
{%- endif %}
|
| 68 |
+
{%- if system_message is defined %}
|
| 69 |
+
{{- '<|im_end|>\n' }}
|
| 70 |
+
{%- else %}
|
| 71 |
+
{%- if tools is iterable and tools | length > 0 %}
|
| 72 |
+
{{- '<|im_end|>\n' }}
|
| 73 |
+
{%- endif %}
|
| 74 |
+
{%- endif %}
|
| 75 |
+
{%- for message in loop_messages %}
|
| 76 |
+
{%- if message.role == "assistant" and message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}
|
| 77 |
+
{{- '<|im_start|>' + message.role }}
|
| 78 |
+
{%- if message.content is defined and message.content is string and message.content | trim | length > 0 %}
|
| 79 |
+
{{- '\n' + message.content | trim + '\n' }}
|
| 80 |
+
{%- endif %}
|
| 81 |
+
{%- for tool_call in message.tool_calls %}
|
| 82 |
+
{%- if tool_call.function is defined %}
|
| 83 |
+
{%- set tool_call = tool_call.function %}
|
| 84 |
+
{%- endif %}
|
| 85 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
| 86 |
+
{%- if tool_call.arguments is defined %}
|
| 87 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
| 88 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
| 89 |
+
{%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
|
| 90 |
+
{{- args_value }}
|
| 91 |
+
{{- '\n</parameter>\n' }}
|
| 92 |
+
{%- endfor %}
|
| 93 |
+
{%- endif %}
|
| 94 |
+
{{- '</function>\n</tool_call>' }}
|
| 95 |
+
{%- endfor %}
|
| 96 |
+
{{- '<|im_end|>\n' }}
|
| 97 |
+
{%- elif message.role == "user" or message.role == "system" or message.role == "assistant" %}
|
| 98 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 99 |
+
{%- elif message.role == "tool" %}
|
| 100 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
| 101 |
+
{{- '<|im_start|>user\n' }}
|
| 102 |
+
{%- endif %}
|
| 103 |
+
{{- '<tool_response>\n' }}
|
| 104 |
+
{{- message.content }}
|
| 105 |
+
{{- '\n</tool_response>\n' }}
|
| 106 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
| 107 |
+
{{- '<|im_end|>\n' }}
|
| 108 |
+
{%- elif loop.last %}
|
| 109 |
+
{{- '<|im_end|>\n' }}
|
| 110 |
+
{%- endif %}
|
| 111 |
+
{%- else %}
|
| 112 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>\n' }}
|
| 113 |
+
{%- endif %}
|
| 114 |
+
{%- endfor %}
|
| 115 |
+
{%- if add_generation_prompt %}
|
| 116 |
+
{{- '<|im_start|>assistant\n' }}
|
| 117 |
+
{%- endif %}
|
models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/85c7de5b6114edc061271408a62af51fd7449020
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3MoeForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"decoder_sparse_step": 1,
|
| 8 |
+
"eos_token_id": 151645,
|
| 9 |
+
"head_dim": 128,
|
| 10 |
+
"hidden_act": "silu",
|
| 11 |
+
"hidden_size": 2048,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 5472,
|
| 14 |
+
"max_position_embeddings": 262144,
|
| 15 |
+
"max_window_layers": 28,
|
| 16 |
+
"mlp_only_layers": [],
|
| 17 |
+
"model_type": "qwen3_moe",
|
| 18 |
+
"moe_intermediate_size": 768,
|
| 19 |
+
"norm_topk_prob": true,
|
| 20 |
+
"num_attention_heads": 32,
|
| 21 |
+
"num_experts": 128,
|
| 22 |
+
"num_experts_per_tok": 8,
|
| 23 |
+
"num_hidden_layers": 48,
|
| 24 |
+
"num_key_value_heads": 4,
|
| 25 |
+
"output_router_logits": false,
|
| 26 |
+
"qkv_bias": false,
|
| 27 |
+
"quantization_config": {
|
| 28 |
+
"activation_scheme": "dynamic",
|
| 29 |
+
"modules_to_not_convert": [
|
| 30 |
+
"lm_head",
|
| 31 |
+
"model.layers.0.input_layernorm",
|
| 32 |
+
"model.layers.0.mlp.gate",
|
| 33 |
+
"model.layers.0.post_attention_layernorm",
|
| 34 |
+
"model.layers.1.input_layernorm",
|
| 35 |
+
"model.layers.1.mlp.gate",
|
| 36 |
+
"model.layers.1.post_attention_layernorm",
|
| 37 |
+
"model.layers.2.input_layernorm",
|
| 38 |
+
"model.layers.2.mlp.gate",
|
| 39 |
+
"model.layers.2.post_attention_layernorm",
|
| 40 |
+
"model.layers.3.input_layernorm",
|
| 41 |
+
"model.layers.3.mlp.gate",
|
| 42 |
+
"model.layers.3.post_attention_layernorm",
|
| 43 |
+
"model.layers.4.input_layernorm",
|
| 44 |
+
"model.layers.4.mlp.gate",
|
| 45 |
+
"model.layers.4.post_attention_layernorm",
|
| 46 |
+
"model.layers.5.input_layernorm",
|
| 47 |
+
"model.layers.5.mlp.gate",
|
| 48 |
+
"model.layers.5.post_attention_layernorm",
|
| 49 |
+
"model.layers.6.input_layernorm",
|
| 50 |
+
"model.layers.6.mlp.gate",
|
| 51 |
+
"model.layers.6.post_attention_layernorm",
|
| 52 |
+
"model.layers.7.input_layernorm",
|
| 53 |
+
"model.layers.7.mlp.gate",
|
| 54 |
+
"model.layers.7.post_attention_layernorm",
|
| 55 |
+
"model.layers.8.input_layernorm",
|
| 56 |
+
"model.layers.8.mlp.gate",
|
| 57 |
+
"model.layers.8.post_attention_layernorm",
|
| 58 |
+
"model.layers.9.input_layernorm",
|
| 59 |
+
"model.layers.9.mlp.gate",
|
| 60 |
+
"model.layers.9.post_attention_layernorm",
|
| 61 |
+
"model.layers.10.input_layernorm",
|
| 62 |
+
"model.layers.10.mlp.gate",
|
| 63 |
+
"model.layers.10.post_attention_layernorm",
|
| 64 |
+
"model.layers.11.input_layernorm",
|
| 65 |
+
"model.layers.11.mlp.gate",
|
| 66 |
+
"model.layers.11.post_attention_layernorm",
|
| 67 |
+
"model.layers.12.input_layernorm",
|
| 68 |
+
"model.layers.12.mlp.gate",
|
| 69 |
+
"model.layers.12.post_attention_layernorm",
|
| 70 |
+
"model.layers.13.input_layernorm",
|
| 71 |
+
"model.layers.13.mlp.gate",
|
| 72 |
+
"model.layers.13.post_attention_layernorm",
|
| 73 |
+
"model.layers.14.input_layernorm",
|
| 74 |
+
"model.layers.14.mlp.gate",
|
| 75 |
+
"model.layers.14.post_attention_layernorm",
|
| 76 |
+
"model.layers.15.input_layernorm",
|
| 77 |
+
"model.layers.15.mlp.gate",
|
| 78 |
+
"model.layers.15.post_attention_layernorm",
|
| 79 |
+
"model.layers.16.input_layernorm",
|
| 80 |
+
"model.layers.16.mlp.gate",
|
| 81 |
+
"model.layers.16.post_attention_layernorm",
|
| 82 |
+
"model.layers.17.input_layernorm",
|
| 83 |
+
"model.layers.17.mlp.gate",
|
| 84 |
+
"model.layers.17.post_attention_layernorm",
|
| 85 |
+
"model.layers.18.input_layernorm",
|
| 86 |
+
"model.layers.18.mlp.gate",
|
| 87 |
+
"model.layers.18.post_attention_layernorm",
|
| 88 |
+
"model.layers.19.input_layernorm",
|
| 89 |
+
"model.layers.19.mlp.gate",
|
| 90 |
+
"model.layers.19.post_attention_layernorm",
|
| 91 |
+
"model.layers.20.input_layernorm",
|
| 92 |
+
"model.layers.20.mlp.gate",
|
| 93 |
+
"model.layers.20.post_attention_layernorm",
|
| 94 |
+
"model.layers.21.input_layernorm",
|
| 95 |
+
"model.layers.21.mlp.gate",
|
| 96 |
+
"model.layers.21.post_attention_layernorm",
|
| 97 |
+
"model.layers.22.input_layernorm",
|
| 98 |
+
"model.layers.22.mlp.gate",
|
| 99 |
+
"model.layers.22.post_attention_layernorm",
|
| 100 |
+
"model.layers.23.input_layernorm",
|
| 101 |
+
"model.layers.23.mlp.gate",
|
| 102 |
+
"model.layers.23.post_attention_layernorm",
|
| 103 |
+
"model.layers.24.input_layernorm",
|
| 104 |
+
"model.layers.24.mlp.gate",
|
| 105 |
+
"model.layers.24.post_attention_layernorm",
|
| 106 |
+
"model.layers.25.input_layernorm",
|
| 107 |
+
"model.layers.25.mlp.gate",
|
| 108 |
+
"model.layers.25.post_attention_layernorm",
|
| 109 |
+
"model.layers.26.input_layernorm",
|
| 110 |
+
"model.layers.26.mlp.gate",
|
| 111 |
+
"model.layers.26.post_attention_layernorm",
|
| 112 |
+
"model.layers.27.input_layernorm",
|
| 113 |
+
"model.layers.27.mlp.gate",
|
| 114 |
+
"model.layers.27.post_attention_layernorm",
|
| 115 |
+
"model.layers.28.input_layernorm",
|
| 116 |
+
"model.layers.28.mlp.gate",
|
| 117 |
+
"model.layers.28.post_attention_layernorm",
|
| 118 |
+
"model.layers.29.input_layernorm",
|
| 119 |
+
"model.layers.29.mlp.gate",
|
| 120 |
+
"model.layers.29.post_attention_layernorm",
|
| 121 |
+
"model.layers.30.input_layernorm",
|
| 122 |
+
"model.layers.30.mlp.gate",
|
| 123 |
+
"model.layers.30.post_attention_layernorm",
|
| 124 |
+
"model.layers.31.input_layernorm",
|
| 125 |
+
"model.layers.31.mlp.gate",
|
| 126 |
+
"model.layers.31.post_attention_layernorm",
|
| 127 |
+
"model.layers.32.input_layernorm",
|
| 128 |
+
"model.layers.32.mlp.gate",
|
| 129 |
+
"model.layers.32.post_attention_layernorm",
|
| 130 |
+
"model.layers.33.input_layernorm",
|
| 131 |
+
"model.layers.33.mlp.gate",
|
| 132 |
+
"model.layers.33.post_attention_layernorm",
|
| 133 |
+
"model.layers.34.input_layernorm",
|
| 134 |
+
"model.layers.34.mlp.gate",
|
| 135 |
+
"model.layers.34.post_attention_layernorm",
|
| 136 |
+
"model.layers.35.input_layernorm",
|
| 137 |
+
"model.layers.35.mlp.gate",
|
| 138 |
+
"model.layers.35.post_attention_layernorm",
|
| 139 |
+
"model.layers.36.input_layernorm",
|
| 140 |
+
"model.layers.36.mlp.gate",
|
| 141 |
+
"model.layers.36.post_attention_layernorm",
|
| 142 |
+
"model.layers.37.input_layernorm",
|
| 143 |
+
"model.layers.37.mlp.gate",
|
| 144 |
+
"model.layers.37.post_attention_layernorm",
|
| 145 |
+
"model.layers.38.input_layernorm",
|
| 146 |
+
"model.layers.38.mlp.gate",
|
| 147 |
+
"model.layers.38.post_attention_layernorm",
|
| 148 |
+
"model.layers.39.input_layernorm",
|
| 149 |
+
"model.layers.39.mlp.gate",
|
| 150 |
+
"model.layers.39.post_attention_layernorm",
|
| 151 |
+
"model.layers.40.input_layernorm",
|
| 152 |
+
"model.layers.40.mlp.gate",
|
| 153 |
+
"model.layers.40.post_attention_layernorm",
|
| 154 |
+
"model.layers.41.input_layernorm",
|
| 155 |
+
"model.layers.41.mlp.gate",
|
| 156 |
+
"model.layers.41.post_attention_layernorm",
|
| 157 |
+
"model.layers.42.input_layernorm",
|
| 158 |
+
"model.layers.42.mlp.gate",
|
| 159 |
+
"model.layers.42.post_attention_layernorm",
|
| 160 |
+
"model.layers.43.input_layernorm",
|
| 161 |
+
"model.layers.43.mlp.gate",
|
| 162 |
+
"model.layers.43.post_attention_layernorm",
|
| 163 |
+
"model.layers.44.input_layernorm",
|
| 164 |
+
"model.layers.44.mlp.gate",
|
| 165 |
+
"model.layers.44.post_attention_layernorm",
|
| 166 |
+
"model.layers.45.input_layernorm",
|
| 167 |
+
"model.layers.45.mlp.gate",
|
| 168 |
+
"model.layers.45.post_attention_layernorm",
|
| 169 |
+
"model.layers.46.input_layernorm",
|
| 170 |
+
"model.layers.46.mlp.gate",
|
| 171 |
+
"model.layers.46.post_attention_layernorm",
|
| 172 |
+
"model.layers.47.input_layernorm",
|
| 173 |
+
"model.layers.47.mlp.gate",
|
| 174 |
+
"model.layers.47.post_attention_layernorm"
|
| 175 |
+
],
|
| 176 |
+
"quant_method": "fp8",
|
| 177 |
+
"weight_block_size": [
|
| 178 |
+
128,
|
| 179 |
+
128
|
| 180 |
+
]
|
| 181 |
+
},
|
| 182 |
+
"rms_norm_eps": 1e-06,
|
| 183 |
+
"rope_scaling": null,
|
| 184 |
+
"rope_theta": 10000000,
|
| 185 |
+
"router_aux_loss_coef": 0.0,
|
| 186 |
+
"shared_expert_intermediate_size": 0,
|
| 187 |
+
"sliding_window": null,
|
| 188 |
+
"tie_word_embeddings": false,
|
| 189 |
+
"torch_dtype": "bfloat16",
|
| 190 |
+
"transformers_version": "4.51.3",
|
| 191 |
+
"use_cache": true,
|
| 192 |
+
"use_qk_norm": true,
|
| 193 |
+
"use_sliding_window": false,
|
| 194 |
+
"vocab_size": 151936
|
| 195 |
+
}
|
models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
|
| 3 |
+
size 11422654
|
models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/ba3e8d9206508daab666e1aaa9dcc9c435bfa541
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pad_token_id": 151643,
|
| 3 |
+
"do_sample": true,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
151645,
|
| 6 |
+
151643
|
| 7 |
+
],
|
| 8 |
+
"repetition_penalty": 1.05,
|
| 9 |
+
"temperature": 0.7,
|
| 10 |
+
"top_p": 0.8,
|
| 11 |
+
"top_k": 20
|
| 12 |
+
}
|
models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/blobs/cc8cf0649efea42a8c099d852b1525fcfc42c222
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_prefix_space": false,
|
| 3 |
+
"added_tokens_decoder": {
|
| 4 |
+
"151643": {
|
| 5 |
+
"content": "<|endoftext|>",
|
| 6 |
+
"lstrip": false,
|
| 7 |
+
"normalized": false,
|
| 8 |
+
"rstrip": false,
|
| 9 |
+
"single_word": false,
|
| 10 |
+
"special": true
|
| 11 |
+
},
|
| 12 |
+
"151644": {
|
| 13 |
+
"content": "<|im_start|>",
|
| 14 |
+
"lstrip": false,
|
| 15 |
+
"normalized": false,
|
| 16 |
+
"rstrip": false,
|
| 17 |
+
"single_word": false,
|
| 18 |
+
"special": true
|
| 19 |
+
},
|
| 20 |
+
"151645": {
|
| 21 |
+
"content": "<|im_end|>",
|
| 22 |
+
"lstrip": false,
|
| 23 |
+
"normalized": false,
|
| 24 |
+
"rstrip": false,
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"special": true
|
| 27 |
+
},
|
| 28 |
+
"151646": {
|
| 29 |
+
"content": "<|object_ref_start|>",
|
| 30 |
+
"lstrip": false,
|
| 31 |
+
"normalized": false,
|
| 32 |
+
"rstrip": false,
|
| 33 |
+
"single_word": false,
|
| 34 |
+
"special": true
|
| 35 |
+
},
|
| 36 |
+
"151647": {
|
| 37 |
+
"content": "<|object_ref_end|>",
|
| 38 |
+
"lstrip": false,
|
| 39 |
+
"normalized": false,
|
| 40 |
+
"rstrip": false,
|
| 41 |
+
"single_word": false,
|
| 42 |
+
"special": true
|
| 43 |
+
},
|
| 44 |
+
"151648": {
|
| 45 |
+
"content": "<|box_start|>",
|
| 46 |
+
"lstrip": false,
|
| 47 |
+
"normalized": false,
|
| 48 |
+
"rstrip": false,
|
| 49 |
+
"single_word": false,
|
| 50 |
+
"special": true
|
| 51 |
+
},
|
| 52 |
+
"151649": {
|
| 53 |
+
"content": "<|box_end|>",
|
| 54 |
+
"lstrip": false,
|
| 55 |
+
"normalized": false,
|
| 56 |
+
"rstrip": false,
|
| 57 |
+
"single_word": false,
|
| 58 |
+
"special": true
|
| 59 |
+
},
|
| 60 |
+
"151650": {
|
| 61 |
+
"content": "<|quad_start|>",
|
| 62 |
+
"lstrip": false,
|
| 63 |
+
"normalized": false,
|
| 64 |
+
"rstrip": false,
|
| 65 |
+
"single_word": false,
|
| 66 |
+
"special": true
|
| 67 |
+
},
|
| 68 |
+
"151651": {
|
| 69 |
+
"content": "<|quad_end|>",
|
| 70 |
+
"lstrip": false,
|
| 71 |
+
"normalized": false,
|
| 72 |
+
"rstrip": false,
|
| 73 |
+
"single_word": false,
|
| 74 |
+
"special": true
|
| 75 |
+
},
|
| 76 |
+
"151652": {
|
| 77 |
+
"content": "<|vision_start|>",
|
| 78 |
+
"lstrip": false,
|
| 79 |
+
"normalized": false,
|
| 80 |
+
"rstrip": false,
|
| 81 |
+
"single_word": false,
|
| 82 |
+
"special": true
|
| 83 |
+
},
|
| 84 |
+
"151653": {
|
| 85 |
+
"content": "<|vision_end|>",
|
| 86 |
+
"lstrip": false,
|
| 87 |
+
"normalized": false,
|
| 88 |
+
"rstrip": false,
|
| 89 |
+
"single_word": false,
|
| 90 |
+
"special": true
|
| 91 |
+
},
|
| 92 |
+
"151654": {
|
| 93 |
+
"content": "<|vision_pad|>",
|
| 94 |
+
"lstrip": false,
|
| 95 |
+
"normalized": false,
|
| 96 |
+
"rstrip": false,
|
| 97 |
+
"single_word": false,
|
| 98 |
+
"special": true
|
| 99 |
+
},
|
| 100 |
+
"151655": {
|
| 101 |
+
"content": "<|image_pad|>",
|
| 102 |
+
"lstrip": false,
|
| 103 |
+
"normalized": false,
|
| 104 |
+
"rstrip": false,
|
| 105 |
+
"single_word": false,
|
| 106 |
+
"special": true
|
| 107 |
+
},
|
| 108 |
+
"151656": {
|
| 109 |
+
"content": "<|video_pad|>",
|
| 110 |
+
"lstrip": false,
|
| 111 |
+
"normalized": false,
|
| 112 |
+
"rstrip": false,
|
| 113 |
+
"single_word": false,
|
| 114 |
+
"special": true
|
| 115 |
+
},
|
| 116 |
+
"151657": {
|
| 117 |
+
"content": "<tool_call>",
|
| 118 |
+
"lstrip": false,
|
| 119 |
+
"normalized": false,
|
| 120 |
+
"rstrip": false,
|
| 121 |
+
"single_word": false,
|
| 122 |
+
"special": false
|
| 123 |
+
},
|
| 124 |
+
"151658": {
|
| 125 |
+
"content": "</tool_call>",
|
| 126 |
+
"lstrip": false,
|
| 127 |
+
"normalized": false,
|
| 128 |
+
"rstrip": false,
|
| 129 |
+
"single_word": false,
|
| 130 |
+
"special": false
|
| 131 |
+
},
|
| 132 |
+
"151659": {
|
| 133 |
+
"content": "<|fim_prefix|>",
|
| 134 |
+
"lstrip": false,
|
| 135 |
+
"normalized": false,
|
| 136 |
+
"rstrip": false,
|
| 137 |
+
"single_word": false,
|
| 138 |
+
"special": false
|
| 139 |
+
},
|
| 140 |
+
"151660": {
|
| 141 |
+
"content": "<|fim_middle|>",
|
| 142 |
+
"lstrip": false,
|
| 143 |
+
"normalized": false,
|
| 144 |
+
"rstrip": false,
|
| 145 |
+
"single_word": false,
|
| 146 |
+
"special": false
|
| 147 |
+
},
|
| 148 |
+
"151661": {
|
| 149 |
+
"content": "<|fim_suffix|>",
|
| 150 |
+
"lstrip": false,
|
| 151 |
+
"normalized": false,
|
| 152 |
+
"rstrip": false,
|
| 153 |
+
"single_word": false,
|
| 154 |
+
"special": false
|
| 155 |
+
},
|
| 156 |
+
"151662": {
|
| 157 |
+
"content": "<|fim_pad|>",
|
| 158 |
+
"lstrip": false,
|
| 159 |
+
"normalized": false,
|
| 160 |
+
"rstrip": false,
|
| 161 |
+
"single_word": false,
|
| 162 |
+
"special": false
|
| 163 |
+
},
|
| 164 |
+
"151663": {
|
| 165 |
+
"content": "<|repo_name|>",
|
| 166 |
+
"lstrip": false,
|
| 167 |
+
"normalized": false,
|
| 168 |
+
"rstrip": false,
|
| 169 |
+
"single_word": false,
|
| 170 |
+
"special": false
|
| 171 |
+
},
|
| 172 |
+
"151664": {
|
| 173 |
+
"content": "<|file_sep|>",
|
| 174 |
+
"lstrip": false,
|
| 175 |
+
"normalized": false,
|
| 176 |
+
"rstrip": false,
|
| 177 |
+
"single_word": false,
|
| 178 |
+
"special": false
|
| 179 |
+
},
|
| 180 |
+
"151665": {
|
| 181 |
+
"content": "<tool_response>",
|
| 182 |
+
"lstrip": false,
|
| 183 |
+
"normalized": false,
|
| 184 |
+
"rstrip": false,
|
| 185 |
+
"single_word": false,
|
| 186 |
+
"special": false
|
| 187 |
+
},
|
| 188 |
+
"151666": {
|
| 189 |
+
"content": "</tool_response>",
|
| 190 |
+
"lstrip": false,
|
| 191 |
+
"normalized": false,
|
| 192 |
+
"rstrip": false,
|
| 193 |
+
"single_word": false,
|
| 194 |
+
"special": false
|
| 195 |
+
},
|
| 196 |
+
"151667": {
|
| 197 |
+
"content": "<think>",
|
| 198 |
+
"lstrip": false,
|
| 199 |
+
"normalized": false,
|
| 200 |
+
"rstrip": false,
|
| 201 |
+
"single_word": false,
|
| 202 |
+
"special": false
|
| 203 |
+
},
|
| 204 |
+
"151668": {
|
| 205 |
+
"content": "</think>",
|
| 206 |
+
"lstrip": false,
|
| 207 |
+
"normalized": false,
|
| 208 |
+
"rstrip": false,
|
| 209 |
+
"single_word": false,
|
| 210 |
+
"special": false
|
| 211 |
+
}
|
| 212 |
+
},
|
| 213 |
+
"additional_special_tokens": [
|
| 214 |
+
"<|im_start|>",
|
| 215 |
+
"<|im_end|>",
|
| 216 |
+
"<|object_ref_start|>",
|
| 217 |
+
"<|object_ref_end|>",
|
| 218 |
+
"<|box_start|>",
|
| 219 |
+
"<|box_end|>",
|
| 220 |
+
"<|quad_start|>",
|
| 221 |
+
"<|quad_end|>",
|
| 222 |
+
"<|vision_start|>",
|
| 223 |
+
"<|vision_end|>",
|
| 224 |
+
"<|vision_pad|>",
|
| 225 |
+
"<|image_pad|>",
|
| 226 |
+
"<|video_pad|>"
|
| 227 |
+
],
|
| 228 |
+
"bos_token": null,
|
| 229 |
+
"chat_template": "{% macro render_extra_keys(json_dict, handled_keys) %}\n {%- if json_dict is mapping %}\n {%- for json_key in json_dict if json_key not in handled_keys %}\n {%- if json_dict[json_key] is mapping or (json_dict[json_key] is sequence and json_dict[json_key] is not string) %}\n {{- '\\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | tojson | safe) ~ '</' ~ json_key ~ '>' }}\n {%- else %}\n {{-'\\n<' ~ json_key ~ '>' ~ (json_dict[json_key] | string) ~ '</' ~ json_key ~ '>' }}\n {%- endif %}\n {%- endfor %}\n {%- endif %}\n{% endmacro %}\n\n{%- if messages[0][\"role\"] == \"system\" %}\n {%- set system_message = messages[0][\"content\"] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set loop_messages = messages %}\n{%- endif %}\n\n{%- if not tools is defined %}\n {%- set tools = [] %}\n{%- endif %}\n\n{%- if system_message is defined %}\n {{- \"<|im_start|>system\\n\" + system_message }}\n{%- else %}\n {%- if tools is iterable and tools | length > 0 %}\n {{- \"<|im_start|>system\\nYou are Qwen, a helpful AI assistant that can interact with a computer to solve tasks.\" }}\n {%- endif %}\n{%- endif %}\n{%- if tools is iterable and tools | length > 0 %}\n {{- \"\\n\\n# Tools\\n\\nYou have access to the following functions:\\n\\n\" }}\n {{- \"<tools>\" }}\n {%- for tool in tools %}\n {%- if tool.function is defined %}\n {%- set tool = tool.function %}\n {%- endif %}\n {{- \"\\n<function>\\n<name>\" ~ tool.name ~ \"</name>\" }}\n {%- if tool.description is defined %}\n {{- '\\n<description>' ~ (tool.description | trim) ~ '</description>' }}\n {%- endif %}\n {{- '\\n<parameters>' }}\n {%- if tool.parameters is defined and tool.parameters is mapping and tool.parameters.properties is defined and tool.parameters.properties is mapping %}\n {%- for param_name, param_fields in tool.parameters.properties|items %}\n {{- '\\n<parameter>' }}\n {{- '\\n<name>' ~ param_name ~ '</name>' }}\n {%- if param_fields.type is defined %}\n {{- '\\n<type>' ~ (param_fields.type | string) ~ '</type>' }}\n {%- endif %}\n {%- if param_fields.description is defined %}\n {{- '\\n<description>' ~ (param_fields.description | trim) ~ '</description>' }}\n {%- endif %}\n {%- set handled_keys = ['name', 'type', 'description'] %}\n {{- render_extra_keys(param_fields, handled_keys) }}\n {{- '\\n</parameter>' }}\n {%- endfor %}\n {%- endif %}\n {% set handled_keys = ['type', 'properties'] %}\n {{- render_extra_keys(tool.parameters, handled_keys) }}\n {{- '\\n</parameters>' }}\n {%- set handled_keys = ['type', 'name', 'description', 'parameters'] %}\n {{- render_extra_keys(tool, handled_keys) }}\n {{- '\\n</function>' }}\n {%- endfor %}\n {{- \"\\n</tools>\" }}\n {{- '\\n\\nIf you choose to call a function ONLY reply in the following format with NO suffix:\\n\\n<tool_call>\\n<function=example_function_name>\\n<parameter=example_parameter_1>\\nvalue_1\\n</parameter>\\n<parameter=example_parameter_2>\\nThis is the value for the second parameter\\nthat can span\\nmultiple lines\\n</parameter>\\n</function>\\n</tool_call>\\n\\n<IMPORTANT>\\nReminder:\\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\\n- Required parameters MUST be specified\\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\\n</IMPORTANT>' }}\n{%- endif %}\n{%- if system_message is defined %}\n {{- '<|im_end|>\\n' }}\n{%- else %}\n {%- if tools is iterable and tools | length > 0 %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in loop_messages %}\n {%- if message.role == \"assistant\" and message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content is defined and message.content is string and message.content | trim | length > 0 %}\n {{- '\\n' + message.content | trim + '\\n' }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n<function=' + tool_call.name + '>\\n' }}\n {%- if tool_call.arguments is defined %}\n {%- for args_name, args_value in tool_call.arguments|items %}\n {{- '<parameter=' + args_name + '>\\n' }}\n {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}\n {{- args_value }}\n {{- '\\n</parameter>\\n' }}\n {%- endfor %}\n {%- endif %}\n {{- '</function>\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"user\" or message.role == \"system\" or message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.previtem and loop.previtem.role != \"tool\" %}\n {{- '<|im_start|>user\\n' }}\n {%- endif %}\n {{- '<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>\\n' }}\n {%- if not loop.last and loop.nextitem.role != \"tool\" %}\n {{- '<|im_end|>\\n' }}\n {%- elif loop.last %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>\\n' }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
| 230 |
+
"clean_up_tokenization_spaces": false,
|
| 231 |
+
"eos_token": "<|im_end|>",
|
| 232 |
+
"errors": "replace",
|
| 233 |
+
"model_max_length": 1048576,
|
| 234 |
+
"pad_token": "<|endoftext|>",
|
| 235 |
+
"split_special_tokens": false,
|
| 236 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 237 |
+
"unk_token": null,
|
| 238 |
+
"add_bos_token": false
|
| 239 |
+
}
|
models/transformers_cache/models--Qwen--Qwen3-Coder-30B-A3B-Instruct-FP8/refs/main
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
e8ab3f2db9e388999a004eea5a31c16a8b517bc0
|
tool_server/.venv/lib/python3.12/site-packages/vllm-0.10.1.1.dist-info/licenses/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/enc_dec_model_runner.cpython-312.pyc
ADDED
|
Binary file (21.8 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/model_runner.cpython-312.pyc
ADDED
|
Binary file (84.5 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/model_runner_base.cpython-312.pyc
ADDED
|
Binary file (14.4 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/neuron_model_runner.cpython-312.pyc
ADDED
|
Binary file (18.7 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/neuron_worker.cpython-312.pyc
ADDED
|
Binary file (9.25 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/neuronx_distributed_model_runner.cpython-312.pyc
ADDED
|
Binary file (13.9 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/pooling_model_runner.cpython-312.pyc
ADDED
|
Binary file (9.29 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/utils.cpython-312.pyc
ADDED
|
Binary file (2.01 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/worker.cpython-312.pyc
ADDED
|
Binary file (28.3 kB). View file
|
|
|
tool_server/.venv/lib/python3.12/site-packages/vllm/worker/__pycache__/worker_base.cpython-312.pyc
ADDED
|
Binary file (30.7 kB). View file
|
|
|
tool_server/.venv/share/man/man1/isympy.1
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
'\" -*- coding: us-ascii -*-
|
| 2 |
+
.if \n(.g .ds T< \\FC
|
| 3 |
+
.if \n(.g .ds T> \\F[\n[.fam]]
|
| 4 |
+
.de URL
|
| 5 |
+
\\$2 \(la\\$1\(ra\\$3
|
| 6 |
+
..
|
| 7 |
+
.if \n(.g .mso www.tmac
|
| 8 |
+
.TH isympy 1 2007-10-8 "" ""
|
| 9 |
+
.SH NAME
|
| 10 |
+
isympy \- interactive shell for SymPy
|
| 11 |
+
.SH SYNOPSIS
|
| 12 |
+
'nh
|
| 13 |
+
.fi
|
| 14 |
+
.ad l
|
| 15 |
+
\fBisympy\fR \kx
|
| 16 |
+
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
|
| 17 |
+
'in \n(.iu+\nxu
|
| 18 |
+
[\fB-c\fR | \fB--console\fR] [\fB-p\fR ENCODING | \fB--pretty\fR ENCODING] [\fB-t\fR TYPE | \fB--types\fR TYPE] [\fB-o\fR ORDER | \fB--order\fR ORDER] [\fB-q\fR | \fB--quiet\fR] [\fB-d\fR | \fB--doctest\fR] [\fB-C\fR | \fB--no-cache\fR] [\fB-a\fR | \fB--auto\fR] [\fB-D\fR | \fB--debug\fR] [
|
| 19 |
+
-- | PYTHONOPTIONS]
|
| 20 |
+
'in \n(.iu-\nxu
|
| 21 |
+
.ad b
|
| 22 |
+
'hy
|
| 23 |
+
'nh
|
| 24 |
+
.fi
|
| 25 |
+
.ad l
|
| 26 |
+
\fBisympy\fR \kx
|
| 27 |
+
.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
|
| 28 |
+
'in \n(.iu+\nxu
|
| 29 |
+
[
|
| 30 |
+
{\fB-h\fR | \fB--help\fR}
|
| 31 |
+
|
|
| 32 |
+
{\fB-v\fR | \fB--version\fR}
|
| 33 |
+
]
|
| 34 |
+
'in \n(.iu-\nxu
|
| 35 |
+
.ad b
|
| 36 |
+
'hy
|
| 37 |
+
.SH DESCRIPTION
|
| 38 |
+
isympy is a Python shell for SymPy. It is just a normal python shell
|
| 39 |
+
(ipython shell if you have the ipython package installed) that executes
|
| 40 |
+
the following commands so that you don't have to:
|
| 41 |
+
.PP
|
| 42 |
+
.nf
|
| 43 |
+
\*(T<
|
| 44 |
+
>>> from __future__ import division
|
| 45 |
+
>>> from sympy import *
|
| 46 |
+
>>> x, y, z = symbols("x,y,z")
|
| 47 |
+
>>> k, m, n = symbols("k,m,n", integer=True)
|
| 48 |
+
\*(T>
|
| 49 |
+
.fi
|
| 50 |
+
.PP
|
| 51 |
+
So starting isympy is equivalent to starting python (or ipython) and
|
| 52 |
+
executing the above commands by hand. It is intended for easy and quick
|
| 53 |
+
experimentation with SymPy. For more complicated programs, it is recommended
|
| 54 |
+
to write a script and import things explicitly (using the "from sympy
|
| 55 |
+
import sin, log, Symbol, ..." idiom).
|
| 56 |
+
.SH OPTIONS
|
| 57 |
+
.TP
|
| 58 |
+
\*(T<\fB\-c \fR\*(T>\fISHELL\fR, \*(T<\fB\-\-console=\fR\*(T>\fISHELL\fR
|
| 59 |
+
Use the specified shell (python or ipython) as
|
| 60 |
+
console backend instead of the default one (ipython
|
| 61 |
+
if present or python otherwise).
|
| 62 |
+
|
| 63 |
+
Example: isympy -c python
|
| 64 |
+
|
| 65 |
+
\fISHELL\fR could be either
|
| 66 |
+
\&'ipython' or 'python'
|
| 67 |
+
.TP
|
| 68 |
+
\*(T<\fB\-p \fR\*(T>\fIENCODING\fR, \*(T<\fB\-\-pretty=\fR\*(T>\fIENCODING\fR
|
| 69 |
+
Setup pretty printing in SymPy. By default, the most pretty, unicode
|
| 70 |
+
printing is enabled (if the terminal supports it). You can use less
|
| 71 |
+
pretty ASCII printing instead or no pretty printing at all.
|
| 72 |
+
|
| 73 |
+
Example: isympy -p no
|
| 74 |
+
|
| 75 |
+
\fIENCODING\fR must be one of 'unicode',
|
| 76 |
+
\&'ascii' or 'no'.
|
| 77 |
+
.TP
|
| 78 |
+
\*(T<\fB\-t \fR\*(T>\fITYPE\fR, \*(T<\fB\-\-types=\fR\*(T>\fITYPE\fR
|
| 79 |
+
Setup the ground types for the polys. By default, gmpy ground types
|
| 80 |
+
are used if gmpy2 or gmpy is installed, otherwise it falls back to python
|
| 81 |
+
ground types, which are a little bit slower. You can manually
|
| 82 |
+
choose python ground types even if gmpy is installed (e.g., for testing purposes).
|
| 83 |
+
|
| 84 |
+
Note that sympy ground types are not supported, and should be used
|
| 85 |
+
only for experimental purposes.
|
| 86 |
+
|
| 87 |
+
Note that the gmpy1 ground type is primarily intended for testing; it the
|
| 88 |
+
use of gmpy even if gmpy2 is available.
|
| 89 |
+
|
| 90 |
+
This is the same as setting the environment variable
|
| 91 |
+
SYMPY_GROUND_TYPES to the given ground type (e.g.,
|
| 92 |
+
SYMPY_GROUND_TYPES='gmpy')
|
| 93 |
+
|
| 94 |
+
The ground types can be determined interactively from the variable
|
| 95 |
+
sympy.polys.domains.GROUND_TYPES inside the isympy shell itself.
|
| 96 |
+
|
| 97 |
+
Example: isympy -t python
|
| 98 |
+
|
| 99 |
+
\fITYPE\fR must be one of 'gmpy',
|
| 100 |
+
\&'gmpy1' or 'python'.
|
| 101 |
+
.TP
|
| 102 |
+
\*(T<\fB\-o \fR\*(T>\fIORDER\fR, \*(T<\fB\-\-order=\fR\*(T>\fIORDER\fR
|
| 103 |
+
Setup the ordering of terms for printing. The default is lex, which
|
| 104 |
+
orders terms lexicographically (e.g., x**2 + x + 1). You can choose
|
| 105 |
+
other orderings, such as rev-lex, which will use reverse
|
| 106 |
+
lexicographic ordering (e.g., 1 + x + x**2).
|
| 107 |
+
|
| 108 |
+
Note that for very large expressions, ORDER='none' may speed up
|
| 109 |
+
printing considerably, with the tradeoff that the order of the terms
|
| 110 |
+
in the printed expression will have no canonical order
|
| 111 |
+
|
| 112 |
+
Example: isympy -o rev-lax
|
| 113 |
+
|
| 114 |
+
\fIORDER\fR must be one of 'lex', 'rev-lex', 'grlex',
|
| 115 |
+
\&'rev-grlex', 'grevlex', 'rev-grevlex', 'old', or 'none'.
|
| 116 |
+
.TP
|
| 117 |
+
\*(T<\fB\-q\fR\*(T>, \*(T<\fB\-\-quiet\fR\*(T>
|
| 118 |
+
Print only Python's and SymPy's versions to stdout at startup, and nothing else.
|
| 119 |
+
.TP
|
| 120 |
+
\*(T<\fB\-d\fR\*(T>, \*(T<\fB\-\-doctest\fR\*(T>
|
| 121 |
+
Use the same format that should be used for doctests. This is
|
| 122 |
+
equivalent to '\fIisympy -c python -p no\fR'.
|
| 123 |
+
.TP
|
| 124 |
+
\*(T<\fB\-C\fR\*(T>, \*(T<\fB\-\-no\-cache\fR\*(T>
|
| 125 |
+
Disable the caching mechanism. Disabling the cache may slow certain
|
| 126 |
+
operations down considerably. This is useful for testing the cache,
|
| 127 |
+
or for benchmarking, as the cache can result in deceptive benchmark timings.
|
| 128 |
+
|
| 129 |
+
This is the same as setting the environment variable SYMPY_USE_CACHE
|
| 130 |
+
to 'no'.
|
| 131 |
+
.TP
|
| 132 |
+
\*(T<\fB\-a\fR\*(T>, \*(T<\fB\-\-auto\fR\*(T>
|
| 133 |
+
Automatically create missing symbols. Normally, typing a name of a
|
| 134 |
+
Symbol that has not been instantiated first would raise NameError,
|
| 135 |
+
but with this option enabled, any undefined name will be
|
| 136 |
+
automatically created as a Symbol. This only works in IPython 0.11.
|
| 137 |
+
|
| 138 |
+
Note that this is intended only for interactive, calculator style
|
| 139 |
+
usage. In a script that uses SymPy, Symbols should be instantiated
|
| 140 |
+
at the top, so that it's clear what they are.
|
| 141 |
+
|
| 142 |
+
This will not override any names that are already defined, which
|
| 143 |
+
includes the single character letters represented by the mnemonic
|
| 144 |
+
QCOSINE (see the "Gotchas and Pitfalls" document in the
|
| 145 |
+
documentation). You can delete existing names by executing "del
|
| 146 |
+
name" in the shell itself. You can see if a name is defined by typing
|
| 147 |
+
"'name' in globals()".
|
| 148 |
+
|
| 149 |
+
The Symbols that are created using this have default assumptions.
|
| 150 |
+
If you want to place assumptions on symbols, you should create them
|
| 151 |
+
using symbols() or var().
|
| 152 |
+
|
| 153 |
+
Finally, this only works in the top level namespace. So, for
|
| 154 |
+
example, if you define a function in isympy with an undefined
|
| 155 |
+
Symbol, it will not work.
|
| 156 |
+
.TP
|
| 157 |
+
\*(T<\fB\-D\fR\*(T>, \*(T<\fB\-\-debug\fR\*(T>
|
| 158 |
+
Enable debugging output. This is the same as setting the
|
| 159 |
+
environment variable SYMPY_DEBUG to 'True'. The debug status is set
|
| 160 |
+
in the variable SYMPY_DEBUG within isympy.
|
| 161 |
+
.TP
|
| 162 |
+
-- \fIPYTHONOPTIONS\fR
|
| 163 |
+
These options will be passed on to \fIipython (1)\fR shell.
|
| 164 |
+
Only supported when ipython is being used (standard python shell not supported).
|
| 165 |
+
|
| 166 |
+
Two dashes (--) are required to separate \fIPYTHONOPTIONS\fR
|
| 167 |
+
from the other isympy options.
|
| 168 |
+
|
| 169 |
+
For example, to run iSymPy without startup banner and colors:
|
| 170 |
+
|
| 171 |
+
isympy -q -c ipython -- --colors=NoColor
|
| 172 |
+
.TP
|
| 173 |
+
\*(T<\fB\-h\fR\*(T>, \*(T<\fB\-\-help\fR\*(T>
|
| 174 |
+
Print help output and exit.
|
| 175 |
+
.TP
|
| 176 |
+
\*(T<\fB\-v\fR\*(T>, \*(T<\fB\-\-version\fR\*(T>
|
| 177 |
+
Print isympy version information and exit.
|
| 178 |
+
.SH FILES
|
| 179 |
+
.TP
|
| 180 |
+
\*(T<\fI${HOME}/.sympy\-history\fR\*(T>
|
| 181 |
+
Saves the history of commands when using the python
|
| 182 |
+
shell as backend.
|
| 183 |
+
.SH BUGS
|
| 184 |
+
The upstreams BTS can be found at \(lahttps://github.com/sympy/sympy/issues\(ra
|
| 185 |
+
Please report all bugs that you find in there, this will help improve
|
| 186 |
+
the overall quality of SymPy.
|
| 187 |
+
.SH "SEE ALSO"
|
| 188 |
+
\fBipython\fR(1), \fBpython\fR(1)
|