Is Triton unable to install in python 3.10 versions?

Hello I'm using python 3.10 version and getting error while run 'pip install triton'
ERROR: Could not find a version that satisfies the requirement triton (from versions: none)
ERROR: No matching distribution found for triton
I also download triton repository and try to install from source but didn't work.
anyone can help?

@debdip
I have installed Triton successfully with python version 3.10 in Codespaces .

can you try again because seem to be a problem in the setup more like some issue with your particular setup

+1 pip just can't find the package, is there a link to whl package?

+1 cant install and also manually cant install. cmake error C:\sd\venv\Scripts\python.exe -m pip install -e c:\sd\triton\python

same here, getting:
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j288']' returned non-zero exit status 2.

windows is not supported you have to build yourself.

Bulid is also not successful in windows 10 machine.

same error

windows is not supported you have to build yourself.

any hint on how it is done? or a link to documentation about 'building' (from git I guess?)

Not just Windows.  I have attempted to install on Mac.
Pip simply can not find Triton.   I tried Python 3.8, 3,9, 3.10.
Nada. The company probably could publish clear non-erroneous documentation.
This:
https://github.com/openai/triton/blob/main/docs/getting-started/installation.rst
Claims:
You can install the latest stable release of Triton from pip:
pip install triton
Binary wheels are available for CPython 3.6-3.9 and PyPy 3.6-3.7.
So do they exist?

Note that lack of compatibility for Windows / MacOS is explicitly documented in README.md:
Compatibility
Supported Platforms:

Linux
Supported Hardware:

NVIDIA GPUs (Compute Capability 7.0+)
Under development: AMD GPUs, CPUs

You can see here https://pypi.org/project/triton/2.0.0.post1/#files that on linux 3.10 is there.
Apologies for the outdated installation.rst file. Our docs building job has been broken for a while, and we haven't had the resources to fix it yet.

The Java world simply did not tolerate this kind of issue to just go on and on the way it has here.  Here, they made the claim that they support a particular version of Python - but the reality is - they don't?
They only support it on "some" version  on WSL?

I don't understand the issue/drama here. Triton is only supported on Linux, as mentioned in README.md. PyPI page has wheels for Python 3.6 - 3.11 on Linux. We don't have any windows CI machine. We're not Java; we're a small team at OpenAI working on this project, and we have busy jobs working on compiler optimizations and stability improvements for LLMs. All the extra community management work is done in our free time. The project is open-source; if you think the documentation is inaccurate or the cibuildwheelcommand is wrong, you are free to submit a PR.

Thanks for responding.  Good explanation. And -  I was able to do the build from source and make it work on Mac. The library loads up.  So it's not wrong.  It appears to work if we just follow the build instructions.
I appreciate the time you put into this.     Thank you!

Nice! Note that we have long-term plan to have Triton also work on Mac with Apple GPUs, but this will take time to materialize. But when the time comes, MacOS will be added as a supported platform.

@ptillet Out of curiosity, what would be needed to get Triton to compile on macOS (for both x86_64 and arm64 platforms)? I saw that it was possible to build from source an x86 macOS machine but I've had no luck in getting it to work on arm64. I'm asking because I don't really know where to start looking for why it doesn't work.
Also, I suppose this is a separate question, what would it take to get it to support MPS hardware on M1 Macs?
If this is even a medium scale effort, I'd like to contribute here.

Same here.

Same problem with 18.04 and I don't get why Linux torch 2.0.0 mandates triton be installed, especially if triton is not available on Windows or Mac, per above discussion.
python38 -m pip install torch
Collecting torch
Using cached https://files.pythonhosted.org/packages/89/5a/0d017d8d45cc309f9de8e5b8edc9b6b204d8c47936a3f2b84cf01650cf98/torch-2.0.0-cp38-cp38-manylinux1_x86_64.whl
Collecting nvidia-cuda-nvrtc-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ef/25/922c5996aada6611b79b53985af7999fc629aee1d5d001b6a22431e18fec/nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl
Collecting networkx (from torch)
Using cached https://files.pythonhosted.org/packages/a8/05/9d4f9b78ead6b2661d6e8ea772e111fc4a9fbd866ad0c81906c11206b55e/networkx-3.1-py3-none-any.whl
Collecting sympy (from torch)
Using cached https://files.pythonhosted.org/packages/2d/49/a2d03101e2d28ad528968144831d506344418ef1cc04839acdbe185889c2/sympy-1.11.1-py3-none-any.whl
Collecting nvidia-cudnn-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/dc/30/66d4347d6e864334da5bb1c7571305e501dcb11b9155971421bb7bb5315f/nvidia_cudnn_cu11-<IP_ADDRESS>-2-py3-none-manylinux1_x86_64.whl
Collecting jinja2 (from torch)
Using cached https://files.pythonhosted.org/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl
Collecting nvidia-cublas-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ce/41/fdeb62b5437996e841d83d7d2714ca75b886547ee8017ee2fe6ea409d983/nvidia_cublas_cu11-<IP_ADDRESS>-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cusparse-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ea/6f/6d032cc1bb7db88a989ddce3f4968419a7edeafda362847f42f614b1f845/nvidia_cusparse_cu11-<IP_ADDRESS>-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cuda-cupti-cu11==11.7.101; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/e6/9d/dd0cdcd800e642e3c82ee3b5987c751afd4f3fb9cc2752517f42c3bc6e49/nvidia_cuda_cupti_cu11-11.7.101-py3-none-manylinux1_x86_64.whl
Collecting nvidia-nccl-cu11==2.14.3; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/55/92/914cdb650b6a5d1478f83148597a25e90ea37d739bd563c5096b0e8a5f43/nvidia_nccl_cu11-2.14.3-py3-none-manylinux1_x86_64.whl
Collecting filelock (from torch)
Using cached https://files.pythonhosted.org/packages/ad/73/b094a662ae05cdc4ec95bc54e434e307986a5de5960166b8161b7c1373ee/filelock-3.12.0-py3-none-any.whl
Collecting nvidia-cuda-runtime-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/36/92/89cf558b514125d2ebd8344dd2f0533404b416486ff681d5434a5832a019/nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cufft-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/74/79/b912a77e38e41f15a0581a59f5c3548d1ddfdda3225936fb67c342719e7a/nvidia_cufft_cu11-<IP_ADDRESS>-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cusolver-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/3e/77/66149e3153b19312fb782ea367f3f950123b93916a45538b573fe373570a/nvidia_cusolver_cu11-<IP_ADDRESS>-2-py3-none-manylinux1_x86_64.whl
Collecting triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Could not find a version that satisfies the requirement triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch) (from versions: )
No matching distribution found for triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Temporary workaround - use torch 1.9
python38 -m pip install torch==1.9

Same problem with 18.04 and I don't get why Linux torch 2.0.0 mandates triton be installed, especially if triton is not available on Windows or Mac, per above discussion.
python38 -m pip install torch
Collecting torch
Using cached https://files.pythonhosted.org/packages/89/5a/0d017d8d45cc309f9de8e5b8edc9b6b204d8c47936a3f2b84cf01650cf98/torch-2.0.0-cp38-cp38-manylinux1_x86_64.whl
Collecting nvidia-cuda-nvrtc-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ef/25/922c5996aada6611b79b53985af7999fc629aee1d5d001b6a22431e18fec/nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl
Collecting networkx (from torch)
Using cached https://files.pythonhosted.org/packages/a8/05/9d4f9b78ead6b2661d6e8ea772e111fc4a9fbd866ad0c81906c11206b55e/networkx-3.1-py3-none-any.whl
Collecting sympy (from torch)
Using cached https://files.pythonhosted.org/packages/2d/49/a2d03101e2d28ad528968144831d506344418ef1cc04839acdbe185889c2/sympy-1.11.1-py3-none-any.whl
Collecting nvidia-cudnn-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/dc/30/66d4347d6e864334da5bb1c7571305e501dcb11b9155971421bb7bb5315f/nvidia_cudnn_cu11-<IP_ADDRESS>-2-py3-none-manylinux1_x86_64.whl
Collecting jinja2 (from torch)
Using cached https://files.pythonhosted.org/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl
Collecting nvidia-cublas-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ce/41/fdeb62b5437996e841d83d7d2714ca75b886547ee8017ee2fe6ea409d983/nvidia_cublas_cu11-<IP_ADDRESS>-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cusparse-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ea/6f/6d032cc1bb7db88a989ddce3f4968419a7edeafda362847f42f614b1f845/nvidia_cusparse_cu11-<IP_ADDRESS>-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cuda-cupti-cu11==11.7.101; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/e6/9d/dd0cdcd800e642e3c82ee3b5987c751afd4f3fb9cc2752517f42c3bc6e49/nvidia_cuda_cupti_cu11-11.7.101-py3-none-manylinux1_x86_64.whl
Collecting nvidia-nccl-cu11==2.14.3; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/55/92/914cdb650b6a5d1478f83148597a25e90ea37d739bd563c5096b0e8a5f43/nvidia_nccl_cu11-2.14.3-py3-none-manylinux1_x86_64.whl
Collecting filelock (from torch)
Using cached https://files.pythonhosted.org/packages/ad/73/b094a662ae05cdc4ec95bc54e434e307986a5de5960166b8161b7c1373ee/filelock-3.12.0-py3-none-any.whl
Collecting nvidia-cuda-runtime-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/36/92/89cf558b514125d2ebd8344dd2f0533404b416486ff681d5434a5832a019/nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cufft-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/74/79/b912a77e38e41f15a0581a59f5c3548d1ddfdda3225936fb67c342719e7a/nvidia_cufft_cu11-<IP_ADDRESS>-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cusolver-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/3e/77/66149e3153b19312fb782ea367f3f950123b93916a45538b573fe373570a/nvidia_cusolver_cu11-<IP_ADDRESS>-2-py3-none-manylinux1_x86_64.whl
Collecting triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Could not find a version that satisfies the requirement triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch) (from versions: )
No matching distribution found for triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Temporary workaround - use torch 1.9
python38 -m pip install torch==1.9

Same problem with 18.04 and I don't get why Linux torch 2.0.0 mandates triton be installed, especially if triton is not available on Windows or Mac, per above discussion.
python38 -m pip install torch
Collecting torch
Using cached https://files.pythonhosted.org/packages/89/5a/0d017d8d45cc309f9de8e5b8edc9b6b204d8c47936a3f2b84cf01650cf98/torch-2.0.0-cp38-cp38-manylinux1_x86_64.whl
Collecting nvidia-cuda-nvrtc-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ef/25/922c5996aada6611b79b53985af7999fc629aee1d5d001b6a22431e18fec/nvidia_cuda_nvrtc_cu11-11.7.99-2-py3-none-manylinux1_x86_64.whl
Collecting networkx (from torch)
Using cached https://files.pythonhosted.org/packages/a8/05/9d4f9b78ead6b2661d6e8ea772e111fc4a9fbd866ad0c81906c11206b55e/networkx-3.1-py3-none-any.whl
Collecting sympy (from torch)
Using cached https://files.pythonhosted.org/packages/2d/49/a2d03101e2d28ad528968144831d506344418ef1cc04839acdbe185889c2/sympy-1.11.1-py3-none-any.whl
Collecting nvidia-cudnn-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/dc/30/66d4347d6e864334da5bb1c7571305e501dcb11b9155971421bb7bb5315f/nvidia_cudnn_cu11-<IP_ADDRESS>-2-py3-none-manylinux1_x86_64.whl
Collecting jinja2 (from torch)
Using cached https://files.pythonhosted.org/packages/bc/c3/f068337a370801f372f2f8f6bad74a5c140f6fda3d9de154052708dd3c65/Jinja2-3.1.2-py3-none-any.whl
Collecting nvidia-cublas-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ce/41/fdeb62b5437996e841d83d7d2714ca75b886547ee8017ee2fe6ea409d983/nvidia_cublas_cu11-<IP_ADDRESS>-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cusparse-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/ea/6f/6d032cc1bb7db88a989ddce3f4968419a7edeafda362847f42f614b1f845/nvidia_cusparse_cu11-<IP_ADDRESS>-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cuda-cupti-cu11==11.7.101; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/e6/9d/dd0cdcd800e642e3c82ee3b5987c751afd4f3fb9cc2752517f42c3bc6e49/nvidia_cuda_cupti_cu11-11.7.101-py3-none-manylinux1_x86_64.whl
Collecting nvidia-nccl-cu11==2.14.3; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/55/92/914cdb650b6a5d1478f83148597a25e90ea37d739bd563c5096b0e8a5f43/nvidia_nccl_cu11-2.14.3-py3-none-manylinux1_x86_64.whl
Collecting filelock (from torch)
Using cached https://files.pythonhosted.org/packages/ad/73/b094a662ae05cdc4ec95bc54e434e307986a5de5960166b8161b7c1373ee/filelock-3.12.0-py3-none-any.whl
Collecting nvidia-cuda-runtime-cu11==11.7.99; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/36/92/89cf558b514125d2ebd8344dd2f0533404b416486ff681d5434a5832a019/nvidia_cuda_runtime_cu11-11.7.99-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cufft-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/74/79/b912a77e38e41f15a0581a59f5c3548d1ddfdda3225936fb67c342719e7a/nvidia_cufft_cu11-<IP_ADDRESS>-py3-none-manylinux1_x86_64.whl
Collecting nvidia-cusolver-cu11==<IP_ADDRESS>; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Using cached https://files.pythonhosted.org/packages/3e/77/66149e3153b19312fb782ea367f3f950123b93916a45538b573fe373570a/nvidia_cusolver_cu11-<IP_ADDRESS>-2-py3-none-manylinux1_x86_64.whl
Collecting triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Could not find a version that satisfies the requirement triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch) (from versions: )
No matching distribution found for triton==2.0.0; platform_system == "Linux" and platform_machine == "x86_64" (from torch)
Temporary workaround - use torch 1.9
python38 -m pip install torch==1.9

Try this.
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

ERROR: triton-2.0.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

I managed to install triton successfully.
Try upgrading pip and then run pip install triton.

Pip Triton doesn't exist for windows

I managed to install triton successfully. Try upgrading pip and then run pip install triton.

Thanks!
Ubuntu 18.04
Python3.8
Trying to install stable-diffusion-webui, works after upgrade pip by python3 -m pip install --upgrade pip

Try this.
pip install [https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl](https://oo.pe/https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl)

Running pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl
Installed Triton on my Windows PC and I am able to use the module in python now, working perfectly. Thanks very much!

Try this.
pip install [https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl](https://oo.pe/https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl)

pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl
works!!!
Thank you!

HELP!!!

Same same...  T_T
Windows 11 with Python 3.11.4 is currently not supported for now. I tried to build it myself but encountered more errors:
      running build_py
      running build_ext
      C:\Users\AndyX\AppData\Local\Temp\pip-build-env-b47ukrj_\overlay\Lib\site-packages\setuptools\command\editable_wheel.py:292: SetuptoolsDeprecationWarning: Customization incompatible with editable install
      !!

              ********************************************************************************
                              Traceback (most recent call last):
                File "C:\Users\AndyX\AppData\Local\Temp\pip-build-env-b47ukrj_\overlay\Lib\site-packages\setuptools\command\editable_wheel.py", line 298, in _safely_run
                  return self.run_command(cmd_name)

Refer link:
https://github.com/openai/triton#install-from-source

Same I got the same error
(blip_env) C:\Users\james>pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl
ERROR: triton-2.0.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.
(blip_env) C:\Users\james>python -V
Python 3.11.4
So I guess no triton for those using Python 3.11

Try Python 3.10.11, worked like charm for me

set CUDA_VISIBLE_DEVICES=0
python src\train_bash.py ^
--stage sft ^
--model_name_or_path ckiplabCKIP-Llama-2-7b-chat ^
--do_train ^
--dataset alpaca_gpt4_zh ^
--template llama2 ^
--finetuning_type lora ^
--output_dir path_to_sft_checkpoint_L1 ^
--overwrite_cache ^
--per_device_train_batch_size 4 ^
--gradient_accumulation_steps 4 ^
--lr_scheduler_type cosine ^
--logging_steps 10 ^
--save_steps 1000 ^
--learning_rate 5e-5 ^
--num_train_epochs 1.0 ^
--resume_lora_training False ^
--plot_loss ^
--lora_target q_proj,v_proj ^
--flash_attn ^
--fp16

see also https://github.com/openai/triton/pull/273

I'm using Fedora 39 with Python 3.12 installed but still not getting any correct resolution to this yet. Any help ?

on windows 11
python 3.10.13
this WORKED
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl
regular pip install triton did NOT

same here, getting: subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j288']' returned non-zero exit status 2.

Hi there, I got exactly the same error output, have you found a way to solve?

I wish someone with the knowledge will build us a  3.11 wheel, because it is supported:
"Binary wheels are available for CPython 3.7-3.11 and PyPy 3.8-3.9."
https://triton-lang.org/main/getting-started/installation.html
There is NO whl, for python 3.11 yet. But for  3.10 you can find it here
for Win 11 - Python 3.10
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl
Other platforms:
https://huggingface.co/r4ziel/xformers_pre_built/tree/main

I wish someone with the knowledge will build us a 3.11 wheel

I wonder why it is taking so long. 3.11 out since Oct '22. 😔

I wish someone with the knowledge will build us a 3.11 wheel

I wonder why it is taking so long. 3.11 out since Oct '22. 😔

Found one that works...
https://github.com/Dao-AILab/flash-attention/releases

Found one that works...
https://github.com/Dao-AILab/flash-attention/releases

That's for Linux though?

Found one that works...
https://github.com/Dao-AILab/flash-attention/releases

That's for Linux though?

Sorry, wrong link.
https://pypi.org/project/triton-library/#files

I just wanted to say that I am having a similar issue on Alpine Linux
Looking in indexes: https://download.pytorch.org/whl/cu121
Collecting torch==2.1.0
  Downloading https://download.pytorch.org/whl/cu121/torch-2.1.0%2Bcu121-cp311-cp311-linux_x86_64.whl (2200.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.2/2.2 GB 5.3 MB/s eta 0:00:00
Collecting torchvision==0.16.0
  Downloading https://download.pytorch.org/whl/cu121/torchvision-0.16.0%2Bcu121-cp311-cp311-linux_x86_64.whl (7.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 35.2 MB/s eta 0:00:00
Collecting torchaudio==2.1.0
  Downloading https://download.pytorch.org/whl/cu121/torchaudio-2.1.0%2Bcu121-cp311-cp311-linux_x86_64.whl (3.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 46.3 MB/s eta 0:00:00
Collecting filelock (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/filelock-3.9.0-py3-none-any.whl (9.7 kB)
Collecting typing-extensions (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting sympy (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/sympy-1.12-py3-none-any.whl (5.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.7/5.7 MB 81.9 MB/s eta 0:00:00
Collecting networkx (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/networkx-3.0-py3-none-any.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 65.4 MB/s eta 0:00:00
Collecting jinja2 (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 35.3 MB/s eta 0:00:00
Collecting fsspec (from torch==2.1.0)
  Downloading https://download.pytorch.org/whl/fsspec-2023.4.0-py3-none-any.whl (153 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 154.0/154.0 kB 40.0 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of torch to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement triton==2.1.0 (from torch) (from versions: none)
ERROR: No matching distribution found for triton==2.1.0

It is failing trying to do this:
RUN pip install --upgrade pip && \
    pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --upgrade --force-reinstall --index-url https://download.pytorch.org/whl/cu121

If i change my FROM to ubuntu, the issue is not present

Try this.
pip install [https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl](https://oo.pe/https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl)

pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl
works!!! Thank you!

(base) C:\Windows\system32>pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl
Collecting triton==2.0.0
Downloading https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl (12.6 MB)
---------------------------------------- 12.6/12.6 MB 3.5 MB/s eta 0:00:00
Requirement already satisfied: torch in c:\programdata\anaconda3\lib\site-packages (from triton==2.0.0) (1.12.1)
Collecting cmake
Downloading cmake-3.28.1-py2.py3-none-win_amd64.whl (35.8 MB)
---------------------------------------- 35.8/35.8 MB 3.7 MB/s eta 0:00:00
Requirement already satisfied: filelock in c:\programdata\anaconda3\lib\site-packages (from triton==2.0.0) (3.9.0)
Requirement already satisfied: typing_extensions in c:\programdata\anaconda3\lib\site-packages (from torch->triton==2.0.0) (4.4.0)
Installing collected packages: cmake, triton
Successfully installed cmake-3.28.1 triton-2.0.0
(base) C:\Windows\system32>python -V
Python 3.10.9

On Windows 10 19045
python 3.10.6 installed,
but Didn't work for me
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: DLL load failed while importing libtriton: The specified module could not be found.

on windows 11 python 3.10.13 this WORKED pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl
regular pip install triton did NOT

https://github.com/wkpark/triton/actions/runs/7518654030

https://github.com/wkpark/triton/actions/runs/7518654030

this works, download the artifact and pip install <triton>.whl

pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

this worked for me. thank you.

https://github.com/wkpark/triton/actions/runs/7518654030

this works, download the artifact and pip install <triton>.whl

Hi, Could you give me the complete command as I cannot see any whl files on this link supplied . Thanks

ERROR: triton-2.0.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

cp310 means you need python 3.10

On Mac M3
because it's not going to install successfully via pip3 install -r requirements/pt2.txt
I tried get it from https://github.com/openai/triton
then in
cd triton
python3 -m venv .pt2
source .pt2/bin/activate
pip install ninja cmake wheel; # build-time dependencies
# Successfully installed cmake-3.28.3 ninja-<IP_ADDRESS> wheel-0.42.0
pip install -e python

step pip install ninja cmake wheel; # build-time dependencies success
The last step throws me error
xxxx/generative-models/triton/.pt2/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/Users/xxx/Sites/generative-models/triton/python/setup.py'"'"'; __file__='"'"'/Users/xxx/Sites/generative-models/triton/python/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.

On Mac M1, python 3.10.0
I haven't succeeded yet

I didn't compile manually. I tried to search and compile manually, but it didn't work. Oh, my God, what am I supposed to do with it?
Window10
python 3.10.11

I haven't compiled it manually before. The version I need is 2.10. Thanks to others for their 2.0.0 compilation. So I tried to do a Google search and compile it manually, but it didn't work.
Oh, my God, what am I supposed to do with it? Is there an executable compilation method that I can compile manually. Window10 python 3.10.11

Thank you so much. I always tried to compile without success. I was very lucky to find the 2.10 version I needed.
https://huggingface.co/Rodeszones/CogVLM-grounding-generalist-hf-quant4/blob/main/README.md?code=true#L27

did some one solved the isssu for windows 11 python 3.11 ??

Can someone provide 2.1 version build for windows?

OS:Ubuntu 18.04
I installed pyTorch 2.2.1 on Python 3.8 via below command
python3.8 -m pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu121

and I got
Could not find a version that satisfies the requirement triton==2.2.0; platform_system == "Linux" and platform_machine == "x86_64" and python_version < "3.12" (from torch==2.2.1) (from versions: )
No matching distribution found for triton==2.2.0; platform_system == "Linux" and platform_machine == "x86_64" and python_version < "3.12" (from torch==2.2.1)

Thus, I updated my pip version to 24.0 via below command:
python3.8 -m pip install --upgrade pip

And installed triton 2.2.0
python3.8 -m pip install triton==2.2.0

And it works.

Following instructions from here: https://github.com/Stability-AI/generative-models?tab=readme-ov-file#2-setting-up-the-virtualenv
pip3 install -r requirements/pt2.txt
ERROR: Ignored the following versions that require a different python version: 0.55.2 Requires-Python <3.5; 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.7.2 Requires-Python >=3.7,<3.11; 1.7.3 Requires-Python >=3.7,<3.11; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11; 2.0.28 Requires-Python >3.7, <3.11; 2.0.29 Requires-Python >3.7, <3.11; 2.0.30 Requires-Python >3.7, <3.11; 2.0.31 Requires-Python >3.7, <3.11; 2.0.32 Requires-Python >3.7, <3.11; 2.0.33 Requires-Python >3.7, <3.11; 2.0.34 Requires-Python >3.7, <3.11; 2.0.35 Requires-Python >3.7, <3.11; 2.0.36 Requires-Python >3.7, <3.11; 2.0.37 Requires-Python >3.7, <3.11; 2.0.38 Requires-Python >3.7, <3.11; 2.0.39 Requires-Python >3.7, <3.11; 2.0.40 Requires-Python >3.7, <3.11
ERROR: Could not find a version that satisfies the requirement triton==2.0.0 (from versions: none)
ERROR: No matching distribution found for triton==2.0.0

Google for error message: https://stackoverflow.com/questions/77152235/python-build-error-with-stable-diffusion-repository-error-could-not-find-a-ve
This works on windows. Below versions on which it worked for me :
Python : 3.10.9
Windows : 10 pro
pip install https://huggingface.co/r4ziel/xformers_pre_built/resolve/main/triton-2.0.0-cp310-cp310-win_amd64.whl

But not on my macOS Monterey 12.6, python --version 3.11.2
ERROR: triton-2.0.0-cp310-cp310-win_amd64.whl is not a supported wheel on this platform.

Any solutions?
I just need a basic UI to generate some offline images during a lengthy ✈... Here is some advice: https://www.reddit.com/r/StableDiffusion/comments/15m08tp/whats_the_best_ui_for_stable_diffusion_right_now/
(but all of the tools require messing with install scripts and I always sucked at resolving dependencies, not my favourite cup of tea)

Could someone build 2.2.0 for windows?

Windows 10
Python 3.11.9
Torch 2.1.0
pip install https://huggingface.co/madbuda/triton-windows-builds/resolve/main/triton-2.1.0-cp311-cp311-win_amd64.whl

Windows 10 视窗 10 Python 3.11.9 蟒蛇 3.11.9 Torch 2.1.0 火炬 2.1.0
pip install https://huggingface.co/madbuda/triton-windows-builds/resolve/main/triton-2.1.0-cp311-cp311-win_amd64.whl

Hey,dear,this works.You did a very good job! Thanks!

Download from file from huggingface:
https://huggingface.co/datasets/DirtyBirds-Playhouse/StableDiffusion/blob/main/triton-2.1.0-cp310-cp310-win_amd64.whl
right click the downloaded file and select: copy as path
pip install

I don't understand the issue/drama here. Triton is only supported on Linux, as mentioned in README.md. PyPI page has wheels for Python 3.6 - 3.11 on Linux. We don't have any windows CI machine. We're not Java; we're a small team at OpenAI

Points taken, but at the same time you've published a python package.  Python runs on Linux, Mac, and Windows.  Python users on Mac and Windows aren't wrong for expecting your package to work with their python install just the same as it does for someone else's install on Linux.  It's kinda detrimental to the package ecosystem as a whole if it starts accumulating things that work only on one OS but not others, imo.
Which maybe suggests that if there's not the time/resources to publish packages that work with Mac/Windows it may be better to just not publish any at all.  Let everyone experience the fun of building/installing from sources. 🙂
Really though, would love to see published packages that work on all platforms that python does.
(Also tried some of the huggingface links above, not working for me; python 3.10, windows+cygwin frankenmonster)

Try: pip install https://github.com/bycloud-AI/DiffBIR-Windows/raw/refs/heads/main/triton-2.0.0-cp310-cp310-win_amd64.whl

pip install https://github.com/bycloud-AI/DiffBIR-Windows/raw/refs/heads/main/triton-2.0.0-cp310-cp310-win_amd64.whl
It worked with 3.10.0, thanks.

Python 3.11
pip install https://huggingface.co/madbuda/triton-windows-builds/resolve/main/triton-3.0.0-cp311-cp311-win_amd64.whl

pip install https://github.com/bycloud-AI/DiffBIR-Windows/raw/refs/heads/main/triton-2.0.0-cp310-cp310-win_amd64.whl
It worked with 3.10.0, thanks.

Thank you bro


Guidance on tuning mapping parameters for loop closure detection.

Hi
Is there a way to know what's the value shall i set for the parameters (using loop closure) below?

I found that by increasing historyKeyframeSearchNum, i can have more history being fused into the submap. How about other parameters?
Best,
Samuel

Hi @TixiaoShan
I found that the pcd map created by LeGO-LOAM has lesser points, when compared with other mapping tools. Is it result by the parameters above?
Best,
Samuel


Editing size of geom from Python code

Hi,
I'm a grad student and I'm trying to use MuJoCo for simulating a mesh of an object.
I'm looking for some help with editing the size of the mesh in python code for curriculum learning. Basically my curriculum changes the size of the object based on difficulty, and I want to scale the size of the object dynamically instead of restarting the entire simulation with changed values in the xml file of the scene.
Here is a model which explains my question:
I'm trying to change the geom size using this code. The commented code is an alternative way I tried.
This is the xml file (the franka_emika_panda is from the Mujoco Menagerie repo):
<mujoco model="peg_insertion">
	<include file="franka_emika_panda/scene.xml" />
	<asset>
		<mesh name="peg_diamond" file="meshes/diamond.obj" />
		<mesh name="hole_diamond" file="meshes/diamond_mold.obj" />
	</asset>
	<worldbody>
		<body name="peg" pos="0.5 0.3 0.02" euler="1.57079 0 0">
			<geom name="peg_diamond" pos="0 0 0" type="mesh" mesh="peg_diamond" />
			<joint name="peg_joint" type="free" />
		</body>
		<body name="hole" pos="0.5 0 0.025" euler="1.57079 0 0">
			<geom name="hole_diamond" pos="0 0 0" type="mesh" mesh="hole_diamond" />
		</body>
	</worldbody>
</mujoco>

        for i in range(1000):
            if i%100 == 0:
                # self.model.geom('peg_diamond').size = 1.1*self.model.geom('peg_diamond').size
                geom_id = self.model.geom("peg_diamond").id
                self.model.geom_size[geom_id] = 1.2*self.model.geom_size[geom_id]
                print(self.model.geom('peg_diamond').size)

                self.model.geom('peg_diamond').rgba[:3] = np.random.rand(3)
                mujoco.mj_forward(self.model, self.data)
            mujoco.mj_step(self.model, self.data)

Here is a screenshot / video, showing that the color changes as expected, but the size remains constant:
https://drive.google.com/file/d/12WDQdHTpZBMXLt170fX1kFMBj4LtTIqQ/view?usp=sharing
Can someone please help me figure out how do I go about it?
Thanks!

You can't do that, you need to recompile. There are a bunch of compiled quantities (bounding volumes etc.) that rely on this being fixed at run-time.


ReadmeCommandTest - use CommandTester

Fixes Travis on PHP 7.4snapshot by modernizing ReadmeCommand test.

Thank you @kubawerlos.


Improve performance using virtual scroll

What does this change?
I replaced Grid component to VGrid, which allows virtual-scroll for each reg entities. I wrote the VGrid because rendering all entities makes the rendering performance as slow as the number of them grows(For example, using Grid component, it takes over 1,000 msec to open the detail modal for ~1,000 entities) .
You can check 1,000 entities rendering with the following command:
$ yarn start:huge

Implemented features

Definition grid container style using CSS media query
Anchor scrolling using (e.g. <a href="#item_0">
Initial scrolling with URL with hash (e.g. localhost:8080/#item_0
Auto updating grid style when resizing viewport (e.g. rotation viewport

Restrictions

We can't change cell height. It should be fixed value.

References

If you have links to other resources, please list them here. (e.g. issue url, related pull request url, documents)

Screenshots
If applicable, add screenshots to help explain your changes.
What can I check for bug fixes?
Please briefly describe how you can confirm the resolution of the bug.

@tsuyoshiwada Thanks for your review and I've fixed your pointed.


Suggestion: Continuous Fuzzing

Hi, I'm Yevgeny Pats Founder of Fuzzit - Continuous fuzzing as a service platform.
We have a free plan for OSS and I would be happy to contribute a PR if that's interesting.
The PR will include the following

go-fuzz fuzzers (This is generic step not-connected to fuzzit)
Continuous Fuzzing of master branch which will generate new corpus and look for new crashes
Regression on every PR that will run the fuzzers through all the generated corpus and fixed crashes from previous step. This will prevent new or old bugs from crippling into master.

You can see our basic example here and you can see an example of "in the wild" integration here.
Let me know if this is something worth working on.
Cheers,
Yevgeny

I'm not sure we need that, logrus is not supposed to received arbitrary randomized data.
A log trace is a printable utf-8 encoded string and the added field must either be json formattable or fmt.Sprintable.
We are very far away of the realm of randomized data and we totally rely on the standard library there.


stabilize 3.1.0

Feature Request
Current version 3.1.0-alpha it has been alive for more than 2 months, time to stabilize it
Which Areas Would Be Affected?
e.g., DPF, CI, build, transfer, etc.
Why Is the Feature Desired?
Are there any requirements?
Solution Proposal
If possible, provide a (brief!) solution proposal.

Let's discuss during the next committer meeting


how to adjust the plotly layout width

Hi
I tried:
$('#pivot').pivotUI(this.data, {renderers: renderers, rendererOptions: {layout: { width: 1000 }}})
did not work.
seems to be the right syntax.
thanks

actually, it's a plotly key inside a renderedOptions, but close enough :-)
$('#pivot').pivotUI(this.data, {renderers: renderers, rendererOptions: {plotly: { width: 1300 }}})
also, if I do 1300, I get only a fraction for the graph, but it works:

either way, it's great, thanks.
Got it to work in VueJS by including jquery in vuejs and populating the graph when loading the data:
axios.get(url, {withCredentials: true})
          .catch((error) => {
            if (error.response) {
              this.error = JSON.stringify(error.response.data)
            }
          })
          .then((response) => {
            if (excludes) {
              this.data = Object.freeze(this.filterData(response.data.results, excludes))
            } else {
              this.data = Object.freeze(response.data.results)
            }
            // var derivers = $.pivotUtilities.derivers
            var renderers = $.extend($.pivotUtilities.renderers,
              $.pivotUtilities.plotly_renderers)
            $('#pivot').pivotUI(this.data, {renderers: renderers, rendererOptions: {plotly: { width: 1300 }}})
          })


Account ID issue from jira

accountids are returned instead of user names during "@" mentions in jira.

Please find the announcements from atlassian here:
API changes from Atlassian
ACJIRA-1510
Thank you

@kwkkwok can you try using a service like https://requestbin.com/ to generate a fixture containing the data for a request in question, and post an anonymized version here that we can use for testing?
I'm not sure whether you have privacy settings configured in a way that results in the webhook request only containing that accountid:id string to identify the user.

Hi @timabbott,
Thank you for responding. I’ve set up the requestbin, but I can’t find the “nickname” field in the messages.
I’ve logged a ticket with Atlassian to see if the privacy settings have been misconfigured.
Will update if I have further information

If you can provide a sample Jira fixture (with data anonymized if you like), we can look at what fields are available and see if there's something reasonable we can do here.

Hi,
Sorry for the radio silence. I'm doing a back and forth with Atlassian help desk re: the privacy settings.
The first solution offered involved exporting a list of users & their IDs from the admin user / page.

This is a sample fixture.

accountids are returned instead of user names during "@" mentions in jira.

Please find the announcements from atlassian here:
API changes from Atlassian
ACJIRA-1510
Thank you

I should add the top image shows what is looks like in jira and the bottom image is the result in Zulip

Hi! I have some more information from Atlassian
The return of userid is normal for the @mention in the comments section. The workaround will be to figure out who the userID is via this

@kwkkwok Are you still working on this?


Includes hidden rows in validation

So if I have some hidden rows in a table that do not need to be there, but they happen to be textfields.
EurekaSwiftValidatorComponents includes that in the validation, so that the form actually does not get validated unless those hidden field fulfil their rules.

Hello, this should be fixed now, please try it and let me know, I've also updated the example project to test the hidden fields.


External functions documentation clarification

On http://dynamictyped.github.io/Griddle/externalData.html it would be nice to see what the function declaration format should be for the variables.  For example at the very top under the heading Wrapper Component (recommended) the variable externalChangeSort just says it needs to be set to a function, but specifically it should say that it needs to be set to a function of form changeSort: function(sort, sortAscending) so users know the function receives two variables, and it should be identified that sort is the column name and sortAscending is either 1 or 0?

I realize this issue is from a really long time ago. There has been some update to the 0.x documentation that has addressed a bit of this. Additionally we just released 1.0 and have documented these types of methods here. http://griddlegriddle.github.io/Griddle/docs/api/
We will be doing a much better job of keeping 1.0 (and beyond) documentation up-to-date. Closing this one for now but please feel free to open issues for any problems that are encountered.


trial level data overwrites timeline data even when props aren't shared

If data is specified on the timeline level, and then also on a trial within the timeline, the data from the trial will overwrite the timeline level data even if the properties are different.
var timeline = {
  data: {foo: 1},
  timeline: [{
    type: 'text',
    text: 'hello.',
    data: {bar: 2}
  }]
}

// data will not contain foo: 1 even though it should.

On second thought, this isn't a bug. This is just the lower level parameter overriding the higher level one, as it should. However, the data case should probably be special, and only override specific properties.
I'm going to push this to 6.1, since it requires a bigger change to the timeline structure.


Chinese character may cause memory overflow In CEscapeInternal function

Hello, we've found a bug In CEscapeInternal function, when there is Chinese charater, and linked with jemalloc, may cause memory overflow .
In Utf8SafeCEscape function , there is a memory alloc
gscoped_array<char> dest(new char[dest_length]);
and in CEscapeInternal we use sprintf to copy data to the buffer before.
sprintf(dest + used, (use_hex ? "\\x%02x" : "\\%03o"), *src);
when there is chinese, value of *src can be negative . when *src < 0, then format "\%03o"  will be very long, negative value will be cast to to uint32 value, and then to octal number。then sprintf will cause  buffer overflow, which will take 13 bytes .
We made a test,  1 chinese charactor  will overflow 5 bytes, and  2 chinese charactors will overflow 1 bytes .
This will cause fatal problems, because memory after this buffer will be destroyed .

Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


Center the metadata of unassigned ports vertically

I didn't actually do it because it breaks overflow but with the reduced height now it looks centered


Move regularized linear models slides to the right sequence

@ogrisel has split the linear models slides in two. This is moving the regularized linear models to their own sequence below.

Note to myself: move the quizz part as well (one question about regularized models)

Thanks, it looks good to me once the quiz is adapted. I think there is one question on regularized linear models in the first quiz of the linear models module that we be required to a later quiz.


Generate Random Values for Environment Variables

It would be helpful to integrate a system for generating random values within SimDem without having to specify a value or a command to output a random value.
Implementation wise, perhaps some way to do this in env.json files?
Bonus: ability to add random prefixes and suffixes to interactive user input

This is useful (e.g. ensure a DNS name is world unique).
How would you differentiate which value was to be randomized / appended? Certainly json files make this easier (and such flexibility is one reason why I didn't go with key/value pairs). Maybe something like:
{
    "variables": [
      {
        "name": "MY_VARIABLE",
        "value": "default value",
        "random_postfix": false
      },
      {
        "name": "MY_VARIABLE_WITH_RANDOM_POSTFIX",
        "value": "default value",
        "random_postfix": true
      },
      {
        "name": "MY_RADNOM_VARIABLE",
        "value": null,
        "random_postfix": true
      }
    ]
}

I think it's important we flesh out the design of this before implementing. What else might we want to do?

Perhaps we can employ the use of popular string generators: Faker.js is impressive (Python implementation)


[BUG] there is some typo error

[ ]  1 on hugging face everywhere you have written v2 dataset , as per the git readme the model is trained on v2a ?https://github.com/LADI-Dataset/ladi-overview/issues even in github but the classes of v2a is mentioned as per technical write up .

Please give us clarity - or update the documentation

[ ]  2 - Also did you  used the resized version (i.e. resized version was used for training ) for publishing the model  or just the v2a dataset for training model ?
[ ] 3 If the raw images were of varied sizes, how did you choose the final dimensions? Did you use any sampling methods? If so, to what scale? I noticed that the input size of the images is 448x448. for LADI-v2-classifier-small
[ ] 4  - reference model reference model , Could you please provide more details on how the results of this paper differ from those of other models? Specifically, how did using 80% of the images impact the outcomes? Why did you choose not to train the model with the entire dataset? Additionally, can you provide any use cases for this approach publishing the reference model ? (i.e please share more details how paper results is different from other model ? using 80 % images how did it helped why did not just train model with all dataset why reference any use case to it ?)

Hi Sumant - question 1 is answered in the README. Since that's something like the fourth question you've asked that's answered in the README, I'd like to gently ask you to make sure you've read it before asking any more questions. If you're not a native English speaker and find that difficult, you might ask an LLM to read it for you and answer your questions.
As you point out, further resizing the images is done internally in the code, so it shouldn't really matter whether we used the resized versions or not, but we did use the resized versions for most of our runs. Input sizes were determined by the base model.
We did train the models which are not labeled as 'reference' on the entire dataset. The other questions you're asking in your point 4 relate to the basics of why we use train and test splits - I would encourage you to find the answers by taking an ML course or asking an LLM.
I really do appreciate your interest in our work, but to save myself some time I will close any further issues you open with questions you could answer with an LLM.


Using official gguf package for constants

Work isn't finish, working on it at the office, and right now it's not the priority anymore.

I'd prefer if this package did not require any more dependencies. But renaming gguf.py might be a good idea to avoid collision with the gguf package. Perhaps pygguf would be a better name.

Using the official repository would make it automatically support future quantization types

Yes, but why not use the official repository directly then? The goal of this library is to dequantize in Python (or NumPy, technically).

I only looked at the gguf PyPi package, but apparently it is severely out of date. I just noticed that the official repository implements dequantization in NumPy now.
https://github.com/ggerganov/llama.cpp/commit/4134999e01f31256b15342b41c4de9e2477c4a6c
That's great to hear! Then I do not need to maintain this repository anymore and can just redirect everyone to https://github.com/ggerganov/llama.cpp/tree/master/gguf-py


APIView - Support specifying language by language parser

Currently library language is not saved in json file. Add the support to include language in JSON file so it can be used in the future to group reviews based on language. Similarly adding support for service name, package name etc will be helpful in grouping as well.

Add new fields in Reviews table for following:
a.	Package name
b.	Package Version
c.	Language
d.	Locked  - This is to ensure only bot can add new revision

Java has a PR that adds this support here: https://github.com/Azure/azure-sdk-tools/pull/1171


[Question] Related to roadmap and release

Understanding there are various variables for progress on some of the components (parsing, format, encoding, etc.) described in roadmap, could you provide some info on timeline?  For example, I noticed the new Span has moved to CoreFx.  Assuming the parsing, encoding APIs will eventually move there.  Is the plan to have those moved by the Spring 2017 release of .NET Core 2 and .NET Standard 2?  In addition, what are the steps to take to test out the new APIs?  Is it simply just adding the NuGet package?
Thanks in advance and looking forward to the progress in this area.

@joshfree should be able to talk about the timeline.
As to trying the APIs, just use the nuget package. See https://github.com/dotnet/corefxlab#how-to-use

Thanks @KrzysztofCwalina

From my understanding, the APIs will be included within ASP.NET Core 2.0 timeframe.  However, they will be in a "semi-private" state.  They will be made public later in 2017 around the 2.1 release.
Again, this is my interpretation based on conversations in live.asp.net.  As @DamianEdwards says...  "It's just a roadmap." :smile:


Initial port 1.20.1

Same as my pr for data-attributes.
The code compiles and the game launches with it.
The port of playerex crashes, I also don't know if this is the culprit.

See my response here.


Command line param does not overwrite saved connection (e.g. password)

An connection already defined inside the config files does not get overwriten if given at the command line. Redis Commander connects to server defined inside config file and not the updated one from command line.
Problem exists if password gets changed and config file has wrong password.

fixed version 0.6.6 release to NPM too.


MAINT: Simplify boolean expression

useful cleanup, thanks @sieben

What tool are you using to check for these things?

Pycharm :) inspect code feature
Le sam. 7 nov. 2015 14:27, Ralf Gommers<EMAIL_ADDRESS>a écrit :

What tool are you using to check for these things?
—
Reply to this email directly or view it on GitHub
https://github.com/scipy/scipy/pull/5467#issuecomment-154704045.

not too bothered by the 2 * n, in it goes. Thanks @sieben


Update user.js Linux function

Updated user.js to return in linux the "who" lines in case the user has not permissions for w command.
Pull Request
Changes proposed:

[ ] Fix
[X] Enhancement
[ ] Remove
[ ] Update

Description
Little change to user.js file, to return in linux the "who" lines in case the user has not permissions for w command.

I merged your request. Thank you for your contribution!


adds checks for disk space and size changes

I introduced a requirement to my Ansible playbooks that could possibly change the swap size run to run, and needed a way for the swap playbook to accommodate those size updates without introducing new swapfiles or swapfile thrashing.
These changes add the ability to check if the named swapfile sizes are different, and if so, reconciles the two by unmounting the existing swap, deleting it and recreating the swap with the updated size.  Also, these updates add explicit checks to see if the swapfile changes will fit on the disk the swapfile is partitioned from.
I welcome feedback as I am an Ansible neophyte.  Any help would be appreciated.

Solid implementation. Stylistically I'd shove the new tasks into a separate task list, then include that from tasks/main.yml, but that's a minor detail. Thanks for adding this @rosshinkley.
@kamaln7 Any interest in merging? This has been hanging open for over a year now.

Thanks @rosshinkley! This is a great addition. I had missed this somehow. Thanks for pinging me again @conorsch.
Merged. :100:

This seems to be broken to me.
Every time if you run the playbook it will delete and re-create the swap if your swapfile_use_dd = True
It does if if the requested_space is different than the swap_size. My settings and debug thing is:
  vars:
    - swapfile_size: 1024
    - swapfile_swappiness: 10
    - swapfile_location: /mnt/swapfile
    - swapfile_use_dd: true
... lots of lines ....
- debug:
    msg: "{{ requested_space }}  {{ swap_size }}"

This outputs  the following.
ok: [server] => {
    "msg": "1.024  1073741.824"
}

Which is clearly not what I want. The calculation is incorrect I guess. If I have a little time I'll send a PR which fixes it.

It isn't working properly with the swap_use_dd: false.
  vars:
    - swapfile_size: 1G
    - swapfile_swappiness: 10
    - swapfile_location: /mnt/swapfile

output
TASK [kamaln7.swapfile : debug] ************************************************
ok: [server] => {
    "msg": "1000000.0  1073741.824"
}

Thanks @woohgit. I've reverted this PR until I can figure out what's going on.
Related: #16

Any thoughts on these commits.  Would you be happy to accept a PR?


Repository not found.

remote: Repository not found.
fatal: repository 'https://github.com/lifeisboringsoprogramming/sd-webui-img2lookbook.git/' not found
'
git opens its login dialog when this happens

git clone https://github.com/lifeisboringsoprogramming/sd-webui-lookbook.git

So are you suggesting using the standalone version for now?  I had tried installing it in auto1111 but ran into the above issues.

I can install in Web UI

Confirmed, this new link worked for me in the a1111 Install-From-URL.  Thanks for making this!

If you added a face-tracking feature to achieve more of a Ken Burns zoom effect, I would have little choice but to get on the Patreon.

thanks for the suggestion, I can look into it.

Thanks, and if you're taking suggestions you might add an option to fit the per-image duration to be derived from a user-entered BPM value, if the user happens to know the beats per minute of the track they are using, so that the image changes can seem in sync with the audio track.  Of course a lot of music has variable BPM but many tracks that can be quantized for beat matching.  Anyway I hope you keep up the excellent work!

As for the face-tracking feature I'm not even talking about anything more sophisticated than using controlnet to locate the largest face in the image and move the zoom-in coordinates to that location.

thanks again for the suggestion


Kusto

Summary
Add lexer for Kusto.
Also corrects a minor typo in the docs.
Checks

[x] tox tests pass
[x] Run tox -e mapfiles

Linting

[x] black
[x] flake8
[x] isort

Closes
This (hopefully) closes #2098
Further Work \ Known Limitations

There are other number formats, such as 1e5, which we don't currently support.
Datetime literals (e.g. datetime(2015-12-31) should all be treated as a single literal but we simply mark datetime as a keyword.
Normal or verbatim strings can be obfuscated by pretending either h or H but we ignore this and would treat h/H as a name.

I've made the suggested changes. Let me know if you want me to squash any commits.

I suppose this is not intentional, right? In that case, it needs an extra rule (r"`", String)`.

True, that was an oversight. I've added your suggested tuple and a test to confirm that it works.


Added show_message_box

Added show_message_box in the submod messagebox
Added several structs and enum next to it
Added a messagebox example in examples/ to :

allow users to test it quickly
have something for the devs to test this feature quickly

Also changed some minor stuff in show_simple_message_box,
but it shouldn't break the current API

Bump, returning a button_id instead of a reference of a button is required because it can also return -1, which represents the close button (and thus no button at all), meaning it can be returned even if the list of buttons is empty.
As such, I updated the unsafe part and added comments / docs to both show_message_box and show_simple_message_box

In which case, surely Some(Button) | None is better?

Bump, I made a new enum instead of Option, making it more explicit that the close button has been pressed, like so :
pub enum ClickedButton<'a> {
    CloseButton,
    CustomButton(&'a ButtonData<'a>)
}

Looks great!


Problem: hax returns invalid RM fid post RC leader re-election

Hax fetches and saves RM fid when hax process starts. Hare elects an RC
leader from the given Consul server nodes which also run a motr
Confd process. Every confd runs a RM service, hax returns the fid of
motr RM service cooresponding to the confd running on the Hare RC leader
node. However, it is possible that the RC leader may change due existing RC
leader failure, in this case hax still returns the saved RM fid in response
to the new entrypoint requests from the motr processes. This may lead to
inconsistencies and failure of RM requests.
Solution:
Do not save the RM fid but fetch it while responding to the entrypoint
requests.
Signed-off-by: Mandar Sawant<EMAIL_ADDRESS>

Would be nice if JIRA number can be mentioned here in the title of PR.


Accommodate both Xcode and homebrew gcc on C++

Mac users have a choice of using Xcode, or gcc via homebrew as their compiler.
The build script should be updated to accommodate both use cases.

How can I help with this? I don't know much about building but I'd like to use LLVM instead of GCC in xcode.

Forgive my noobness on this, but is there another unit test framework that does not require a make script for building?
https://github.com/philsquared/Catch/blob/master/docs/why-catch.md

Have you tried it with Xcode?  I don't know what happens in that situation because I don't have a Mac for testing.
Regarding Catch, we need boost for some other facilities anyway (calendars and filling in regex gaps), so using that for the unit tests is "free".  Also, requiring boost gives you access to many things like string algorithms that make the solutions cleaner and more idiomatic.

Do you think this is related ? I am working on the first problem using xcode and clang
/usr/local/include/boost/test/tools/detail/print_helper.hpp:50:14:
Invalid operands to binary expression ('std::ostream' (aka 'basic_ostream<char>') and 'const std::__1::pair<const std::__1::basic_string<char>, int>')

I applied the xcode fix it which just added a & to t. I am using boost 1.60.0_1 from homebrew on the mac.
I successfully used clang on my mac using cmake 3.5 except for the little fix to boost above.
I don't think the GCC option should be supported on the build script.
if people want to use GCC and they have it installed they can just choose it under the xcode project.

$ cmake -G Xcode
-- The CXX compiler identification is AppleClang <IP_ADDRESS>30029
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.60.0
-- Found the following Boost libraries:
--   unit_test_framework
--   date_time
--   regex
-- Configuring done
-- Generating done
-- Build files have been written to: /exercismProblems/cpp/bob

Something weird with going on: I need to add the below to the bob exercise to make it compile. Do you know why?
#define BOOST_REQUIRE_EQUAL( L, R )\     BOOST_REQUIRE_EQUAL( L, R )

this is the error that gets fixed once I apply #define BOOST_REQUIRE_EQUAL( L, R )\ BOOST_REQUIRE_EQUAL( L, R )

Sorry about all the noise. I fixed this error. It was just a namespace issue!

Thanks


Implement Looks via OCIO

Looks are not yet implemented in the pixel management chain.
https://twitter.com/djv_opensource/status/1196151370413273088?s=21

Pushing this to the next milestone...

Hello, Just discovered this thread,
Sry for posting this ticket https://github.com/darbyjohnston/DJV/issues/384
which is essentially the same request

Hello, Just discovered this thread,
Sry for posting this ticket https://github.com/darbyjohnston/DJV/issues/384
which is essentially the same request

Hi @darbyjohnston, any news on this?


visualization problem

I would like to inquire how I can obtain the visualization results in the published paper.

We use: https://wiki.fysik.dtu.dk/ase/ase/visualize/visualize.html

https://github.com/txie-93/cdvae/issues/12


Test_import_migration.py updated

From Issue #1135 "Test_import_migration.py" file updated.

This code specifically tests flask.ext.


Unresolved dependencies compiling .war SAM module

Trying to compile the .war file for the SAM module throws an error concerning missing dependencies:
mhmoed@mlpd-db01 /tmp[17:33:42]
> $ git checkout https://github.com/PhenotypeFoundation/SAM.git
fatal: Not a git repository (or any of the parent directories): .git

mhmoed@mlpd-db01 /tmp[17:33:45]
> $ git clone https://github.com/PhenotypeFoundation/SAM.git
Cloning into 'SAM'...
remote: Counting objects: 5009, done.
remote: Total 5009 (delta 0), reused 0 (delta 0), pack-reused 5009
Receiving objects: 100% (5009/5009), 3.26 MiB | 2.77 MiB/s, done.
Resolving deltas: 100% (2386/2386), done.
Checking connectivity... done.

mhmoed@mlpd-db01 /tmp[17:33:54]
> $ cd SAM

mhmoed@mlpd-db01 /tmp/SAM[17:34:01]
> $ grails war
[REMOVED]
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.grails.plugins:jquery-ui:1.8.15
- org.grails.plugins:grom:latest.integration
- org.grails.plugins:ajaxflow:latest.integration
- org.grails.plugins:crypto:2.0
- org.grails.plugins:resources:1.1.6
- org.grails.plugins:webflow:2.0.0

The complete log is available at the following gist.
The SAM module repository doesn't seem to have an issue tracker, so I'm reporting this here instead.

Could you try using the plugin branch?

Tried the plugin branch. This time, other dependencies seem to be missing:
mhmoed@mlpd-db01 /tmp/SAM[13:20:10]
> $ grails war                                                                                [±plugin]
[REMOVED]
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.grails.plugins:release:2.2.1
- org.grails.plugins:rest-client-builder:1.0.3

The full log is available here.

Do you really need to run SAM as standalone application? If you just want to use it as part of GSCF (on one machine) please use the  branch 'integrated' in GSCF, it comes with a integrated version of SAM.

I didn't know the integrated branch of GSCF came with the SAM module. In that case this isn't an issue. Thanks for looking into this!


add transformers 4.36 tests

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

only failing tests are with granite which is not supported on transformers 4.36 https://github.com/huggingface/optimum/actions/runs/11859647666/job/33053100596?pr=2085


Add exception for missing source type

This fixes the bug of a source missing
the "driver" key and the exception being displayed
the user is "Source type None is not supported".
Instead, this change introduces a custom exception
telling the user explicitly that "driver" key is missing
and it lists the different types the user can use in the
configuration.

@cescgina submitted this PR following your feedback. Thanks for that.


"quick connect" dialog for launching shells

**Is your feature request related to a problem?
maOS Terminal has an way of launching new shells: Apple-Shift-K brings up the "New Remote Connection" dialog, I think Aminal can learn from that and do better. Currently, we need to launch some existing shell start new shells, and I have to remember a bunch of command line options.
Describe the solution you'd like
Ctrl-Shift-N (or K, keybindings need to be configurable) to bring up a dialog with a search box and a selection wizard.
The search will search through previously used shells/remote connections, if none are found you can just type the whole shell command. This might even example out to the whole aminal command to launch.
The selection wizard will navigate you through the process:
What type of shell do you want?

cmd.exe (Windows)
powershell (Windows)
bash (Mac/Linux)
mosh (all platforms)
ssh (all platforms)
docker (all platforms)

Where a shell needs more info to continue, ask for it:

for mosh and ssh, the remote host name should be typable but also allow picking from recently used hostnames
docker would let you pick the image name and add any extra options, eg:
docker run -it .../library/rhel7 bash
other shell methods may need other options?

Describe alternatives you've considered
Typing in a shell to to launch Aminal is a real blocker to uptake.
Additional context
https://github.com/liamg/aminal/issues/205 should not be incompatible with this, and all urls should map nicely to choice of shell along with parameters required to launch them.
This will likely need lots of polishing over time, but if we can get something started we can then start getting more feedback on how we'd like things to work.

Moved to https://github.com/jumptrading/waminal/issues/1


Example request

First, let me thank you for your work here.
I was hoping you could provide an example of how to fork a repo?
I've tried:
octo.repos('OriginalOwner', 'OriginalRepo').forks('noeticpenguin').create();

if you are just forking to your account have you tried:
octo.repos('OriginalOwner', 'OriginalRepo').forks.create();

If you want to fork to a particular Organization you can try:
octo.repos('OriginalOwner', 'OriginalRepo').forks.create({organization: 'my-org'});

GitHub's documentation states that it may take a while to fork but if it does not work, can you include the error?
octo.repos('OriginalOwner', 'OriginalRepo').forks.create({organization: 'my-org'}, function(err, val) {
  console.log(err);
  console.log(val);
});

Marking this as closed; if it does not work, please re-open this issue.


Delete page shouldn't result in 404

Currently when you delete a page, the user is redirected to the url of the page that was just deleted. It should instead redirect to the parent page, if one exists or to the home page rather than giving the user an error page.

:+1: run into the same problem.
(Fix is https://github.com/divio/django-cms/pull/3894 isn't it?)

@jedie yes
It will be forward ported by merging 3.0.x into develop

@jsma @jedie  could you please test #3894?

This appears to still be a problem on develop. Maybe there is more work required beyond applying this PR but it seems that the page is already deleted, so when it attempts obj = ctype.get_object_for_this_type(pk=pk) it doesn't exist and returns the empty string as the redirect url (so it just reloads the url for the deleted page, 404-ing).

Think this also happens if you rename a page, too. IMHO i see this with 3.0.12 but i must test it again...

Fixed by #3894

@mkoistinen see my previous comment, this is not fixed in 3.1.0rc1. Please re-open.

@jsma fix was broken again in some way. I think this is not going to be fixed in 3.1, but of will in the next patch release

Lost track of this. Just tested on develop, it appears to only refresh the side-frame for page administration but leaves the actual page untouched. This is an improvement since it doesn't immediately result in an error for the user, but if they reload the current page manually, then they'll get the 404. Was there a decision made on whether to redirect and where to redirect?

@jsma could you test latest 3.0.x branch? Latest fix has been merged there and will be forward ported after 3.0.15 release

@jsma fix has been ported to support/3.1.x

Fixed by #4229


GuardedPageAllocator appears in stack trace when ActivateGuardedSampling() has not been called

When running tests with tcmalloc, I have occasionally seen the program crash with the following lines appearing in the backtrace:
tcmalloc::tcmalloc_internal::GuardedPageAllocator::Deallocate(void*)

tcmalloc::tcmalloc_internal::(anonymous namespace)::InvokeHooksAndFreePages(void*, std::optional<unsigned long>)

TCMallocInternalDeleteArraySized

When examining the program with gdb, I can see that the program is crashing because it detected a memory error in the GuardedPageAllocator-- however, the application has not called ActivateGuardedSampling, and so this is unexpected behavior.
From examining the tcmalloc code, I see that ActivateGuardedSampling flips a setting that allows the GuardedPageAllocator to allocate bytes within it's defined address space. However, on deallocation, that setting is not checked, and tcmalloc simply checks whether the deallocated pointer is within its address space, and then goes on with the memory checks (and possible crashes) if that is true. Is it possible that some other sampled memory is ending up in the address space of the GuardedPageAllocator, and is therefore being validated upon deallocation when it is not intended to?
While I appreciate that this caught a memory bug, I do not want the application to crash in production if a memory bug is detected.
Is it a bug on tcmalloc's end that it is crashing on deallocations like this? Or is there anything else that can explain this behavior?

Hi @erin2722,

Is it possible that some other sampled memory is ending up in the address space of the GuardedPageAllocator, and is therefore being validated upon deallocation when it is not intended to?

If that would be possible, that would be a serious bug that can lead to arbitrary memory corruptions.
I don't immediately see how this is possible. GuardedPageAllocator allocated that memory with mmap in Init method.
GuardedPageAllocator circumvents system-alloc's spinlock, which may be unintentional, but the mmap in system-alloc does not use MAP_FIXED, only MAP_FIXED_NOREPLACE (if available). Without MAP_FIXED overlap in hints must not lead to overlapping ranges being allocated.
If you can reproduce this at least semi-reliably, I would suggest to trace mmap's with strace of printf's to confirm/disprove possible overlapping.

Hi @dvyukov ,
Thank you so much for the quick response! I will see what I can do in terms of reproing this, and let you know what I find.

When I last looked at the code I read it as: GuardedPageAllocator::Init mmaps memory and initializes begin/end, and then ActivateGuardedSampling sets the flag to start allocating guarded allocations, and they are separate.
If that's the case, we can have begin/end non-0, but no allocations, and PointerIsMine can still return true (due to some corruption presumably).

Yup, that is also my interpretation of the code @dvyukov , which is validated by the state of the GuardedPageAllocator when the crash happens:
(gdb) f 0
#0  tcmalloc::tcmalloc_internal::GuardedPageAllocator::Deallocate (this=0x7fc1873258e0 <tcmalloc::tcmalloc_internal::Static::guardedpage_allocator_>, ptr=ptr@entry=0x438f3fe00000) at src/third_party/tcmalloc/dist/tcmalloc/guarded_page_allocator.cc:223
223	    *reinterpret_cast<char*>(ptr) = 'X';  // Trigger SEGV handler.
(gdb) p *this
$1 = {
  stacktrace_filter_ = {
    stack_hashes_with_count_ = {{
        <std::__atomic_base<unsigned long>> = {
          _M_i = 0
        },
      } <repeats 256 times>},
    max_slots_used_ = {
      <std::__atomic_base<unsigned long>> = {
        _M_i = 0
      },
    },
    replacement_inserts_ = {
      <std::__atomic_base<unsigned long>> = {
        _M_i = 0
      },
    }
  },
  guarded_page_lock_ = {
    lockword_ = {
      <std::__atomic_base<unsigned int>> = {
        _M_i = 0
      },
    }
  },
  free_pages_ = {true <repeats 128 times>, false <repeats 384 times>},
  num_alloced_pages_ = 0,
  num_alloced_pages_max_ = 0,
  num_successful_allocations_ = {
    value_ = {
      <std::__atomic_base<long>> = {
        _M_i = 0
      },
    }
  },
  num_failed_allocations_ = {
    value_ = {
      <std::__atomic_base<long>> = {
        _M_i = 0
      },
    }
  },
  data_ = 0x2d563ff86120,
  pages_base_addr_ =<PHONE_NUMBER>1840,
  pages_end_addr_ =<PHONE_NUMBER>7184,
  first_page_addr_ =<PHONE_NUMBER>0032,
  max_alloced_pages_ = 64,
  total_pages_ = 128,
  total_pages_used_ = 0,
  alloced_page_count_when_all_used_once_ = 0,
  page_size_ = 8192,
  rand_ = {
    <std::__atomic_base<unsigned long>> = {
      _M_i =<PHONE_NUMBER>39392
    },
  },
  initialized_ = true,
  allow_allocations_ = false,
  double_free_detected_ = true,
  write_overflow_detected_ = false
}

We can see here that although allow_allocations_ is false, and num_successful_allocations_ is 0, the ptr argument is 0x438f3fe00000, which falls within the range of pages_base_addr_ to pages_end_addr_, causing PointerIsMine to succeed and the deallocation to go through validation.

Just for extra info, I am using the tcmalloc version as of this commit https://github.com/google/tcmalloc/commit/18777b14757feee05771bd299039fa4938259b8f.

Hi all! After investigating, I believe that this was an issue with the porting of the tcmalloc build from bazel into our native build system-- we dropped the linkstatic=1 flags, and I think improper symbol resolution on dynamic builds was leading to this issue. Closing this issue, and thanks for the help!

We may need to reopen this issue -- we ended up tracking down what's going on, and it's not related to linking.
We introduced MAP_FIXED_NOREPLACE with this commit, which is broken on Linux kernel versions 4.17 and 4.18, fixed in 4.19.
This is what causes the issue seen in the beginning of the issue. In our testing, this sequence of events can happen:

The GuardedPageAllocator maps pages allocating roughly 2MB.
In SampleifyAllocation, we end up creating a sampled page, which flows through to creating the first mmap region for sampled allocations and allocates 1GB for that region.
If we are unlucky, the region created for sampled allocations will encompass the pages created for the GuardedPageAllocator.
A page that the GuardedPageAllocator believes it owns can be deallocated, tripping the check that the allocation is guarded, and ultimately causing a segfault because the GuardedPageAllocator believes it is seeing a double free.

There are a couple things we could do here, but I think the least invasive change would be to add another check into MapFixedNoReplaceFlagAvailable() to check if the currently running kernel version is susceptible to the MAP_FIXED_NOREPLACE bug.

Quick turnaround! Before I could even put up a PR myself. Cheers!
On Tue, May 21, 2024 at 5:07 PM copybara-service[bot] <
@.***> wrote:

Closed #229 https://github.com/google/tcmalloc/issues/229 as completed
via 4674cfc
https://github.com/google/tcmalloc/commit/4674cfcd0860026db7daa7dfb5fd3ee842c845cc
.
—
Reply to this email directly, view it on GitHub
https://github.com/google/tcmalloc/issues/229#event-12885497248, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQ6GSBJ3YH2TIKRCLBSFPTZDOZRZAVCNFSM6AAAAABF5OK66OVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSHA4DKNBZG4ZDIOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Expand conversion types to include string constructor and static factory

Our ability to convert Claims from strings to specific data types should be expanded to reach the same level of functionality found in JAX-RS or Config API.  Specifically, java types that have a public constructor that accept a string should be supported, as should java types that have a static factory method that accepts string as an argument and returns an instance of that type.

Is it a duplicate of #100 ?

Hi All and David in particular, @dblevins. David, don;t hate me please for closing another of your issues :-). I will copy this requirement to #100 and credit it to you; IMHO it should also be tied with a type safe retrieval of the claims. see you at #100 later on, cheers


Overlappings occur with multiple screen.

With multiple monitors, simple-bar works on numbering the workspaces (desktops), but overlaps with others' tabs.
First screen:

Second screen:

Can you show me you widget list? It looks like thu simple-bar-spaces widget is running twice.
 It looks like thu simple-bar-spaces widget is running twice.
Your widget list should look like that:

Indeed,
.
Thanks, solved by setting Show on selected screens correspond to each screen (display monitor).

Indeed,
.
Thanks, solved by setting Show on selected screens correspond to each screen (display monitor).

It looks like you are using an old version of simple-bar. If you pull the latest commits you'll have only one "spaces" widget which will handle n monitors by itself.

It looks like you are using an old version of simple-bar. If you pull the latest commits you'll have only one "spaces" widget which will handle n monitors by itself.


Task1

choose string or number

Added other tasks:
1 task - choose number or string, 3 task - type count of odd and even elements, 4 task- check same elements in a, 5 task-find maximum element,6 task- check simple number


MB-8769 Fix a11y test failures on FileUplaod component

Description
We were seeing color contrast failures on the FileUpload component, which was a bit confusing because it was designed with AA contrast standards in mind. Turns, out our storybook a11y addon was checking contrast at the AAA level, which we are not required to adhere to. So this branch sets to back to AA in our add-on configuration.
Reviewer Notes
A remaining issue is there about being unable to focus content. This is related to the markup of the FileUpload component, the markup of which comes from FilePond. I think the next step here would be to submit the failure as an issue to FilePond, since it cannot be easily remediated on our end.
Setup
yarn storybook

http://localhost:6006/?path=/story/components-fileupload--file-upload-success
Code Review Verification Steps

[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

[Jira story]((https://dp3.atlassian.net/browse/MB-8769?atlOrigin=eyJpIjoiNTBlYjNhNDgwN2JhNDJiY2EwYzMzYmRkMjZiNjY0MDkiLCJwIjoiaiJ9) for this change

Screenshots

Messages

:book:
:link: MB-8769

  Generated by :no_entry_sign: dangerJS against 2c4f7ac314a6e69343554b4bbb96ae2a86bd69d4


Deployment setup of ukv-api instances on TEST and PROD

MySQL databases
AWS components and routing

@yuanzhou added a large "value" for a "key" during development, and was able to verify it worked as expected. However, it did cause exhausted memory issues for MySQL Workbench when querying the database directly. Thus far, this has not caused a problem for the MySQL driver used by the service. But it may be something to evaluate as new databases are created.


Initialize watchdog when running on Mynewt

On Mynewt some flash drivers on very slow devices tickle the watchdog to avoid possible hangs; those were also trying to tickle the watchdog in mcuboot when performing an upgrade or serial boot, without initializing the watchdog, causing an invalid memory write and reset issue.
Signed-off-by: Fabio Utzig<EMAIL_ADDRESS>

Check the size of the bootloader on nrf52 when you build with that enabled. I think it's going to be 1.5k bigger, thanks to division operation done within watchdog_init().

Also, I vaguely recall that on some platforms you would not be able to adjust tickle period once watchdog had been enabled. I might be wrong about that, however. Comments @wes3 ?

Another option would be to decide if tickling is required by testing for MYNEWT_VAL(OS_SCHEDULING) in the flash driver itself and close this one.

@mkiiskila @utzig I hope I am answering the correct question here, but Marko is indeed correct about the watchdog on the nrf52. Here is the spec wording:
The watchdog must be configured before it is started. After it is started, the watchdog’s configuration registers, which comprise registers CRV, RREN, and CONFIG, will be blocked for further configuration.
The watchdog can be reset from several reset sources, see Reset behavior on page 83.
When the device starts running again, after a reset, or waking up from OFF mode, the watchdog
configuration registers will be available for configuration again.

I should have mentioned that I am not sure about other MCU's.


Each post to .md file

Hey,
Got stuck, how do I do this -

Open a webpage (you see list of items)
Click an item - you go inside item detail page
Extract data from the detail page (like name, desc, images...)
Now store all this data as a markdown file (.md) with the item name as the file name
Repeat the same for 300+ items

P.S. the class names are complex(with weird names and numbers). How do I use the same with XPATH?
Thanks in advance!

Hey @beingabstrac
Can you send me the URL of the webpage, so I can have a look?

Hi @justmarkup
It's Figma plugins. Extract data from each plugin (name, description, plugin logo, header image) and store with plugin-name as the file name. Download images and store locally.
Example .yml configuration

Hey @beingabstrac
This is code is not meant to be a scraper for third-party content, but do make it easier to move from one blog (in my case wordpress) to a static site generator, so I am afraid I can't help you here - there are lots of scrapers available which should do the job for you.


[Event Request / Extensiblity BUG] OnBeforeGetTrackingInternetAddr

Could you please fix the event OnBeforeGetTrackingInternetAddr to include the PackageTrackingNo?
By moving this event from the "Sales Shipment Header" to the "Shipping Agent" the "Package Tracking No. is missing in this event
procedure GetTrackingInternetAddr(PackageTrackingNo: Text[30]) TrackingInternetAddr: Text
var
    HttpStr: Text;
    HttpsStr: Text;
    IsHandled: Boolean;
begin
    IsHandled := false;
//+CHANGE
//-    OnBeforeGetTrackingInternetAddr(Rec, TrackingInternetAddr, IsHandled);
    OnBeforeGetTrackingInternetAddr(Rec, TrackingInternetAddr, IsHandled, PackageTrackingNo);
//-CHANGE
    if IsHandled then
        exit;

    HttpStr := 'http://';
    HttpsStr := 'https://';
    TrackingInternetAddr := StrSubstNo("Internet Address", PackageTrackingNo);

    if (StrPos(TrackingInternetAddr, HttpStr) = 0) and (StrPos(TrackingInternetAddr, HttpsStr) = 0) then
        TrackingInternetAddr := HttpStr + TrackingInternetAddr;
end;

[IntegrationEvent(false, false)]
local procedure OnBeforeGetTrackingInternetAddr(var ShippingAgent: Record "Shipping Agent"; var TrackingInternetAddr: Text; var IsHandled: Boolean; PackageTrackingNo: Text[30])
begin
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


report-dense

Cleans up the report print styling:

Moves footer back to bottom
Removes extra spacing so print view is dense
Fixes input value overflow bug (FI-1543)
Fixes snackbar timeout bug

Codecov Report

Merging #174 (d6b7af2) into main (5a21d12) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head d6b7af2 differs from pull request most recent head a06a070. Consider uploading reports for the commit a06a070 to get more accurate results

@@           Coverage Diff           @@
##             main     #174   +/-   ##
=======================================
  Coverage   93.88%   93.88%
=======================================
  Files         110      110
  Lines        2796     2796
=======================================
  Hits         2625     2625
  Misses        171      171

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a21d12...a06a070. Read the comment docs.

Can you confirm the expected behavior when the banner element is not just empty divs?  I mocked the banner on prod and this is what the report print view looks like - the content within the div gets added, but the background does not. Space does get added for the size of the container div (i.e. if you made it huge, it'd push the report really far down, even if the content inside the container div is small). Besides the spacing of the text on the right side, I think it looks fine without the banner's color background. I can push up the code that adds the banner if you want to play around with it + it's kind of a pain to hack together anyways.

@Jack-Fraser16 I have done 0 testing with the banner elements but I think this looks fine. I think anything banner related should probably be pushed in a fork of this branch just to avoid chaos, but I’m not even sure we need to do that here?

The footer is still messed up for me in firefox in the print view. I don't think the version of inferno-core is important -- the version of the test suite is much more important and that is printed out in that box at the top of the report. Also, the banner doesn't contain any useful information for us. I recommend we hide both the optional banner and footer using @media selectors in css (set to display:none for print), instead of struggling to get this to look right now despite them not providing any useful info.

Yeah, I don't think the Firefox thing is resolvable at the moment. I'll remove footer and banner.
(Accidentally edited your comment haha)


About how announce interval works and should work ?

Hi,
I went through UDP Tracker protocol. And found that announce request return interval after which peer should announce itself.
So my question is , will reannouncing after interval will have same announce parameter (event, downloaded, left, uploaded) as last announce (in which response i received interval as response). Or reannounce will have changed (current event or downloaded count) parameter ?
Sorry it is not related specifically to this project. But I am not finding answer for this questions.
Do you know any active community where I can ask this type of question ?
Thanks

You should always send the latest downloaded, left, and uploaded parameters when you do an announce. I recommend checking the ##bittorrent channel on IRC (freenode) if you need help with this kind of stuff.


[BUG] "dashboard is not defined"

Description
When having multiple accounts, an error occurs after/while punch cards are being completed.
Expected Behavior
Project shouldn't crash and should run to completion.
Actual Behavior
When doing the punch cards, the script crashes with the error "dashboard is not defined"
Steps to Reproduce

Have multiple accounts in accounts.json
run the main.py script
wait for it to try and complete the punch cards

Context
Makes the project unusable and unstable.
Your Environment

Version used: 4bd377f
Environment name and version (e.g. Chrome ver): 119.0.6045.159
Operating System and version: Fedora silverblue with an Arch Linux container

logs:
2023-11-21 21:30:56,313 [INFO] [PUNCH CARDS] Trying to complete the Punch Cards...
2023-11-21 21:30:56,647 [ERROR] JavascriptException: Message: javascript error: dashboard is not defined
  (Session info: chrome=119.0.6045.159)
Stacktrace:
#0 0x5581edde25e3 <unknown>
#1 0x5581edaa50b7 <unknown>
#2 0x5581edaab2b5 <unknown>
#3 0x5581edaad9b1 <unknown>
#4 0x5581edb3671f <unknown>
#5 0x5581edb19ef2 <unknown>
#6 0x5581edb35b3d <unknown>
#7 0x5581edb19cc3 <unknown>
#8 0x5581edae50e4 <unknown>
#9 0x5581edae60ae <unknown>
#10 0x5581edda8ce1 <unknown>
#11 0x5581eddacb7e <unknown>
#12 0x5581edd964b5 <unknown>
#13 0x5581eddad7d6 <unknown>
#14 0x5581edd79dbf <unknown>
#15 0x5581eddd0748 <unknown>
#16 0x5581eddd0917 <unknown>
#17 0x5581edde1773 <unknown>
#18 0x7f84350f99eb <unknown>

Traceback (most recent call last):
  File "/var/home/primary/MS-Rewards-Farmer/main.py", line 34, in main
    earned_points = executeBot(currentAccount, notifier, args)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/primary/MS-Rewards-Farmer/main.py", line 200, in executeBot
    PunchCards(desktopBrowser).completePunchCards()
  File "/var/home/primary/MS-Rewards-Farmer/src/punchCards.py", line 54, in completePunchCards
    punchCards = self.browser.utils.getDashboardData()["punchCards"]
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/primary/MS-Rewards-Farmer/src/utils.py", line 144, in getDashboardData
    return self.webdriver.execute_script("return dashboard")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/primary/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 407, in execute_script
    return self.execute(command, {"script": script, "args": converted_args})["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/primary/.local/lib/python3.11/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
    self.error_handler.check_response(response)
  File "/var/home/primary/.local/lib/python3.11/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.JavascriptException: Message: javascript error: dashboard is not defined
  (Session info: chrome=119.0.6045.159)
Stacktrace:
#0 0x5581edde25e3 <unknown>
#1 0x5581edaa50b7 <unknown>
#2 0x5581edaab2b5 <unknown>
#3 0x5581edaad9b1 <unknown>
#4 0x5581edb3671f <unknown>
#5 0x5581edb19ef2 <unknown>
#6 0x5581edb35b3d <unknown>
#7 0x5581edb19cc3 <unknown>
#8 0x5581edae50e4 <unknown>
#9 0x5581edae60ae <unknown>
#10 0x5581edda8ce1 <unknown>
#11 0x5581eddacb7e <unknown>
#12 0x5581edd964b5 <unknown>
#13 0x5581eddad7d6 <unknown>
#14 0x5581edd79dbf <unknown>
#15 0x5581eddd0748 <unknown>
#16 0x5581eddd0917 <unknown>
#17 0x5581edde1773 <unknown>
#18 0x7f84350f99eb <unknown>

2023-11-21 21:30:56,651 [INFO] [POINTS] Data saved for the next day.

Are you making sure that Chrome is not currently running on the machine? I tend to see that issue when I still have it lingering in the background of the machine

@klept0 I don't use chrome, I use firefox. this script is the only thing using chrome. I will restart and try again though.

yea, seems to work now @klept0, thanks for the tip!


Init

Need to update titles and descriptions. Titles should be 50-60 chars. Descriptions 50-300. Both should include keywords.


[General] Create Documentation pages

In order to start adding documentation to the project we should have a easy way of generatic this documentation directly from the repository.
Maybe using GatsbyJS seems like a good idea, then we could create a github page.

Just something else I want to throw in is Jekyll. I use it for my personal website which I host on GitHub and I think is very easy to use (in combination with gulp)

Forgot to read this. Jekyll seems powerful, but the point that it is base on ruby push me backwards, since this is a JavaScript project I expect most of the people that contribute with some code to be able to work better with JS than Ruby. Otherwise it is simple than Gatsby.
But in anyway, if you could create a branch with an example in how the documentation directory will look and how to use Jekyll, maybe is easy to decide than by looking at the documentation of Jekyll.

Actually, docsify seems like a better option. Simpler and you only need to add markdown


Duplicate ordinals showing in the wallet

This looks like the issue we've seen before with Stacks NFT's. https://github.com/leather-wallet/extension/issues/3712 but I have not seen that recently.
The example below is in wallet version 6.5.1 on Firefox. The user said it showed these duplicate ones after they sent two other ordinals #26523037and #26523038.
This is what is displayed in the wallet:

Related address, naturally only has one inscription #50600:
https://ordinals.hiro.so/inscriptions?a=bc1p4s45qavhf04ltzfgfhppeuvyac6eavjpqy5g8yk7f0p3wtndcy8qzynh49&p=1
The other user who reported this prior, noticed a similar issue with 6.9.2 of the wallet on Chrome:
Related address: bc1p98rqntc3xjyq2lurft709q8vw8wluq96tp98r96925hmaezeh09q8qdysj

The second user (who saw inscription 35045427 double, among others) says it is resolved with version 6.11.0 on Chrome.

@314159265359879 yeah, probably, not sure here

@314159265359879 did we have any more reports of this? It seems like quite an old version - 6.9.11. Perhaps we can close it off?


Num::FromStrRadixErr should have Trait bound

From @jethrogb on April 14, 2016 4:41
Num::FromStrRadixErr should be bound by std::error::Error or at least std::fmt::Debug, for use in various Result methods.
Copied from original issue: rust-num/num#185

I've decided to limit the clutter of breaking change issues, so they will now be tracked collectively in #47.  I'm closing this issue for now as postponed but we can still discuss its merits here as needed.


Cluster ownership module implementation.

Handles owner/2 calls and returns:
{ok, node()} | {error, no_owner} | {error, unstable}
unstable means cluster has received nodeup or nodedown recently (
a configurable parameter defaulting to 60 sec).
no_owner means ownership cannot be determined, usually returned for
cases when doc_id is null (this is a _replicate endpoint replication).

How do you start this gen_server? I didn't notice that it is added into couch_replicator_sup.erl.

@iilyak It is not plugged into a supervisor yet. Supervisor hierarchy is not as clear yet. It will probably go into couch_replicator_sup.erl as you mentioned. But there was an other alternative to split couch replicator manager into its own supervisor and children, and then it might be started from there.

+1, though we might rename it later if we can think of a better name.


Code coverage

Trying to upload DLRS triggers, without before events.
Tried with redeploying trigger and test class. Still facing same issue..

@Shraddha-Ingale could you provide some insights on any other errors experienced during the deploy?
It sounds like you've modified the trigger to remove the before handling, is there some reason for that? I get the feeling your test scenario is breaking as a result of that decision. You will likely need to write custom tests to accommodate that decision as well as ensure you're not missing other times in the record life-cycle where DLRS would need those events. (I haven't reviewed to see when those are)

@Shraddha-Ingale yes, i also have the same feeling as @aheber here. Also some docs on custom test code (DLRS only generates very basic test code). It maybe that when the DLRS triggers where first deployed coverage was fine, but since things changed with related objects/triggers. https://github.com/afawcett/declarative-lookup-rollup-summaries/wiki/Challenges-with-Code-Coverage. Let us know if you want to re-open this issue btw. 👍


Update documentation

(was missing info on some added options)

Codecov Report

Merging #21 (7ac360d) into master (2785eb2) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #21   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           10        10
  Lines         1412      1412
=========================================
  Hits          1412      1412

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2785eb2...7ac360d. Read the comment docs.