Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output window flicking and disappearing intermittently. #6024

Open
1 task done
zedpr0 opened this issue May 19, 2024 · 3 comments
Open
1 task done

Output window flicking and disappearing intermittently. #6024

zedpr0 opened this issue May 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@zedpr0
Copy link

zedpr0 commented May 19, 2024

Describe the bug

The output window where the llm outputs its text and displays the chat history randomly flickers intermittently.

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

It happens in my setup even after a fresh install, and a fresh VM. It happens when I upgrade as well. I am very confused there is no error in the logs either, nether in the browser console. Just type into the input and the output window will start flickering after you request a response. This can also happen just randomly. My backup version that works fine is from commit 0f134bf. I have tried to use a incognito window as well to rule out cache and cookies.

Screenshot

Screenshot 2024-05-19 at 8 18 26 AM Screenshot 2024-05-19 at 8 18 17 AM Screenshot 2024-05-19 at 8 17 47 AM

Logs

00:21:32-544648 INFO     Starting Text generation web UI                                                                                                                                                                                      
00:21:32-546964 WARNING                                                                                                                                                                                                                       
                         You are potentially exposing the web UI to the entire internet without any access password.                                                                                                                          
                         You can create one with the "--gradio-auth" flag like this:                                                                                                                                                          
                                                                                                                                                                                                                                              
                         --gradio-auth username:password                                                                                                                                                                                      
                                                                                                                                                                                                                                              
                         Make sure to replace username:password with your own.                                                                                                                                                                
00:21:32-548169 INFO     Loading settings from "settings.yaml"                                                                                                                                                                                
00:21:32-588142 INFO     Loading "dolphin-2.7-mixtral-8x7b.Q5_K_M.gguf"                                                                                                                                                                                 
00:21:32-667244 INFO     llama.cpp weights detected: "models/dolphin-2.7-mixtral-8x7b.Q5_K_M.gguf"                                                                                                                                                      
llama_model_loader: loaded meta data with 23 key-value pairs and 363 tensors from models/dolphin-2.7-mixtral-8x7b.Q5_K_M.gguf (version GGUF V3 (latest))
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output.
llama_model_loader: - kv   0:                       general.architecture str              = llama
llama_model_loader: - kv   1:                               general.name str              = LLaMA v2
llama_model_loader: - kv   2:                       llama.context_length u32              = 4096
llama_model_loader: - kv   3:                     llama.embedding_length u32              = 5120
llama_model_loader: - kv   4:                          llama.block_count u32              = 40
llama_model_loader: - kv   5:                  llama.feed_forward_length u32              = 13824
llama_model_loader: - kv   6:                 llama.rope.dimension_count u32              = 128
llama_model_loader: - kv   7:                 llama.attention.head_count u32              = 40
llama_model_loader: - kv   8:              llama.attention.head_count_kv u32              = 40
llama_model_loader: - kv   9:     llama.attention.layer_norm_rms_epsilon f32              = 0.000010
llama_model_loader: - kv  10:                       llama.rope.freq_base f32              = 10000.000000
llama_model_loader: - kv  11:                          general.file_type u32              = 18
llama_model_loader: - kv  12:                       tokenizer.ggml.model str              = llama
llama_model_loader: - kv  13:                      tokenizer.ggml.tokens arr[str,32000]   = ["<unk>", "<s>", "</s>", "<0x00>", "<...
llama_model_loader: - kv  14:                      tokenizer.ggml.scores arr[f32,32000]   = [0.000000, 0.000000, 0.000000, 0.0000...
llama_model_loader: - kv  15:                  tokenizer.ggml.token_type arr[i32,32000]   = [2, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6, 6, ...
llama_model_loader: - kv  16:                tokenizer.ggml.bos_token_id u32              = 1
llama_model_loader: - kv  17:                tokenizer.ggml.eos_token_id u32              = 2
llama_model_loader: - kv  18:            tokenizer.ggml.unknown_token_id u32              = 0
llama_model_loader: - kv  19:            tokenizer.ggml.padding_token_id u32              = 0
llama_model_loader: - kv  20:               tokenizer.ggml.add_bos_token bool             = true
llama_model_loader: - kv  21:               tokenizer.ggml.add_eos_token bool             = false
llama_model_loader: - kv  22:               general.quantization_version u32              = 2
llama_model_loader: - type  f32:   81 tensors
llama_model_loader: - type q6_K:  282 tensors
llm_load_vocab: special tokens definition check successful ( 259/32000 ).
llm_load_print_meta: format           = GGUF V3 (latest)
llm_load_print_meta: arch             = llama
llm_load_print_meta: vocab type       = SPM
llm_load_print_meta: n_vocab          = 32000
llm_load_print_meta: n_merges         = 0
llm_load_print_meta: n_ctx_train      = 4096
llm_load_print_meta: n_embd           = 5120
llm_load_print_meta: n_head           = 40
llm_load_print_meta: n_head_kv        = 40
llm_load_print_meta: n_layer          = 40
llm_load_print_meta: n_rot            = 128
llm_load_print_meta: n_embd_head_k    = 128
llm_load_print_meta: n_embd_head_v    = 128
llm_load_print_meta: n_gqa            = 1
llm_load_print_meta: n_embd_k_gqa     = 5120
llm_load_print_meta: n_embd_v_gqa     = 5120
llm_load_print_meta: f_norm_eps       = 0.0e+00
llm_load_print_meta: f_norm_rms_eps   = 1.0e-05
llm_load_print_meta: f_clamp_kqv      = 0.0e+00
llm_load_print_meta: f_max_alibi_bias = 0.0e+00
llm_load_print_meta: f_logit_scale    = 0.0e+00
llm_load_print_meta: n_ff             = 13824
llm_load_print_meta: n_expert         = 0
llm_load_print_meta: n_expert_used    = 0
llm_load_print_meta: causal attn      = 1
llm_load_print_meta: pooling type     = 0
llm_load_print_meta: rope type        = 0
llm_load_print_meta: rope scaling     = linear
llm_load_print_meta: freq_base_train  = 10000.0
llm_load_print_meta: freq_scale_train = 1
llm_load_print_meta: n_yarn_orig_ctx  = 4096
llm_load_print_meta: rope_finetuned   = unknown
llm_load_print_meta: ssm_d_conv       = 0
llm_load_print_meta: ssm_d_inner      = 0
llm_load_print_meta: ssm_d_state      = 0
llm_load_print_meta: ssm_dt_rank      = 0
llm_load_print_meta: model type       = 13B
llm_load_print_meta: model ftype      = Q6_K
llm_load_print_meta: model params     = 13.02 B
llm_load_print_meta: model size       = 9.95 GiB (6.56 BPW) 
llm_load_print_meta: general.name     = LLaMA v2
llm_load_print_meta: BOS token        = 1 '<s>'
llm_load_print_meta: EOS token        = 2 '</s>'
llm_load_print_meta: UNK token        = 0 '<unk>'
llm_load_print_meta: PAD token        = 0 '<unk>'
llm_load_print_meta: LF token         = 13 '<0x0A>'
ggml_cuda_init: GGML_CUDA_FORCE_MMQ:   no
ggml_cuda_init: CUDA_USE_TENSOR_CORES: yes
ggml_cuda_init: found 1 CUDA devices:
  Device 0: NVIDIA GeForce RTX 4080, compute capability 8.9, VMM: yes
llm_load_tensors: ggml ctx size =    0.37 MiB
llm_load_tensors: offloading 40 repeating layers to GPU
llm_load_tensors: offloading non-repeating layers to GPU
llm_load_tensors: offloaded 41/41 layers to GPU
llm_load_tensors:        CPU buffer size =   128.17 MiB
llm_load_tensors:      CUDA0 buffer size = 10055.54 MiB
....................................................................................................
llama_new_context_with_model: n_ctx      = 4096
llama_new_context_with_model: n_batch    = 512
llama_new_context_with_model: n_ubatch   = 512
llama_new_context_with_model: flash_attn = 0
llama_new_context_with_model: freq_base  = 10000.0
llama_new_context_with_model: freq_scale = 1
llama_kv_cache_init:      CUDA0 KV buffer size =  3200.00 MiB
llama_new_context_with_model: KV self size  = 3200.00 MiB, K (f16): 1600.00 MiB, V (f16): 1600.00 MiB
llama_new_context_with_model:  CUDA_Host  output buffer size =     0.12 MiB
llama_new_context_with_model:      CUDA0 compute buffer size =   368.00 MiB
llama_new_context_with_model:  CUDA_Host compute buffer size =    18.01 MiB
llama_new_context_with_model: graph nodes  = 1286
llama_new_context_with_model: graph splits = 2
AVX = 1 | AVX_VNNI = 0 | AVX2 = 1 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 1 | NEON = 0 | ARM_FMA = 0 | F16C = 1 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 1 | SSE3 = 1 | SSSE3 = 1 | VSX = 0 | MATMUL_INT8 = 0 | LLAMAFILE = 1 | 
Model metadata: {'tokenizer.ggml.add_eos_token': 'false', 'tokenizer.ggml.padding_token_id': '0', 'tokenizer.ggml.unknown_token_id': '0', 'tokenizer.ggml.eos_token_id': '2', 'general.architecture': 'llama', 'llama.rope.freq_base': '10000.000000', 'llama.context_length': '4096', 'general.name': 'LLaMA v2', 'tokenizer.ggml.add_bos_token': 'true', 'llama.embedding_length': '5120', 'llama.feed_forward_length': '13824', 'llama.attention.layer_norm_rms_epsilon': '0.000010', 'llama.rope.dimension_count': '128', 'tokenizer.ggml.bos_token_id': '1', 'llama.attention.head_count': '40', 'llama.block_count': '40', 'llama.attention.head_count_kv': '40', 'general.quantization_version': '2', 'tokenizer.ggml.model': 'llama', 'general.file_type': '18'}
Using fallback chat format: None
00:21:42-356366 INFO     Loaded "dolphin-2.7-mixtral-8x7b.Q5_K_M" in 9.77 seconds.                                                                                                                                                                 
00:21:42-357111 INFO     LOADER: "llama.cpp"                                                                                                                                                                                                  
00:21:42-357684 INFO     TRUNCATION LENGTH: 4096                                                                                                                                                                                              
00:21:42-358275 INFO     INSTRUCTION TEMPLATE: "Alpaca"                                                                                                                                                                                       
00:21:42-358836 INFO     Loading the extension "openai"                                                                                                                                                                                       
00:21:42-461732 INFO     OpenAI-compatible API URL:                                                                                                                                                                                           
                                                                                                                                                                                                                                              
                         http://0.0.0.0:5000                                                                                                                                                                                                  
                                                                                                                                                                                                                                              
00:21:42-462570 INFO     Loading the extension "gallery"                                                                                                                                                                                      
00:21:42-465126 INFO     Loading the extension "superboogav2"                                                                                                                                                                                 
00:21:44-733533 DEBUG    Loading hyperparameters...                                                                                                                                                                                           

Running on local URL:  http://0.0.0.0:7960

00:22:29-259694 INFO     Successfully deleted 0 records from chromaDB.                                                                                                                                                                        
00:22:31-858506 INFO     Adding 17 new embeddings.                                                                                                                                                                                            
Output generated in 1.97 seconds (26.92 tokens/s, 53 tokens, context 1006, seed 312068716)

System Info

Operating system: Ubuntu 22.04
GPU Brand: Nvidia
GPU Model: 4080
@zedpr0 zedpr0 added the bug Something isn't working label May 19, 2024
@AoifeHughes
Copy link

I'm running on a M1 MacBook Pro and having the same exact issue.

@Patronics
Copy link
Contributor

Patronics commented Jul 4, 2024

I'm also having the exact same issue on my M1 Max Macbook Pro Running MacOS Sonoma 14.5. It's been the case for a long time for me, including both version ad12236 and a freshly-updated 2f71515, and likely including earlier versions as well.

@Patronics
Copy link
Contributor

Patronics commented Jul 19, 2024

It's interesting to note that any text in code boxes doesn't disappear, while all normal conversation text does. It also consistently reappears when you hover your cursor over it, but will still disappear around 50% of the time when the cursor is moved away from the active conversation area.

Also, it seems that if you specifically move your cursor away from the code box, it consistently causes it to disappear, perhaps at the same time as the "trash" button in the code box does? Maybe that's a factor?

Edit: turns out it wasn't the trash button auto-hiding that was the issue, but the scrollbar. Just opened a pull request with a fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants