jan icon indicating copy to clipboard operation
jan copied to clipboard

bug: app errors out when sending a message to the model.

Open damonkern-Ux opened this issue 1 month ago • 2 comments

Version: 0.7.2

Describe the Bug

whenever I try to enter a message to the app, it errors out giving

AbortSignal.any is not a function. (In 'AbortSignal.any([AbortSignal.timeout(6e5), abortController?.signal])', 'AbortSignal.any' is undefined)

Steps to Reproduce

  1. Launch the app.
  2. load a model/
  3. type your message and hit send
  4. it errors out.

Screenshots / Logs

{"general.languages": "[en, de, fr, it, pt, hi, es, th]", "quantize.imatrix.entries_count": "112", "general.quantization_version": "2", "llama.context_length": "131072", "general.architecture": "llama", "tokenizer.ggml.bos_token_id": "128000", "tokenizer.ggml.model": "gpt2", "llama.attention.key_length": "64", "general.license": "llama3.2", "llama.block_count": "16", "llama.rope.freq_base": "500000", "tokenizer.ggml.merges": "<Array of type String with 280147 elements, data skipped>", "quantize.imatrix.chunks_count": "68", "general.name": "Models Meta Llama Llama 3.2 1B Instruct", "tokenizer.ggml.tokens": "<Array of type String with 128256 elements, data skipped>", "llama.embedding_length": "2048", "tokenizer.chat_template": "{{- bos_token }}\n{%- if custom_tools is defined %}\n {%- set tools = custom_tools %}\n{%- endif %}\n{%- if not tools_in_user_message is defined %}\n {%- set tools_in_user_message = true %}\n{%- endif %}\n{%- if not date_string is defined %}\n {%- if strftime_now is defined %}\n {%- set date_string = strftime_now("%d %b %Y") %}\n {%- else %}\n {%- set date_string = "26 Jul 2024" %}\n {%- endif %}\n{%- endif %}\n{%- if not tools is defined %}\n {%- set tools = none %}\n{%- endif %}\n\n{#- This block extracts the system message, so we can slot it into the right place. #}\n{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content']|trim %}\n {%- set messages = messages[1:] %}\n{%- else %}\n {%- set system_message = "" %}\n{%- endif %}\n\n{#- System message #}\n{{- "<|start_header_id|>system<|end_header_id|>\n\n" }}\n{%- if tools is not none %}\n {{- "Environment: ipython\n" }}\n{%- endif %}\n{{- "Cutting Knowledge Date: December 2023\n" }}\n{{- "Today Date: " + date_string + "\n\n" }}\n{%- if tools is not none and not tools_in_user_message %}\n {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}\n {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}\n {{- "Do not use variables.\n\n" }}\n {%- for t in tools %}\n {{- t | tojson(indent=4) }}\n {{- "\n\n" }}\n {%- endfor %}\n{%- endif %}\n{{- system_message }}\n{{- "<|eot_id|>" }}\n\n{#- Custom tools are passed in a user message with some extra guidance #}\n{%- if tools_in_user_message and not tools is none %}\n {#- Extract the first user message so we can plug it in here #}\n {%- if messages | length != 0 %}\n {%- set first_user_message = messages[0]['content']|trim %}\n {%- set messages = messages[1:] %}\n {%- else %}\n {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}\n{%- endif %}\n {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}\n {{- "Given the following functions, please respond with a JSON for a function call " }}\n {{- "with its proper arguments that best answers the given prompt.\n\n" }}\n {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}\n {{- "Do not use variables.\n\n" }}\n {%- for t in tools %}\n {{- t | tojson(indent=4) }}\n {{- "\n\n" }}\n {%- endfor %}\n {{- first_user_message + "<|eot_id|>"}}\n{%- endif %}\n\n{%- for message in messages %}\n {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}\n {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}\n {%- elif 'tool_calls' in message %}\n {%- if not message.tool_calls|length == 1 %}\n {{- raise_exception("This model only supports single tool-calls at once!") }}\n {%- endif %}\n {%- set tool_call = message.tool_calls[0].function %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}\n {{- '{"name": "' + tool_call.name + '", ' }}\n {{- '"parameters": ' }}\n {{- tool_call.arguments | tojson }}\n {{- "}" }}\n {{- "<|eot_id|>" }}\n {%- elif message.role == "tool" or message.role == "ipython" %}\n {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}\n {%- if message.content is mapping or message.content is iterable %}\n {{- message.content | tojson }}\n {%- else %}\n {{- message.content }}\n {%- endif %}\n {{- "<|eot_id|>" }}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}\n{%- endif %}\n", "tokenizer.ggml.eos_token_id": "128009", "quantize.imatrix.dataset": "group_40.txt", "general.basename": "models-meta-llama-Llama-3.2", "general.file_type": "30", "general.finetune": "Instruct", "tokenizer.ggml.pre": "llama-bpe", "tokenizer.ggml.token_type": "<Array of type Int32 with 128256 elements, data skipped>", "llama.feed_forward_length": "8192", "quantize.imatrix.file": "./Llama-3.2-1B-Instruct-GGUF_imatrix.dat", "general.tags": "[facebook, meta, pytorch, llama, llama-3, text-generation]", "llama.attention.head_count_kv": "8", "general.size_label": "1B", "llama.rope.dimension_count": "64", "llama.attention.value_length": "64", "general.type": "model", "llama.vocab_size": "128256", "llama.attention.head_count": "32", "llama.attention.layer_norm_rms_epsilon": "0.00001"} [11:24:54 AM] INFO KV estimate (no SWA detected) -> full: 268435456 bytes (~256.00 MB) [11:24:54 AM] INFO isModelSupported: Total memory requirement: 1011576928 for /Users/antonyedwardstark/Library/Application Support/Jan/data/llamacpp/models/Llama-3_2-1B-Instruct_IQ4_XS/model.gguf; Got kvCacheSize: 268435456 from BE [11:24:54 AM] INFO No GPUs detected (likely unified memory system), using total RAM as VRAM [11:24:54 AM] INFO Total VRAM reported/calculated (in bytes): 17179869184 [11:24:54 AM] INFO System RAM: 0 bytes [11:24:54 AM] INFO Total VRAM: 17179869184 bytes [11:24:54 AM] INFO Usable total memory: 14891378995 bytes [11:24:54 AM] INFO Usable VRAM: 14891378995 bytes [11:24:54 AM] INFO Required: 1011576928 bytes [11:24:59 AM] DEBUG Asset logs not found; fallback to logs.html [11:24:59 AM] DEBUG Asset logs not found; fallback to logs/index.html [11:24:59 AM] DEBUG Asset logs not found; fallback to index.html [11:25:01 AM] INFO get jan extensions, path: "/Users/antonyedwardstark/Library/Application Support/Jan/data/extensions/extensions.json"

https://github.com/user-attachments/assets/ada4e7d3-85e7-4c57-bf07-5b007f7d61db

Operating System

  • [* ] MacOS
  • [ ] Windows
  • [ ] Linux

damonkern-Ux avatar Oct 18 '25 11:10 damonkern-Ux