xgboost example fails

Hi!
I am trying these examples. I am interested in xgboost but it seems to fail. We user using windows 11, python 3.7.9, vs code and docker. The downloaded image is<PHONE_NUMBER>06.DKR.ECR.EU-WEST-1.AMAZONAWS.COM/SAGEMAKER-XGBOOST
The exception is the following:
f3k8ih5gq0-algo-1-9che5 |     self._model = self._model_fn(_env.model_dir)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py", line 95, in wrapper
f3k8ih5gq0-algo-1-9che5 |     six.reraise(error_class, error_class(e), sys.exc_info()[2])
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/six.py", line 718, in reraise
f3k8ih5gq0-algo-1-9che5 |     raise value.with_traceback(tb)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py", line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 |     return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 |   File "/opt/ml/code/inference.py", line 26, in model_fn
f3k8ih5gq0-algo-1-9che5 |     booster = pkl.load(open(os.path.join(model_dir, model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | sagemaker_containers._errors.ClientError: [Errno 2] No such file or directory: '/opt/ml/model/xgboost-model'
f3k8ih5gq0-algo-1-9che5 | <IP_ADDRESS> - - [23/May/2022:09:31:41 +0000] "GET /ping HTTP/1.1" 500 141 "-" "python-urllib3/1.26.9"
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:46:INFO] No GPUs detected (normal if no gpus installed)
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:46:INFO] Installing module with the following command:
f3k8ih5gq0-algo-1-9che5 | /miniconda3/bin/python3 -m pip install .
f3k8ih5gq0-algo-1-9che5 | Processing /opt/ml/code
f3k8ih5gq0-algo-1-9che5 |   Preparing metadata (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 | Building wheels for collected packages: inference
f3k8ih5gq0-algo-1-9che5 |   Building wheel for inference (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 |   Created wheel for inference: filename=inference-1.0.0-py2.py3-none-any.whl size=13189 sha256=0343ebd456f9251526f64d5c6ae851b88410b3b053b71c21e41a94726ad2b5a2
f3k8ih5gq0-algo-1-9che5 |   Stored in directory: /home/model-server/tmp/pip-ephem-wheel-cache-bs58b9ud/wheels/3e/0f/51/2f1df833dd0412c1bc2f5ee56baac195b5be563353d111dca6
f3k8ih5gq0-algo-1-9che5 | Successfully built inference
f3k8ih5gq0-algo-1-9che5 | Installing collected packages: inference
f3k8ih5gq0-algo-1-9che5 |   Attempting uninstall: inference
f3k8ih5gq0-algo-1-9che5 |     Found existing installation: inference 1.0.0
f3k8ih5gq0-algo-1-9che5 |     Can't uninstall 'inference'. No files were found to uninstall.
f3k8ih5gq0-algo-1-9che5 | Successfully installed inference-1.0.0
f3k8ih5gq0-algo-1-9che5 | WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
f3k8ih5gq0-algo-1-9che5 | WARNING: You are using pip version 22.0.4; however, version 22.1.1 is available.
f3k8ih5gq0-algo-1-9che5 | You should consider upgrading via the '/miniconda3/bin/python3 -m pip install --upgrade pip' command.
f3k8ih5gq0-algo-1-9che5 | [2022-05-23 09:31:47 +0000] [225] [ERROR] Error handling request /ping
f3k8ih5gq0-algo-1-9che5 | Traceback (most recent call last):
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py", line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 |     return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 |   File "/opt/ml/code/inference.py", line 26, in model_fn
f3k8ih5gq0-algo-1-9che5 |     booster = pkl.load(open(os.path.join(model_dir, model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | FileNotFoundError: [Errno 2] No such file or directory: '/opt/ml/model/xgboost-model'
f3k8ih5gq0-algo-1-9che5 |
f3k8ih5gq0-algo-1-9che5 | During handling of the above exception, another exception occurred:
f3k8ih5gq0-algo-1-9che5 |
f3k8ih5gq0-algo-1-9che5 | Traceback (most recent call last):
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/gunicorn/workers/base_async.py", line 56, in handle
f3k8ih5gq0-algo-1-9che5 |     self.handle_request(listener_name, req, client, addr)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
f3k8ih5gq0-algo-1-9che5 |     addr)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/gunicorn/workers/base_async.py", line 107, in handle_request
f3k8ih5gq0-algo-1-9che5 |     respiter = self.wsgi(environ, resp.start_response)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_xgboost_container/serving.py", line 136, in main
f3k8ih5gq0-algo-1-9che5 |     user_module_transformer.initialize()
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_transformer.py", line 185, in initialize
f3k8ih5gq0-algo-1-9che5 |     self._model = self._model_fn(_env.model_dir)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py", line 95, in wrapper
f3k8ih5gq0-algo-1-9che5 |     six.reraise(error_class, error_class(e), sys.exc_info()[2])
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/six.py", line 718, in reraise
f3k8ih5gq0-algo-1-9che5 |     raise value.with_traceback(tb)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py", line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 |     return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 |   File "/opt/ml/code/inference.py", line 26, in model_fn
f3k8ih5gq0-algo-1-9che5 |     booster = pkl.load(open(os.path.join(model_dir, model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | sagemaker_containers._errors.ClientError: [Errno 2] No such file or directory: '/opt/ml/model/xgboost-model'
f3k8ih5gq0-algo-1-9che5 | <IP_ADDRESS> - - [23/May/2022:09:31:47 +0000] "GET /ping HTTP/1.1" 500 141 "-" "python-urllib3/1.26.9"
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:52:INFO] No GPUs detected (normal if no gpus installed)
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:52:INFO] Installing module with the following command:
f3k8ih5gq0-algo-1-9che5 | /miniconda3/bin/python3 -m pip install .
f3k8ih5gq0-algo-1-9che5 | Processing /opt/ml/code
f3k8ih5gq0-algo-1-9che5 |   Preparing metadata (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 | Building wheels for collected packages: inference
f3k8ih5gq0-algo-1-9che5 |   Building wheel for inference (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 |   Created wheel for inference: filename=inference-1.0.0-py2.py3-none-any.whl size=16359 sha256=56f1e8fab2fec8c4a15850ac4ecf9a02b73f0068434821b09cf73cbcda092824
f3k8ih5gq0-algo-1-9che5 |   Stored in directory: /home/model-server/tmp/pip-ephem-wheel-cache-02pq641a/wheels/3e/0f/51/2f1df833dd0412c1bc2f5ee56baac195b5be563353d111dca6
f3k8ih5gq0-algo-1-9che5 | Successfully built inference
f3k8ih5gq0-algo-1-9che5 | Installing collected packages: inference
f3k8ih5gq0-algo-1-9che5 |   Attempting uninstall: inference
f3k8ih5gq0-algo-1-9che5 |     Found existing installation: inference 1.0.0
f3k8ih5gq0-algo-1-9che5 |     Can't uninstall 'inference'. No files were found to uninstall.
f3k8ih5gq0-algo-1-9che5 | Successfully installed inference-1.0.0
f3k8ih5gq0-algo-1-9che5 | WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
f3k8ih5gq0-algo-1-9che5 | WARNING: You are using pip version 22.0.4; however, version 22.1.1 is available.
f3k8ih5gq0-algo-1-9che5 | You should consider upgrading via the '/miniconda3/bin/python3 -m pip install --upgrade pip' command.
f3k8ih5gq0-algo-1-9che5 | [2022-05-23 09:31:53 +0000] [227] [ERROR] Error handling request /ping
f3k8ih5gq0-algo-1-9che5 | Traceback (most recent call last):
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py", line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 |     return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 |   File "/opt/ml/code/inference.py", line 26, in model_fn
f3k8ih5gq0-algo-1-9che5 |     booster = pkl.load(open(os.path.join(model_dir, model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | FileNotFoundError: [Errno 2] No such file or directory: '/opt/ml/model/xgboost-model'
f3k8ih5gq0-algo-1-9che5 |
f3k8ih5gq0-algo-1-9che5 | During handling of the above exception, another exception occurred:
f3k8ih5gq0-algo-1-9che5 |
f3k8ih5gq0-algo-1-9che5 | Traceback (most recent call last):
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/gunicorn/workers/base_async.py", line 56, in handle
f3k8ih5gq0-algo-1-9che5 |     self.handle_request(listener_name, req, client, addr)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
f3k8ih5gq0-algo-1-9che5 |     addr)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/gunicorn/workers/base_async.py", line 107, in handle_request
f3k8ih5gq0-algo-1-9che5 |     respiter = self.wsgi(environ, resp.start_response)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_xgboost_container/serving.py", line 136, in main
f3k8ih5gq0-algo-1-9che5 |     user_module_transformer.initialize()
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_transformer.py", line 185, in initialize
f3k8ih5gq0-algo-1-9che5 |     self._model = self._model_fn(_env.model_dir)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py", line 95, in wrapper
f3k8ih5gq0-algo-1-9che5 |     six.reraise(error_class, error_class(e), sys.exc_info()[2])
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/six.py", line 718, in reraise
f3k8ih5gq0-algo-1-9che5 |     raise value.with_traceback(tb)
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py", line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 |     return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 |   File "/opt/ml/code/inference.py", line 26, in model_fn
f3k8ih5gq0-algo-1-9che5 |     booster = pkl.load(open(os.path.join(model_dir, model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | sagemaker_containers._errors.ClientError: [Errno 2] No such file or directory: '/opt/ml/model/xgboost-model'
f3k8ih5gq0-algo-1-9che5 | <IP_ADDRESS> - - [23/May/2022:09:31:53 +0000] "GET /ping HTTP/1.1" 500 141 "-" "python-urllib3/1.26.9"
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:58:INFO] No GPUs detected (normal if no gpus installed)
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:58:INFO] Installing module with the following command:
f3k8ih5gq0-algo-1-9che5 | /miniconda3/bin/python3 -m pip install .
f3k8ih5gq0-algo-1-9che5 | Processing /opt/ml/code
f3k8ih5gq0-algo-1-9che5 |   Preparing metadata (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 | Building wheels for collected packages: inference
f3k8ih5gq0-algo-1-9che5 |   Building wheel for inference (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 |   Created wheel for inference: filename=inference-1.0.0-py2.py3-none-any.whl size=19706 sha256=4e5bdcd2e59629fadf0c0e54a3d71f769dd92d167d08729e7ab0f4b9074a7066
f3k8ih5gq0-algo-1-9che5 |   Stored in directory: /home/model-server/tmp/pip-ephem-wheel-cache-vq93idru/wheels/3e/0f/51/2f1df833dd0412c1bc2f5ee56baac195b5be563353d111dca6
f3k8ih5gq0-algo-1-9che5 | Successfully built inference
f3k8ih5gq0-algo-1-9che5 | Installing collected packages: inference
f3k8ih5gq0-algo-1-9che5 |   Attempting uninstall: inference
f3k8ih5gq0-algo-1-9che5 |     Found existing installation: inference 1.0.0
f3k8ih5gq0-algo-1-9che5 |     Can't uninstall 'inference'. No files were found to uninstall.
f3k8ih5gq0-algo-1-9che5 | Successfully installed inference-1.0.0
f3k8ih5gq0-algo-1-9che5 | WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
f3k8ih5gq0-algo-1-9che5 | WARNING: You are using pip version 22.0.4; however, version 22.1.1 is available.
f3k8ih5gq0-algo-1-9che5 | You should consider upgrading via the '/miniconda3/bin/python3 -m pip install --upgrade pip' command.
f3k8ih5gq0-algo-1-9che5 | [2022-05-23 09:31:59 +0000] [225] [ERROR] Error handling request /ping
f3k8ih5gq0-algo-1-9che5 | Traceback (most recent call last):
f3k8ih5gq0-algo-1-9che5 |   File "/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py", line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 |     return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 |   File "/opt/ml/code/inference.py", line 26, in model_fn
f3k8ih5gq0-algo-1-9che5 |     booster = pkl.load(open(os.path.join(model_dir, model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | FileNotFoundError: [Errno 2] No such file or directory: '/opt/ml/model/xgboost-model'
Am I doing something wrong?

Hi,
The key error is: "No such file or directory: '/opt/ml/model/xgboost-model
'.
This means that *inference.py* tried to load a model file named  *xgboost-model*, and this file is taken from model.tar.gz in S3 during
model deployment.
For debugging purposes, can you print the content of */opt/ml/model/*
folder?
On Mon, May 23, 2022 at 11:49 AM Pablo Castilla @.***>
wrote:

Hi!
I am trying these examples. I am interested in xgboost but it seems to
fail. We user using windows 11, python 3.7.9, vs code and docker. The
downloaded image is
141502667606.DKR.ECR.EU-WEST-1.AMAZONAWS.COM/SAGEMAKER-XGBOOST
The exception is the following:
f3k8ih5gq0-algo-1-9che5 | self._model = self._model_fn(_env.model_dir)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py",
line 95, in wrapper
f3k8ih5gq0-algo-1-9che5 | six.reraise(error_class, error_class(e),
sys.exc_info()[2])
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/six.py", line 718, in reraise
f3k8ih5gq0-algo-1-9che5 | raise value.with_traceback(tb)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py",
line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 | return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 | File "/opt/ml/code/inference.py", line 26, in
model_fn
f3k8ih5gq0-algo-1-9che5 | booster = pkl.load(open(os.path.join(model_dir,
model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | sagemaker_containers._errors.ClientError: [Errno
2] No such file or directory: '/opt/ml/model/xgboost-model'
f3k8ih5gq0-algo-1-9che5 | <IP_ADDRESS> - - [23/May/2022:09:31:41 +0000] "GET
/ping HTTP/1.1" 500 141 "-" "python-urllib3/1.26.9"
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:46:INFO] No GPUs detected
(normal if no gpus installed)
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:46:INFO] Installing module
with the following command:
f3k8ih5gq0-algo-1-9che5 | /miniconda3/bin/python3 -m pip install .
f3k8ih5gq0-algo-1-9che5 | Processing /opt/ml/code
f3k8ih5gq0-algo-1-9che5 | Preparing metadata (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 | Building wheels for collected packages: inference
f3k8ih5gq0-algo-1-9che5 | Building wheel for inference (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 | Created wheel for inference:
filename=inference-1.0.0-py2.py3-none-any.whl size=13189
sha256=0343ebd456f9251526f64d5c6ae851b88410b3b053b71c21e41a94726ad2b5a2
f3k8ih5gq0-algo-1-9che5 | Stored in directory:
/home/model-server/tmp/pip-ephem-wheel-cache-bs58b9ud/wheels/3e/0f/51/2f1df833dd0412c1bc2f5ee56baac195b5be563353d111dca6
f3k8ih5gq0-algo-1-9che5 | Successfully built inference
f3k8ih5gq0-algo-1-9che5 | Installing collected packages: inference
f3k8ih5gq0-algo-1-9che5 | Attempting uninstall: inference
f3k8ih5gq0-algo-1-9che5 | Found existing installation: inference 1.0.0
f3k8ih5gq0-algo-1-9che5 | Can't uninstall 'inference'. No files were found
to uninstall.
f3k8ih5gq0-algo-1-9che5 | Successfully installed inference-1.0.0
f3k8ih5gq0-algo-1-9che5 | WARNING: Running pip as the 'root' user can
result in broken permissions and conflicting behaviour with the system
package manager. It is recommended to use a virtual environment instead:
https://pip.pypa.io/warnings/venv
f3k8ih5gq0-algo-1-9che5 | WARNING: You are using pip version 22.0.4;
however, version 22.1.1 is available.
f3k8ih5gq0-algo-1-9che5 | You should consider upgrading via the
'/miniconda3/bin/python3 -m pip install --upgrade pip' command.
f3k8ih5gq0-algo-1-9che5 | [2022-05-23 09:31:47 +0000] [225] [ERROR] Error
handling request /ping
f3k8ih5gq0-algo-1-9che5 | Traceback (most recent call last):
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py",
line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 | return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 | File "/opt/ml/code/inference.py", line 26, in
model_fn
f3k8ih5gq0-algo-1-9che5 | booster = pkl.load(open(os.path.join(model_dir,
model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | FileNotFoundError: [Errno 2] No such file or
directory: '/opt/ml/model/xgboost-model'
f3k8ih5gq0-algo-1-9che5 |
f3k8ih5gq0-algo-1-9che5 | During handling of the above exception, another
exception occurred:
f3k8ih5gq0-algo-1-9che5 |
f3k8ih5gq0-algo-1-9che5 | Traceback (most recent call last):
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/gunicorn/workers/base_async.py",
line 56, in handle
f3k8ih5gq0-algo-1-9che5 | self.handle_request(listener_name, req, client,
addr)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/gunicorn/workers/ggevent.py", line
160, in handle_request
f3k8ih5gq0-algo-1-9che5 | addr)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/gunicorn/workers/base_async.py",
line 107, in handle_request
f3k8ih5gq0-algo-1-9che5 | respiter = self.wsgi(environ,
resp.start_response)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_xgboost_container/serving.py",
line 136, in main
f3k8ih5gq0-algo-1-9che5 | user_module_transformer.initialize()
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_transformer.py",
line 185, in initialize
f3k8ih5gq0-algo-1-9che5 | self._model = self._model_fn(_env.model_dir)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py",
line 95, in wrapper
f3k8ih5gq0-algo-1-9che5 | six.reraise(error_class, error_class(e),
sys.exc_info()[2])
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/six.py", line 718, in reraise
f3k8ih5gq0-algo-1-9che5 | raise value.with_traceback(tb)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py",
line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 | return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 | File "/opt/ml/code/inference.py", line 26, in
model_fn
f3k8ih5gq0-algo-1-9che5 | booster = pkl.load(open(os.path.join(model_dir,
model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | sagemaker_containers._errors.ClientError: [Errno
2] No such file or directory: '/opt/ml/model/xgboost-model'
f3k8ih5gq0-algo-1-9che5 | <IP_ADDRESS> - - [23/May/2022:09:31:47 +0000] "GET
/ping HTTP/1.1" 500 141 "-" "python-urllib3/1.26.9"
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:52:INFO] No GPUs detected
(normal if no gpus installed)
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:52:INFO] Installing module
with the following command:
f3k8ih5gq0-algo-1-9che5 | /miniconda3/bin/python3 -m pip install .
f3k8ih5gq0-algo-1-9che5 | Processing /opt/ml/code
f3k8ih5gq0-algo-1-9che5 | Preparing metadata (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 | Building wheels for collected packages: inference
f3k8ih5gq0-algo-1-9che5 | Building wheel for inference (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 | Created wheel for inference:
filename=inference-1.0.0-py2.py3-none-any.whl size=16359
sha256=56f1e8fab2fec8c4a15850ac4ecf9a02b73f0068434821b09cf73cbcda092824
f3k8ih5gq0-algo-1-9che5 | Stored in directory:
/home/model-server/tmp/pip-ephem-wheel-cache-02pq641a/wheels/3e/0f/51/2f1df833dd0412c1bc2f5ee56baac195b5be563353d111dca6
f3k8ih5gq0-algo-1-9che5 | Successfully built inference
f3k8ih5gq0-algo-1-9che5 | Installing collected packages: inference
f3k8ih5gq0-algo-1-9che5 | Attempting uninstall: inference
f3k8ih5gq0-algo-1-9che5 | Found existing installation: inference 1.0.0
f3k8ih5gq0-algo-1-9che5 | Can't uninstall 'inference'. No files were found
to uninstall.
f3k8ih5gq0-algo-1-9che5 | Successfully installed inference-1.0.0
f3k8ih5gq0-algo-1-9che5 | WARNING: Running pip as the 'root' user can
result in broken permissions and conflicting behaviour with the system
package manager. It is recommended to use a virtual environment instead:
https://pip.pypa.io/warnings/venv
f3k8ih5gq0-algo-1-9che5 | WARNING: You are using pip version 22.0.4;
however, version 22.1.1 is available.
f3k8ih5gq0-algo-1-9che5 | You should consider upgrading via the
'/miniconda3/bin/python3 -m pip install --upgrade pip' command.
f3k8ih5gq0-algo-1-9che5 | [2022-05-23 09:31:53 +0000] [227] [ERROR] Error
handling request /ping
f3k8ih5gq0-algo-1-9che5 | Traceback (most recent call last):
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py",
line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 | return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 | File "/opt/ml/code/inference.py", line 26, in
model_fn
f3k8ih5gq0-algo-1-9che5 | booster = pkl.load(open(os.path.join(model_dir,
model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | FileNotFoundError: [Errno 2] No such file or
directory: '/opt/ml/model/xgboost-model'
f3k8ih5gq0-algo-1-9che5 |
f3k8ih5gq0-algo-1-9che5 | During handling of the above exception, another
exception occurred:
f3k8ih5gq0-algo-1-9che5 |
f3k8ih5gq0-algo-1-9che5 | Traceback (most recent call last):
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/gunicorn/workers/base_async.py",
line 56, in handle
f3k8ih5gq0-algo-1-9che5 | self.handle_request(listener_name, req, client,
addr)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/gunicorn/workers/ggevent.py", line
160, in handle_request
f3k8ih5gq0-algo-1-9che5 | addr)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/gunicorn/workers/base_async.py",
line 107, in handle_request
f3k8ih5gq0-algo-1-9che5 | respiter = self.wsgi(environ,
resp.start_response)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_xgboost_container/serving.py",
line 136, in main
f3k8ih5gq0-algo-1-9che5 | user_module_transformer.initialize()
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_transformer.py",
line 185, in initialize
f3k8ih5gq0-algo-1-9che5 | self._model = self._model_fn(_env.model_dir)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py",
line 95, in wrapper
f3k8ih5gq0-algo-1-9che5 | six.reraise(error_class, error_class(e),
sys.exc_info()[2])
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/six.py", line 718, in reraise
f3k8ih5gq0-algo-1-9che5 | raise value.with_traceback(tb)
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py",
line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 | return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 | File "/opt/ml/code/inference.py", line 26, in
model_fn
f3k8ih5gq0-algo-1-9che5 | booster = pkl.load(open(os.path.join(model_dir,
model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | sagemaker_containers._errors.ClientError: [Errno
2] No such file or directory: '/opt/ml/model/xgboost-model'
f3k8ih5gq0-algo-1-9che5 | <IP_ADDRESS> - - [23/May/2022:09:31:53 +0000] "GET
/ping HTTP/1.1" 500 141 "-" "python-urllib3/1.26.9"
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:58:INFO] No GPUs detected
(normal if no gpus installed)
f3k8ih5gq0-algo-1-9che5 | [2022-05-23:09:31:58:INFO] Installing module
with the following command:
f3k8ih5gq0-algo-1-9che5 | /miniconda3/bin/python3 -m pip install .
f3k8ih5gq0-algo-1-9che5 | Processing /opt/ml/code
f3k8ih5gq0-algo-1-9che5 | Preparing metadata (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 | Building wheels for collected packages: inference
f3k8ih5gq0-algo-1-9che5 | Building wheel for inference (setup.py) ... done
f3k8ih5gq0-algo-1-9che5 | Created wheel for inference:
filename=inference-1.0.0-py2.py3-none-any.whl size=19706
sha256=4e5bdcd2e59629fadf0c0e54a3d71f769dd92d167d08729e7ab0f4b9074a7066
f3k8ih5gq0-algo-1-9che5 | Stored in directory:
/home/model-server/tmp/pip-ephem-wheel-cache-vq93idru/wheels/3e/0f/51/2f1df833dd0412c1bc2f5ee56baac195b5be563353d111dca6
f3k8ih5gq0-algo-1-9che5 | Successfully built inference
f3k8ih5gq0-algo-1-9che5 | Installing collected packages: inference
f3k8ih5gq0-algo-1-9che5 | Attempting uninstall: inference
f3k8ih5gq0-algo-1-9che5 | Found existing installation: inference 1.0.0
f3k8ih5gq0-algo-1-9che5 | Can't uninstall 'inference'. No files were found
to uninstall.
f3k8ih5gq0-algo-1-9che5 | Successfully installed inference-1.0.0
f3k8ih5gq0-algo-1-9che5 | WARNING: Running pip as the 'root' user can
result in broken permissions and conflicting behaviour with the system
package manager. It is recommended to use a virtual environment instead:
https://pip.pypa.io/warnings/venv
f3k8ih5gq0-algo-1-9che5 | WARNING: You are using pip version 22.0.4;
however, version 22.1.1 is available.
f3k8ih5gq0-algo-1-9che5 | You should consider upgrading via the
'/miniconda3/bin/python3 -m pip install --upgrade pip' command.
f3k8ih5gq0-algo-1-9che5 | [2022-05-23 09:31:59 +0000] [225] [ERROR] Error
handling request /ping
f3k8ih5gq0-algo-1-9che5 | Traceback (most recent call last):
f3k8ih5gq0-algo-1-9che5 | File
"/miniconda3/lib/python3.7/site-packages/sagemaker_containers/_functions.py",
line 93, in wrapper
f3k8ih5gq0-algo-1-9che5 | return fn(*args, **kwargs)
f3k8ih5gq0-algo-1-9che5 | File "/opt/ml/code/inference.py", line 26, in
model_fn
f3k8ih5gq0-algo-1-9che5 | booster = pkl.load(open(os.path.join(model_dir,
model_file), "rb"))
f3k8ih5gq0-algo-1-9che5 | FileNotFoundError: [Errno 2] No such file or
directory: '/opt/ml/model/xgboost-model'
Am I doing something wrong?
—
Reply to this email directly, view it on GitHub
https://github.com/aws-samples/amazon-sagemaker-local-mode/issues/15,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEICFBV3VI3AVT2N7EBWHLLVLNIBPANCNFSM5WVHQFDA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi!
Thanks for answering and helping.
inside /opt/ml there are three folders: code, model and models. The last 2 are empty. How can I put the model in the tar.gz there?
I have also seen this:
<IP_ADDRESS> - - [24/May/2022:14:29:12 +0000] "GET /ping HTTP/1.1" 500 141 "-" "python-urllib3/1.26.9"

Actually I see the model created in S3. I suppose it should be created in the docker.

When the endpoint is deployed then model.tar.gz file is download from s3 to
the container by SageMaker and untar to /opt/ml/model directory.
Try to download the model.tar.gz from s3, untar it and see what happens.
On Tue, 24 May 2022 at 17:16 Pablo Castilla @.***>
wrote:

Actually I see the model created in S3. I suppose it should be created in
the docker.
—
Reply to this email directly, view it on GitHub
https://github.com/aws-samples/amazon-sagemaker-local-mode/issues/15#issuecomment-1136061945,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEICFBUBKUSJNS3H24SLOKDVLTXFFANCNFSM5WVHQFDA
.
You are receiving this because you commented.Message ID:
@.***>

If I do it that way it works and I can see one prediction. Looking at the code I suppose I should see two of them, but we are going forward.


Changes to model card

Hi there!
I noticed discussions are disabled in the HF repository, so I could not update the model card. I noticed two things:

The demo link is broken. It should be

**🚀 You can start with the [demo tutorial](https://github.com/mv-lab/InstructIR/blob/main/demo.ipynb)**

I suggest adding a pipeline tag to help with discoverability. For example, it could look like

---
license: mit
pipeline_tag: image-to-image
---

thank you @osanseviero we updated the HF model card


i18n writing cache file on every request

I have noticed on every page load two files in the cache are being rewritten on every request, the two files are located in;

silverstripe-cache/cache/zend_cache---i18nZend_Translate_RailsYaml_Options
silverstripe-cache/cache/zend_cache---internal-metadatas---i18nZend_Translate_RailsYaml_Options

On each request the written contents appear to be the same in the file 'zend_cache---i18nZend_Translate_RailsYaml_Options' but very slightly different for the 'zend_cache---internal-metadatas---i18nZend_Translate_RailsYaml_Options' file.
We've stumbled upon this due to a cloud hosting provider using network storage running into flock issues when multiple web servers are trying to write to the above files at the same time. Has anyone else run into similar issues, or any ideas on a fix for this?
p.s. we're setting the local to "en_GB" via mysite/_config.php via i18n::set_locale("en_GB"); removing this or setting it to "en_US" doesn't seem to make any difference.

We've changed the whole i18n system in 4.x, and did extensive performance tests on that implementation. Closing off this 3.x bug, either it's been fixed since then, or it isn't impactful enough for other devs to have noticed it as a performance drain


db.add_arxml_file error

Got this error when using add_arxml() function:

Not sure why this happens? Any help is appreciated

this is an error raised by the XML parser. Are you sure that your data is valid XML?

(judging from your function names, you probably want to use dbc_db.load_dbc_file("MyFileName.dbc") not `db.add_arxml_file()')

Pretty sure the arxml file is valid. It is a requirement for me to work with arxml to decode blf file. Not really a choice for me.

I recommend to double check this, e.g., open the file with a web browser or pass it through an XML linter. the error you outlined above is not anything cantools can do about; the XML parser basically complains that the file you gave it is not XML. since this parser is part of the python standard library, it should be extremely well tested...

Searched a little bit, saw that the error is from root = ElementTree.fromstring(string), the string is the filename I parsed in. However, according to https://stackoverflow.com/questions/39861806/error-trying-parsing-xml-using-python-xml-etree-elementtree-parseerror-syntax, this is just parsing the string of filename, instead of the content of the file, should be  ET.fromstring(open('filename.xml').read()). Is this a bug or is this intended?

If this is the case, it's a bug and we would be grateful if you could make a PR that fixes this. I just have a hard time understanding this:
according to the stack trace above, you called add_arxml_file(), which on line 155 opens a file and uses this to call add_arxml() which just reads all its contents and calls add_arxml_string(). I am thus baffled about how the file name passed to add_arxml_file() could end up as an argument to add_arxml_string()...

the arxml file is broken, closing the comment


[Provisioning] AMI Support

Currently AMI is hardcoded. Use SSM to detect the best EKSOptimizedAMI for kubernetes version.

Query: kubectl get --raw /version
Pass k8s version to SSM for EKSOptimized AMI

Example<EMAIL_ADDRESS>

Merged by https://github.com/awslabs/karpenter/pull/242


[APIV2] Client kick on teleport

What version of ViaVersion are you using? Type /ver viaversion
Latest apiv2
What version of Spigot are you using? Type /ver
CraftBukkit version git-Spigot-e4d4710-e1ebe52 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT)
What plugins are you using? Type /plugins
ViaVersion, ProtocolLib
Are you using any additional software like BungeeCord? If so, what software and version? (Please list your plugins as well)
No
How does this error happen? login? Using an item?
I teleported to another player on the server, the players both got kicked with the same error
Kick message: http://prntscr.com/aj0mbl
Is there an error in the console? Use pastebin.com. Is there a kick message?
http://pastebin.com/Yiaj3nGv

The 2 players seem to be able to log in fine seperately, but as soon as the second one logs in closeby, the 2 clients will get kicked.

These are the lines before the disconnect, server doesn't seem to have any issues, but is sending a malformed packet
[18:28:50 INFO]: [ViaVersion] OUTGOING: PLAY 25 -> 52 [PLAY_ENTITY_HEAD_LOOK[107]]
[18:28:50 INFO]: [ViaVersion] OUTGOING: PLAY 28 -> 57 [PLAY_ENTITY_METADATA[107]]
[18:28:50 INFO]: [ViaVersion] OUTGOING: PLAY 32 -> 75 [PLAY_ENTITY_PROPERTIES[107]]
[18:28:50 INFO]: [ViaVersion] OUTGOING: PLAY 25 -> 52 [PLAY_ENTITY_HEAD_LOOK[107]]
[18:28:50 INFO]: Unable to find entity for metadata, entity ID: 1858
[18:28:50 INFO]: [ViaVersion] OUTGOING: PLAY 12 -> 5 [PLAY_SPAWN_PLAYER[107]]
[18:28:50 INFO]: Unable to find entity for metadata, entity ID: 1858
[18:28:50 INFO]: [ViaVersion] OUTGOING: PLAY 28 -> 57 [PLAY_ENTITY_METADATA[107]]
[18:28:50 INFO]: [ViaVersion] OUTGOING: PLAY 32 -> 75 [PLAY_ENTITY_PROPERTIES[107]]
[18:28:50 INFO]: [ViaVersion] OUTGOING: PLAY 4 -> 60 [PLAY_ENTITY_EQUIPMENT[107]]
[18:28:50 INFO]: [ViaVersion] OUTGOING: PLAY 25 -> 52 [PLAY_ENTITY_HEAD_LOOK[107]]
[18:28:51 INFO]: FreTown lost connection: Disconnected
[18:28:51 INFO]: FreTown left the game.
[18:28:51 INFO]: HugoDaBosss lost connection: Disconnected
[18:28:51 INFO]: HugoDaBosss left the game.

Fixed


Can you share the segmentation code?

I tried learning deeplab model with provided pretrained weight. (I tried deeplab V1 and B2.)
It achieved 71% on the validation set with PSA.
But I can't get the final performance with segmentation model.
Can you share your segmentation code to reproduce the paper's performance?

We plan to incorporate the codes (iccv (OC-CSE), ECCV (AEFT), and new paper that will be presented in CVPR23) with the segmentation code. But it may take some time to organize. To implement by yourself, refer segmentation code (ResNet38) of MCTformer (CVPR22) + multi scale training (MSC) code (https://github.com/kazuto1011/deeplab-pytorch).


Support compu scale with int written as float

Same as #65 but for compu scale
Note: a PDX that reproduce the issue could be found in https://github.com/speedbyte/code_composer_build/tree/a34f54cdee679d0b1104b527aafde5f17054634c/doc/Diagnose/PDX

thanks. merging (sorry for the delay, I was AFK for the last two weeks)


Explicitly exclude node_modules/ in ESLint configuration

Although ESLint excludes node_modules/ by default when actually linting, the overrides rule for TypeScript does scan the dependencies when looking for TypeScript files (using files: '**/*.ts?(x)'). That means that, even if the linted code contains no TypeScript at all, the override triggers. An attempt to load @typescript-eslint/parser is made, which fails due to TypeScript not being installed.
This PR adds an explicit top-level ignore for node_modules/, which appears to prevent this (tested with a vanilla app made using npx create-react-app@latest).
Fixes #8745, #8936.

Alternatively it could add excludedFiles: 'node_modules/**/*.ts?(x)' inside the override.


askpass version outdated

This might be a duplicate of #70, #24 and other issues, but it seems that the version of askpass.exe in this repo is outdated. The README refers to git-credential-winstore which is no longer developed as such and now is Git Credential Manager for Windows by Microsoft.
In that repo I see references to cli-askpass which might be useful for this project because the ArgumentNullException error has been fixed there.

I tried downloading the latest release of GCM from the mentioned repo and replaced pshazz's askpass.exe with the git-askpass.exe from GCM, to no avail. Probably GCM's git-askpass.exe is fundamentally different from pshazz's askpass.exe, so maybe I'm wrong.

pshazz seems to be fundamentally broken and nobody cares :(

FYI: pshazz uses an askpass which different from GCM, https://github.com/lukesampson/askpass.


Handle array values for JSON columns

Laravel Version: 5.6.12
PHP Version: 7.2.3
Database Driver & Version: MySQL & 5.7.21

Description:
Bulk updating JSON columns with array values are not working properly. It throws an
Illuminate\Database\QueryException, because it tries to convert array to string:
Illuminate\Database\QueryException with message 'PHP Notice:  Array to string conversion in .../vendor/laravel/framework/src/Illuminate/Database/MySqlConnection.php on line 80 (SQL: update posts set meta = json_set(meta, '$."tags"', 1), updated_at = 2018-03-24 14:39:29 limit 10)'
Steps To Reproduce:
I have a Post model. In the migration, I add the JSON column to the schema.
$table->json('meta')

Inside the meta column, I want to store the tags as an array.
Since I don't want to update all the meta every the time, only the tags, I add the path to the fillable array on the model.
$fillable = ['meta->tags']

After I saved a model and retrieve the meta attributes it should look like this.
$post->meta

[
    ...
    tags => [1, 2, 3, 4, 5],
    ...
]

If I grab a single model and try to update it, it works.
$post->update(['meta->tags', [1,2,3]])

It updates only the tags attribute on the JSON column, and nothing else as I wanted.
Now if I try the same, but with multiple models, it fails.
Post::take(10)->update(['meta->tags' => [1,2,3]])

After running this, it throws the error I inserted in the description.
I think it would be nice if we could update JSON attributes like normal attributes since the number of queries could be reduced.

We can work around this problem by modifying two files:

Illuminate/Database/MySqlConnection.php
Illuminate/Database/Query/JsonExpression.php

We could use json_array(?) in the JsonExpression class:
case 'array':
    return 'json_array(?)';

But, since the json_array mysql function accepts standalone values and not a whole array, we would have to pass every value in the array one-by-one (and for the bindings as well). That means:
json_array(1, 2, 3, 4) and not ``json_array([1, 2, 3, 4]).
So our parameter binding would look like this: json_array(?, ?, ?, ?). In the MySqlConnection, where the value binding happens, we would handle these bindings as 4 unique binding, but still, accept one value which is an array. So we have to stick with one binding.
We can be tricky and use json_merge here, which requires a string version of the array and a second one which could be empty.
case 'array':
    return 'json_merge(?, "[]")';

Then one parameter binding is enough and all we have to do is to check if the value is an array and convert it to json. In the MySqlConnection:
foreach ($bindings as $key => $value) {
    $statement->bindValue(
         is_string($key) ? $key : $key + 1,
         is_array($value) ? json_encode($value) : $value,
         is_int($value) || is_float($value) ? PDO::PARAM_INT : PDO::PARAM_STR
     );
}

This works perfectly for multiple and single updates as well.

This issue is solved in PR #23685 .


TechDebt - remove warnings from tests

Codecov Report

Merging #5390 (e165a64) into master (3d913f8) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5390      +/-   ##
==========================================
- Coverage   96.05%   96.05%   -0.01%
==========================================
  Files         708      708
  Lines       71000    71000
==========================================
- Hits        68200    68199       -1
- Misses       2800     2801       +1

Flag
Coverage Δ

servertests
35.83% <ø> (ø)

unittests
95.99% <ø> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

moto/awslambda/models.py
93.91% <0.00%> (-0.11%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


TypeError: device() received an invalid combination of arguments - got (NoneType), but expected one of:  * (torch.device device)

I'm trying to fine tune llama-7b-chat-hf on custom dataset on colab using its gpu but im getting an error

We need much more information. When opening this bug report you should have been prompted to give us information about your system.
We need:

The full code you are running
The output of !accelerate env and your transformers version

This is my Code :
import transformers
from datetime import datetime
project = "journal-finetune"
base_model_name = "llama2-7b"
run_name = base_model_name + "-" + project
output_dir = "./" + run_name
device_map="cuda"
tokenizer.pad_token = tokenizer.eos_token
trainer = transformers.Trainer(
model=model,
train_dataset=tokenized_train_dataset,
eval_dataset=tokenized_val_dataset,
args=transformers.TrainingArguments(
output_dir=output_dir,
warmup_steps=1,
per_device_train_batch_size=2,
gradient_accumulation_steps=1,
gradient_checkpointing=True,
max_steps=500,
learning_rate=2.5e-5, # Want a small lr for finetuning
bf16=False,
optim="paged_adamw_8bit",
logging_dir="./logs",        # Directory for storing logs
save_strategy="steps",       # Save the model checkpoint every logging step
save_steps=50,                # Save checkpoints every 50 steps
evaluation_strategy="steps", # Evaluate the model every logging step
eval_steps=50,               # Evaluate and save checkpoints every 50 steps
do_eval=True,                # Perform evaluation at the end of training
# report_to="wandb",           # Comment this out if you don't want to use weights & baises
run_name=f"{run_name}-{datetime.now().strftime('%Y-%m-%d-%H-%M')}"          # Name of the W&B run (optional)
),
data_collator=transformers.DataCollatorForLanguageModeling(tokenizer, mlm=False),
)
model.config.use_cache = False  # silence the warnings. Please re-enable for inference!
trainer.train()
the output of !accelerate env :
Copy-and-paste the text below in your GitHub issue

Accelerate version: 0.27.0.dev0
Platform: Linux-6.1.58+-x86_64-with-glibc2.35
Python version: 3.10.12
Numpy version: 1.23.5
PyTorch version (GPU?): 2.1.0+cu121 (True)
PyTorch XPU available: False
PyTorch NPU available: False
System RAM: 12.67 GB
GPU type: Tesla T4
Accelerate default config:
Not found

Transormers version :
4.38.0.dev0

@muellerzr please reply

Please don't ping us if we haven't responded in <1hr, we have hundreds of issues to get through on a given day. I will get to this when I can

okay please help as you get time

@muellerzr its been 4 days could you please respond

Can you make a minimal reproducer with data that we can try by-chance? As I couldn't recreate it using a basic trainer:
import evaluate
import numpy as np
import torch
from datasets import load_dataset
from transformers import (
    AutoModelForSequenceClassification,
    AutoTokenizer,
    DataCollatorWithPadding,
    Trainer,
    TrainingArguments,
)
model_name = "distilbert-base-uncased"
dataset_name = "imdb"
metric = "accuracy"
id2label = {0: "NEGATIVE", 1: "POSITIVE"}
label2id = {v: k for k, v in id2label.items()}

dataset = load_dataset(dataset_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)

def tokenize_function(examples):
    return tokenizer(examples["text"], truncation=True)

tokenized_dataset = dataset.map(tokenize_function, batched=True)

data_collator = DataCollatorWithPadding(tokenizer=tokenizer)
accuracy = evaluate.load(metric)

def compute_metrics(evaluation_preds):
    predictions, labels = evaluation_preds
    predictions = np.argmax(predictions, axis=1)
    return accuracy.compute(predictions=predictions, references=labels)

model = AutoModelForSequenceClassification.from_pretrained(
    model_name, num_labels=2, id2label=id2label, label2id=label2id
)
training_args = TrainingArguments(
    output_dir="results/sequence_classification",  # Where weights are stored
    learning_rate=2e-5,  # The learning rate during training
    per_device_train_batch_size=32,  # Number of samples per batch during training
    max_steps=5,  # How many iterations through the dataloaders should be done
    weight_decay=0.01,  # Regularization penalization
)
trainer = Trainer(
    model=model,
    args=training_args,
    train_dataset=tokenized_dataset["train"],
    eval_dataset=tokenized_dataset["test"],
    data_collator=data_collator,
    compute_metrics=compute_metrics,
)
trainer.train()

TrainOutput(global_step=5, training_loss=0.6989791870117188, metrics={'train_runtime': 8.7737, 'train_samples_per_second': 18.236, 'train_steps_per_second': 0.57, 'total_flos':<PHONE_NUMBER>4960.0, 'train_loss': 0.6989791870117188, 'epoch': 0.01})

Config:
Copy-and-paste the text below in your GitHub issue

- `Accelerate` version: 0.27.0.dev0
- Platform: Linux-6.1.58+-x86_64-with-glibc2.35
- Python version: 3.10.12
- Numpy version: 1.23.5
- PyTorch version (GPU?): 2.1.0+cu121 (True)
- PyTorch XPU available: False
- PyTorch NPU available: False
- System RAM: 12.67 GB
- GPU type: Tesla T4
- `Accelerate` default config:
	Not found

And transformers installed via main

hey @Amanpandey3008, this is not the entire code, right? model is never defined, device_map is not used.
Just paste it in pls

This issue can crop up if you device_map your original model to cuda without specifying an index:
model = AutoModelForCausalLM.from_pretrained(base_model, quantization_config=quant_config, device_map="cuda")

Adding one will let accelerate extract the index and get through this section of the initialization process:
model = AutoModelForCausalLM.from_pretrained(base_model, quantization_config=quant_config, device_map="cuda:0")


[DPE-1763] Juju3 peer secrets

Issue
Charm doesn't use secrets for internal sensitive values
Solution
Use Juju secrets instead of peer data if available

Mostly a copy of the K8S implementation

Added DPE-2325 to move the secrets during upgrade charm once we have both implementation.


⚠ Bofrost.be has degraded performance

In b510e33, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1423 ms

Resolved: Bofrost.be performance has improved in 0a1edd3 after 6 minutes.


Possible memory leak in this FileUploaderPlugin

We have added the FileUploaderPlugin into our Xamarin.Forms project and are experiencing what looks like a possible memory leak when we are uploading several large video files at the same time.
Do you know of any issues with the plugin that might account for this?

Hi
What are the size of your videos?
Is this on Android or iOS?

What exception are you getting? Could you put the stacktrace here?

Thanks for your response. This is on Android. It looks like it relates to the hard coded 5 minute timeout in the plugin which was causing an issue when uploading to an SSL endpoint. This is the exception that we are getting.
javax.net.ssl.SSLException: Write error: ssl=0x7f70604080: I/O error during system call, Broken pipe

Ok will make a change for this at some point next week. Will capture this exception as an error but also will allow to specify the timeout when uploading.

Just published a new alpha version: https://www.nuget.org/packages/Plugin.FileUploader/1.3.4-alpha that handles this error instead of crashing you will get the exception string on the FileUploadError event handler.
Also added 3 Android specific static properties:
        public static TimeUnit UploadTimeoutUnit { get; set; } = TimeUnit.Minutes;
        public static long SocketUploadTimeout { get; set; } = 5;
        public static long ConnectUploadTimeout { get; set; } = 5;

Above you can see the default values. But you can change the value for the timeouts and unit by setting it from your Android project(Could be on MainActivity) like this:
        FileUploadManager.UploadTimeoutUnit = TimeUnit.Minutes;
        FileUploadManager.SocketUploadTimeout = 10;
        FileUploadManager.ConnectUploadTimeout  = 5;

Brilliant, thanks for that


Colab Notebook not able to convert to kmodel

With the Colab detector notebook, I'm no longer able to convert the models, I can generate my models and convert to Tflite but they do not convert to kmodel

here is the Colab notebook: https://colab.research.google.com/drive/1eRs-dJdV9ij6RVN4X6rTesuoxrNPi5Ng?usp=sharing
I used this notebook to train a custom detector made with my dataset and it worked well, now I created a new PASCAL VOC dataset with VOTT label tool and after the training, the model is not converted to kmodel no matter how much I try. The folder structure is exactly the same as the old dataset and the training is just fine.
I tried again with the old dataset and it works, I really do not know why, the size of the images are the same, same format, same programs used.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):

Local or Google Colab/Jupyter Notebook
If Local: conda or native install/ virtual env?
If Google Colab: tensorflow version?

Additional context
Add any other context about the problem here.

here is the dataset I'm trying to use
basta.zip

I tried your code, it is in line with what you said! Your situation is very similar to this one!
So I will test according to the solution of that case! The kmodel file can be exported correctly!
You can test it according to its operation!
Sorry I am Chinese, I used google to translate into English, hope you can understand!
https://github.com/AIWintermuteAI/aXeleRate/issues/18
"Fatal: Invalid dataset, file size should be 602112B, but got 1806336B"
我试了你的代码，是符合你说的情况！   你的情况和这一个案子十分的近似！
故我按那一个案子的解决方式去测试！ 可以正确转出 kmodel 档案！
你可以按其操作去测试一下！
抱歉我是中国人，我使用  google 翻译转成英文，希望你看的懂！

Sorry, was quite busy last few days - @nicolaivalenti I fixed the bug described in https://github.com/AIWintermuteAI/aXeleRate/issues/18 in the latest commit.
Can you try again and see if it solved your problem?
@dreamsidae I think your English is pretty good :)

@AIWintermuteAI  @dreamsidae  thank you guys, you are amazing, it is working now!


How do you keep in sync with new options of jshint?

Hello,
thanks for everyone for contributing to jshint, it's an invaluable tool.
The biggest pain point I've noticed is that I fail to keep up with new features :)
Every now and then new flags land in jshint but I did not find any simple way to find them out - other than iterating over http://jshint.com/docs/options/ and comparing the options to the ones in my .jshintrc.
The Github release notes are also not that helpful since they usually list all the commits, unfiltered.
Is there some changelog hidden  somewhere that documents which new options are added in which jshint version?

A more user-friendly change log would definitely be a good thing. Related: gh-1864

We're now using conventional-changelog to generate a formal CHANGELOG.md file, which is consumed by the jshint.com build process to generate blog posts. Hopefully these new resources will be useful when updating!


Improve search form - how to choose a county

Issue with finding 'Edinburgh' - long way down!

@PatReynolds to check and clarify task.

Is this an FC1 issue. The FC1 search form was vry basic and has been revised in FC2.
We are close to developing the search form for FC2 to take into account all the possible info we need to collect. If this applies to FC2 then I need to know what the expectations are so that they can be taken into account.
Geoff


[Miration]SvgIcon import failed

Steps to reproduce
Link to live example: (required)
there is no link because compilation is not going thru
here is dependencies of package.json:
"dependencies": {
"@date-io/date-fns": "2.16.0",
"@emotion/css": "^11.11.2",
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.5",
"@mui/icons-material": "5.15.19",
"@mui/material": "5.15.19",
"@mui/system": "5.15.15",
"@mui/x-date-pickers": "7.6.1",
"@syncfusion/ej2-react-grids": "25.2.6",
"@testing-library/jest-dom": "6.4.5",
"@testing-library/react": "15.0.7",
"@testing-library/user-event": "14.5.2",
"ajv-keywords": "^5.1.0",
"axios": "1.7.2",
"d3": "7.9.0",
"date-fns": "2.28.0",
"html-react-parser": "5.1.10",
"moment": "2.30.1",
"query-string": "9.0.0",
"react": "18.3.1",
"react-adal": "0.5.2",
"react-dom": "18.3.1",
"react-draggable": "4.4.6",
"react-idle-timer": "5.7.2",
"react-number-format": "4.9.3",
"react-qr-code": "2.0.14",
"react-redux": "9.1.2",
"react-router-dom": "5.3.4",
"react-scripts": "5.0.1",
"redux": "5.0.1",
"redux-thunk": "3.1.0",
"web-vitals": "4.0.1"
},
Steps:

add dependencies
run npm instyall --legacy-peer-deps
run npm start
receive error message:
Module parse failed: Unexpected token (4:5)
File was processed with these loaders:

./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
| import SvgIcon from '@mui/material/SvgIcon';
|

type SvgIconComponent = typeof SvgIcon;
|
| export const Abc: SvgIconComponent;

Current behavior
Module parse failed: Unexpected token (4:5)
File was processed with these loaders:

./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
| import SvgIcon from '@mui/material/SvgIcon';
|

type SvgIconComponent = typeof SvgIcon;
|
| export const Abc: SvgIconComponent;

Expected behavior
npm install and npm run completes with no errors
Context
upgrade react-scripts from 4 to 5
Your environment

npx @mui/envinfo
npx @ System:
    OS: Windows 10 10.0.20348
  Binaries:
    Node: 21.7.2 - C:\fiserv\nodejs\node.EXE
    npm: 10.8.0 - C:\Agent\test\24.2\Source\node_modules\.bin\npm.CMD
    pnpm: Not Found
  Browsers:
    Chrome: Not Found
    Edge: Chromium (119.0.2151.97)
  npmPackages:
    @emotion/react: 11.11.4 => 11.11.4
    @emotion/styled: 11.11.5 => 11.11.5
    @mui/core-downloads-tracker:  5.15.19
    @mui/private-theming:  5.15.14
    @mui/styled-engine:  5.15.14
    @mui/types:  7.2.14
    @types/react:  18.3.3
    react: 18.3.1 => 18.3.1
    react-dom: 18.3.1 => 18.3.1
```
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.
```

Search keywords: import SvgIcon failed

Please provide a reproduction in the form of a GitHub repository.


Extracted destination section to its own component

https://drive.google.com/file/d/1TH7-uKKCTKGVKnF-aSffGG5rkzBDKGVs/view?usp=sharing

@barryokane I've coded a mechanism to detect if the JS is running in the patternlib and if so, it will mock an API call for better visualization of the entire component

Wait - I'm getting JS errors...


Remove Env from the app additional form

What this PR does / why we need it:
Unregistered apps no longer have envName (because of https://github.com/pipe-cd/pipe/pull/3050), that's why these codes will get unneeded.
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

/lgtm

Nice catch
/approve


update disconnect method for opsdroid 0.13.0

Latest opsdroid gives the following exception when receiving a stop signal:
/home/opsdroid/.local/share/opsdroid/opsdroid-modules/connector/matrix/connector.py:201: RuntimeWarning: coroutine 'ClientSession.close' was never awaited
  self.session.close()
INFO opsdroid.core: Stopped connector ConnectorMatrix
INFO opsdroid.core: Stopping database ...
ERROR opsdroid.core: Caught exception
ERROR opsdroid.core: {'message': 'Task exception was never retrieved', 'exception': TypeError('disconnect() takes 1 positional argument but 2 were given',), 'future': <Task finished coro=<OpsDroid.handle_signal() done, defined at /usr/local/lib/python3.6/dist-packages/opsdroid/core.py:120> exception=TypeError('disconnect() takes 1 positional argument but 2 were given',)>}

After thinking about this I'm not sure the Connector API is quite right. There is no compelling reason why an opsdroid pointer should have to be passed on disconnect as the connector should already have a pointer to it stored as an attribute from when it was set up.
See opsdroid/opsdroid#725 for more information on my proposed change.

As the change will not be in until the next release you may wish to make the change but ensure it is an optional kwarg so that when the API changes again it will not break. You could then remove this when matrix is merged as a core connector.

I fixed this in #36

This can be closed.


[Feature Request] SGlang, the fast serving framework

Is your feature request related to a problem? Please describe.
This is kind of an 'FYI' for @vkehfdl1 from our previous brief coffee chat. You may simply close this issue if you are already fully aware of it.
Additional context
You may refer the sources below:

the official GitHub repo
reactions, reviews from the Korean community

@skmanzg
Thanks:)
It is weird I cannot find sglang llama index integration.
We will implement it soon.
Thanks:)


[#159135790] Some adapter optimisations

What?
We want to be able to get a quicker response from log-aggregattor when querying
the prometheus exporter endpoint /metrics.
This PR includes:

Increase the buffer of messages between the getters goroutines (that query log-cache) and
the appenders into the final prometheus object.
Run as many appenders as CPUs. The appending operation is CPU bound (serialisation) and
we want to use a much CPU as possible.
Do not query unnecessary stuff to log-cache: only query tenant resources (sourceID is a UUID) and Counters/Gauges.

How to review

code review
run testss

Who?
Not me or @samcrang

Passes tests, code review LGTM


Have updates to working bits and fixes to adc - if interested, I can issue a pull request here or...

Greetings,
I found embassy-experiments to be a great place for me to advance my (embassy) rust on STM32F3Discovery experience.  I cloned your repo, updated the previously working code and then debugged the adc demo (I'll do the serial port next).  In the process, I've identified a couple of Embassy bugs that I intend to bring to their attention (assuming they haven't already been identified...).  So... I desire to make my code public and I can either issue a pull request against your repo (so you get full originator presentation) or just make my repo public.
Do you have a preference?

Hi, thanks you found my repo useful! I think I would prefer you just making your repo public, then it's clear you authored the fixes and can add new stuff independently. Also, as it's just an experiments repo I'm not doing a lot of maintenance (obviously), so overall that approach makes more sense to me. I'll be interested to see your fixes, in any case!

I have added a license (MIT) to make it unambiguous that that this is ok to do with my code.

Thanks for responding and for generating the original code.  My enhancements (if I should be so bold as to call them that...) can be found here: https://github.com/anotherstevest2/embassy-experiments

No issue remaining...


Cannot present $$ inside code blocks

Problem:
$$a \ne 0$$ renders as {% math %}a \ne 0{% endmath %} inside code blocks.
Whilst it is possible to successfully escape "double-dollars" as \$\$ → $$ in plain text areas, inside code blocks \$\$a \ne 0\$\$ renders literally, as you would expect!
So, in other words, it's impossible to correctly document using the shortcut if you are using the plugin in your gitbooks!

That's the situation where I am stuck in...
Moreover, how is it possible not to change $ to {% math_inline %}?
Is this a core bug of this plugin?


opening files with filetype set in modeline gives errors

I recently upgraded my system and I've found that whenever I open a file with a modeline that reads vim: ft=* that I get E12 ("Command not allowed") and E171 ("missing endif") errors depending on what precise airline function it was trying to load.
environment

vim: 8.1
vim-airline: bd468dacfe874fd669ec69522b550d3e1371cf56
OS: Arch Linux 4.18.10-arch1-1-ARCH
Have you reproduced with a minimal vimrc: Yes
What is your airline configuration: ???
if you are using terminal:
terminal: termite
$TERM variable: xterm-termite
color configuration (:set t_Co?):  256
if you are using Neovim:
does it happen in Vim: ???

actual behavior
Using minivimrc I get the following error messages:

"~/tst/test" 1L, 16C
Error detected while processing function 17_on_window_changed[17]..17_init[6]..airline#extensions#load[105]..airline#extensions#branch#init:
line    3:
E12: Command not allowed from exrc/vimrc in current dir or tag search:   autocmd ShellCmdPost,CmdwinLeave * unlet! b:airline_head b:airline_do_mq_check
line    4:
E12: Command not allowed from exrc/vimrc in current dir or tag search:   autocmd User AirlineBeforeRefresh unlet! b:airline_head b:airline_do_mq_check
line    5:
E12: Command not allowed from exrc/vimrc in current dir or tag search:   autocmd BufWritePost * call s:reset_untracked_cache(0)
line    6:
E12: Command not allowed from exrc/vimrc in current dir or tag search:   autocmd ShellCmdPost * call s:reset_untracked_cache(1)
Error detected while processing function 17_on_window_changed[17]..17_init[6]..airline#extensions#load[118]..airline#extensions#fugitiveline#init:
line    7:
E12: Command not allowed from exrc/vimrc in current dir or tag search:   autocmd ShellCmdPost,CmdwinLeave * unlet! b:fugitive_name
line    8:
E12: Command not allowed from exrc/vimrc in current dir or tag search:   autocmd User AirlineBeforeRefresh unlet! b:fugitive_name
Error detected while processing function 17_on_window_changed[17]..17_init[6]..airline#extensions#load[149]..airline#extensions#whitespace#init:
line    4:
E12: Command not allowed from exrc/vimrc in current dir or tag search:   augroup airline_whitespace
line    5:
E12: Command not allowed from exrc/vimrc in current dir or tag search:     autocmd!
line    6:
E12: Command not allowed from exrc/vimrc in current dir or tag search:     autocmd CursorHold,BufWritePost * call ws_refresh()
line    7:
E12: Command not allowed from exrc/vimrc in current dir or tag search:   augroup END
Error detected while processing function 17_on_window_changed[17]..17_init[6]..airline#extensions#load[164]..airline#extensions#wordcount#init:
line    1:
E12: Command not allowed from exrc/vimrc in current dir or tag search:   augroup airline_wordcount
line    2:
E12: Command not allowed from exrc/vimrc in current dir or tag search:     autocmd! User AirlineModeChanged nested let s:visual_active = (mode() ==? 'v' || mode() ==? 's')
line    4:
E12: Command not allowed from exrc/vimrc in current dir or tag search:   augroup END
Error detected while processing function 17_on_window_changed[17]..17_init[20]..17_on_colorscheme_changed[6]..airline#switch_matching_theme[13]..airline#switch_theme[35]..airline#load_theme[16]..airline#update_statusline[14]..76_invoke_funcrefs:
line    6:
E12: Command not allowed from exrc/vimrc in current dir or tag search
Error detected while processing function 17_on_window_changed[17]..17_init[20]..17_on_colorscheme_changed:
line    6:
E171: Missing :endif
Error detected while processing function 17_on_window_changed[17]..17_init:
line   20:
E171: Missing :endif

when trying to open a file named test with just:

// vim: ft=java

I am able to reproduce this with both a Vundle installed and pacman-installed version of vim-airline.  This seems to be relatively new following a system upgrade as well as with standard vim as well as gvim.

this is a Vim bug, update your vim to 8.1.0544


fixups failing for some jumps

It seems to be a relocations issue. Some jumps like:
0c000000 jal 0

should be, but are not, fixed up to:
0c005ede jal 17b78

Will attach repro binary if needed.

Well I'm cursing myself for not just uploading an example binary when I created this issue.
I tried on a few mips binaries in my collection and none exhibited the issue:
MD5 (busybox-mips) = 9e39391af855fd996cdd90437e2eeb7b
MD5 (busybox-mips64) = 29c922590bb93f9d0fb3ee1d3f538af1
MD5 (busybox-mipsel) = 099137899ece96f311ac5ab554ea6fec
MD5 (elf_mips32_be) = a41ea1c06b02a1e3cc06a85a4690dcef
MD5 (mips_helloworld_condition_elf) = 23d3d3a3f83593825614b2b2eb899d91
MD5 (libpthread_mips.so.0) = 10b36de0ffd8ebb29802e2e13ef8d41d
MD5 (libpthread_mipsel.so.0) = 7fea249bd74306e1c99ffe850259c42e
MD5 (libhdk-mips-elf) = 4c7e64d1e3c7ee3804d5401ca956d8d6
MD5 (curl-mips32) = 5b9f718cd4c1a2ee79692030787060c7

This may have been silently fixed in the last two years.
The bulk of the mip64 commits were merged in 2023-08-01. There were a couple relocation related commits 2023-08-07 and 2023-08-08 saw proper auto-recognition of mips64 binaries.  See https://github.com/Vector35/arch-mips/commits/master for details.


Eddie's documentation suggestions

A few suggestions from a slightly more experienced Rustacean.
High-level comments:

a .gitignore with at least target/ should be committed
The lock file, Cargo.lock should be committed

Examples in doc comments tend to use assert! macros instead of println!, even if they are returning booleans. For example, look at the docs for Ipv4Addr in the standard library.
I also added <> delimiters to URLs in docs, because cargo doc was complaining about it.
Even higher-level suggestion
Instead of validating NHI numbers, you could change the crate to parse an NHI number, and create a type that represents a valid NHI number. For example, you could do something like this:
use nhi::Nhi;

let n = "zvb97xq".parse::<Nhi>();
assert!(n.is_ok());

Creating a new type has a number of advantages:

this enables the type system to help you enforce constraints, e.g., creating APIs that require a valid NHI number is trivial
you can add convenience methods to the type to give you extra information, e.g., whether it's old or new format, or if it's a test number:

use nhi::{Nhi, Format};

let n: Nhi = "zvb97xq".parse().unwrap();
assert_eq!(n.as_str(), "ZVB97XQ");
assert_eq!(n.is_test_number(), true);
assert_eq!(n.format(), Format::NewFormat);

let numbers: Vec<Nhi> = retrieve_lots_of_nhi_numbers();
numbers.iter()
  .filter(|nhi| !nhi.is_test_number())
  .for_each(do_something_useful);

fn do_something_useful(nhi: Nhi) {
  // it's impossible to call this function with an invalid NHI number!
}

Then is_nhi() would have this straightforward implementation:
use std::std::FromStr; // you need this for from_str(), which enables "".parse::<Nhi>();

pub fn is_nhi(nhi: &str) -> bool {
   Nhi::from_str(nhi).is_ok()
}

I added the suggested NHI struct & impls – what do you think?


Setting Text Input form from Slider.

I have a tree
  FormBuilder child:(Column(children:[
     FormBuilderSlider(...),
     FormBuilderTextField(...)

What I want to do is update the values in the text field as the slider changes and I tried setting and initial value in the TextField and calling a setState () and setting as a property in the stateful class.
I had the FormBuildSlider onChanged call

 void _setBidValue(val)
  {
    setState(() {
      _bidValue = val;
    });
  }

Is there a proper way to set the values on the FormBuilder ?
With thanks,

Hi @jamiethain,
That's not normally how you'd go about changing the value of a TextField in Flutter.
I think the best way to go is to define a TextEditingController and use that to change the value of the TextField.
See my approach below:
TextEditingController _controller = TextEditingController();

@override
Widget build(BuildContext context) {
    return FormBuilder(
        key: _fbKey,
        child: Column(
        children: <Widget>[
            FormBuilderSlider(
                attribute: "slider",
                validators: [FormBuilderValidators.min(6)],
                onChanged: (val){
                    _controller.text = val.toString();
                },
                min: 0.0,
                max: 10.0,
                initialValue: 7.0,
                decoration: InputDecoration(
                    labelText: "Number of things",
                ),
            ),
            FormBuilderTextField(
                attribute: "text",
                controller: _controller,
            ),
        ],
    ),
);
}


Check for network status before attempting a backup

Hi @shinnok,
Here's a version that checks for exactly what we need (TCP connection to the tarsnap server, port 9279).  Does it work for you?

@gperciva I have been running this version ever since. I think it suffices, you can merge it.

Thanks, @shinnok!  I've merged it now.


How do I create an ATR indicator from a RenkoConsolidator source

In the RegisterIndicator method it sees the outputType as Tick and throws an exception.
Is this possible to?

In order to compute the AverageTrueRange, a TradeBar input value is
required. If you'd like to use a RenkoConsolidator's output as the input
for the ATR, you'll need to do some projection from the RenkBar ->
TradeBar, or, you could write a new version of the ATR that takes RenkoBar
as an input value. Here's some code that will take the output of a
RenkoConsolidator and pas it through to the AverageTrueRange indicator. The
first two lines create and plot the usual ATR14. The next several lines
create and plot the ATR14 of the consolidated renko output. An important
note here: The AverageTrueRange of a Renko bar should always be in the
neighborhood of the RenkoBarSize. By definition, the RenkoBar is a range
bound bar, not a time bound bar, so the true range of bars for which range
is already defined, will be about the size of the bar!
I hope these code snippets help!
-Michael
        // compute the 14 period average true range of daily prices
        var atr14 = ATR(symbol, 14);
        PlotIndicator(symbol, atr14);

        // comute the 14 period average true range of $5 renko bars

        // define a $5 renko bar consolidator
        var renko = new RenkoConsolidator(5m);
        SubscriptionManager.AddConsolidator(symbol, renko);

        // define our ATR indicator
        var atr = new AverageTrueRange(14);

        // each time we get a new renko bar, this event will be fired,
        // we'd like to update our ATR indicator with this data
        renko.DataConsolidated += (sender, args) =>
        {
            // project the output renko bar into a trade bar and pass

that
// into our atr indicator
atr.Update(new TradeBar
{
Symbol = args.Symbol,
Time = args.Start,
Period = (args.End - args.Start),
Close = args.Close,
High = args.High,
Low = args.Low,
Open = args.Open,
Volume = args.Volume,
Value = args.Close
});
};
        PlotIndicator(symbol, atr);

On Sun, Jul 19, 2015 at 7:02 AM, sblanchard<EMAIL_ADDRESS>wrote:

In the RegisterIndicator method it sees the outputType as Tick and throws
an exception.
Is this possible to?
—
Reply to this email directly or view it on GitHub
https://github.com/QuantConnect/Lean/issues/143.


Add prerequisites

Made sure to not to include the third party prerequisites (e.g., tomact or geronimo) in the initial commit.
Then stripped out all the code for all of those prerequisites from the scripts.

It might be helpful do go through the commits separately


Integrate with Runsignup

Runsignup is used by some races and has a nice API. We should integrate with that API in order to pull runner data into OST events.

This is done.


Quick-install script updated

Original install method gives privileged error see https://github.com/benweissmann/getmic.ro/issues/33

Hey @mrx23dot -- I think we can keep these instructions as-is; the getmic.ro script will print instructions for users who want to use the update-alternatives integration. I don't think it's a good idea to recommend that users run this script as root by default; there's lots of setups where that's not needed.

Yeah, but it doesn't work out of the box with the current instructions (gives error),
nor does apt install the latest version.
So entry of barrier is put really high.
We could suggest in readme:
curl https://getmic.ro | sh && sudo mv micro /usr/bin
that only gives sudo to mv cmd, but .sh script needs to be cleaned up, so it should end with ./micro available.
Also I would like to get it working with ansible automation, for that I would need silent .sh argument. (to prevent asking for user input)

There's ongoing discussion about improving error messaging around the update-alternatives feature; I think we can keep that discussion over on the getmic.ro repo before we make any requests on this repo to update the official docs.
The getmic.ro script does not prompt for input when running without a TTY, so you should be fine running it as part of an Ansible playbook. There's docs on using the GETMICRO_REGISTER env var to control this feature in a non-interactive environment.


Running Cinema server using Visual Studio Code terminal makes the terminal not responsive to terminate task

It seems that since the task is running outside the terminal, the terminal does not recognize that it is even running a task. The option to terminate task is greyed out. Maybe we should add a stand-alone way of terminating the cinema server.

Address in most recent commit ab29bc107b403fa02b1b541a3cad4d80360d9b41


Running lean from google colab

Greetings,
It would be nice if we can run lean from google colab
Checklist

[X] I have completely filled out this template
[X] I have confirmed that this issue exists on the current master branch
[X] I have confirmed that this is not a duplicate issue by searching issues

[ ] I have provided detailed steps to reproduce the issue

Closing this issue for now


Add rust-version to each Cargo.toml

rust-version in Cargo.toml support landed in 1.56, so we should consider putting it in all of our Cargo.toml. I think 1.56 is also the version we support, so it would look like a rust-version = "1.56.0" line in them.
(If we actually support an older version, it doesn't break, but they get a warning)

@thomcc can you assign this to me as well?


Machine not responding alerts

When a machine hasn't sent a heartbeat in a while (or if there have been errors with it), users should be alerted.

[ ] Make the "Last reported" time go more red/bold when it's been a while since it responded
[ ] Pop an alert on the admin panel

Solved in #98


Reload Config option under file menu

Need a reload option just to refresh the GUI - changes could have been made remotely or otherwise and isntead of doing a backup / restore config option - we should be able to reload config (kinda refresh)

Fixed in https://github.com/lithnet/miis-autosync/releases/tag/v1.1.6500


Installing tick in Windows environment

Hi,
i would like to install tick on a Windows 10 machine, but i'm unable to do it with pip as well as with the manual install. Is the package only for Linux/OSX?
best regards,

Hi,
Yes, sadly the package only works on Linux/OSX at the moment. If you really want to run it on Windows you can have a look at this fork (https://github.com/cderemble/tick) where some work has been done to run it on Windows. It's not completely finished nor is easy to install though.


Eid-297: respond to hub matching requests

I have created a pull request (https://github.com/alphagov/verify-matching-service-adapter/pull/13) which has a new branch "eid-297-final" containing EID-296 and EID-297 changes and this new branch can be merged with master-43c569e without issues.


if window.ui isn't in the current directory then pinsel segfaults

Yes, I tried putting it in /usr/lib, and /usr/local/lib, rebooting and running ldconfig.

Yea I'm a little lost writing a good install procedure. Ideally I would be able to do make (with the app using the current directories window.ui) for testing purposes and sudo make install (with the app using /usr/lib/ whatever) for installations. Didn't figure out how to get a proper setup in that regard. Currently it's just determined by the UI_FILE definition at the beginning of main.c.

Currently it's just determined by the UI_FILE definition at the beginning of main.c.

Haha I noticed when I git pulled the memory commit as I was getting segfaults and had to look at the diff.
There would have to be a thing to check lib locations, right?  As hardcoding it really doesn't sound like a good solution to me, though admittedly I guess it isn't hard to manually change.

There is probably some idiomatic way that everyone does and I don't know of ;-;

Might be fixed. I'm now including the resource at compile time (thanks buffet). Waiting for someone to try it out

Yep, seems to work now, epic.


fix(custom-element): correctly handle number type props in prod

close: #8987

Hello @baiwusanyu-c , could you please merge this PR, once all approved? Thank you so much!

@SavkaTaras Hi, we Vue team has a specific cycle to merge PRs and release, please be patient ❤

@sxzz thank you so much! I appreciate it.

Hello @edison1105 , could you please review this at your convenience?
We are kindly waiting on this to be released...
Thank you.

@edison1105 This is technically pending your review. Can you have a look or cancel your review? I think this is good to go.

@sxzz looks like this will need to merge and publish the corresponding changes in the Vite plugin, I'll leave that to you

Released as<EMAIL_ADDRESS>

Released as<EMAIL_ADDRESS>too


support 'import moneroTs from monero-ts' syntax #146

Following @dutu's suggestion from https://github.com/monero-ecosystem/monero-ts/issues/146.
Using the import moneroTs from monero-ts' compiles but moneroTs is undefined, unless a default export is added, in which case there's an error "Cannot find namespace 'moneroTs'.ts(2503)" (see TestSampleCode.ts with this PR applied).


Section styles

Implement section styles for the different home page areas with different background colos like: light-blue, light-grey, purple

This is already done by the blocks and global styles.


Guidance needed for customizing Radio

Hi,
I need to change the position of label in Radio, but wasn't sure how to go on about it.
I've read custom inputs doc, but since RadioGroup and Radio seem to work together, I'm looking for some guidance on how to do this.
I tried custom input for just Radio, but that didn't seem to work.

Hi sorry just seeing this. I would suggest you look at the source code here https://github.com/teslamotors/informed/tree/master/src/components/form-fields
specifically
https://github.com/teslamotors/informed/blob/master/src/components/form-fields/Radio.js
and
https://github.com/teslamotors/informed/blob/master/src/components/form-fields/RadioGroup.js

It works with  useRadioGroup
 const { radioGroupApi, radioGroupState } = useRadioGroup();
How can I use it? It's not exported.

I wrote that myself just for my inputs. Its not doing anything fancy under hood. Just take a look at souse code and do same thing I did :)

I created an example sandbox for how I understood the usage to be.
Basically, the key being, customizing Radio requires creating and managing your own Context (createContext, useContext).
Hopefully it helps someone.
https://codesandbox.io/s/snowy-monad-mewji5?file=/src/App.js

import React, {createContext, useContext} from "react";
import {Form, useField } from "informed";

const App = () => {
  return (
    <Form>
      <IRadioGroup name="radiogroup" label="Number Selection" initialValue="one">
        <IRadio value="one" label="One" id="one" />
        <IRadio value="two" label="Two" id="two" />
        <IRadio value="three" label="Three" id="three" />
      </IRadioGroup>
    </Form>
  );
}

export default App;

//create Context
const RadioGroupContext = createContext();

//custom Radio Group
const IRadioGroup = props => {
  const { fieldApi, fieldState, userProps } = useField(props);

  const groupContext = {
    radioGroupApi: fieldApi,
    radioGroupState: fieldState,
    ...props
  };

  const { label, id, options, children } = userProps;
  const { showError, error } = fieldState;

  return (
    <RadioGroupContext.Provider value={groupContext}>
      <fieldset aria-describedby={`${id}-error`}>
        {label ? <legend>{label}</legend> : null}
        {children}
        {showError ? (
          <small role="alert" id={`${id}-error`}>
            {error}
          </small>
        ) : null}
      </fieldset>
    </RadioGroupContext.Provider>
  );
}

//custom Radio
const IRadio = ({ label, value, ...props }) => {

  const { radioGroupApi, radioGroupState } = useContext(RadioGroupContext);

  const { setValue, setTouched } = radioGroupApi;

  const { value: groupValue, showError } = radioGroupState;

  return (
    <>
      <input
        {...props}
        aria-invalid={!!showError}
        value={value}
        checked={groupValue === value}
        onChange={e => {
          if (!e.target.checked) {
            return;
          }
          setValue(value, e);
        }}
        onBlur={e => {
          setTouched(true, e);
        }}
        type="radio"
        id={value}
      />
      <label htmlFor={value}>{label}</label>
    </>
  );
};


Add Linters file

In this PR, I was able to:
create index.html
create style.css
create .gitignore file
and set up Linters

Hello sorry but i can´t fix al the time this error is coming out
To https://github.com/DanielOTagua/Hello-Microverse-1.git
! [remote rejected] Linters -> Linters (refusing to allow a Personal
Access Token to create or update workflow .github/workflows/linters.yml
without workflow scope)
error: failed to push some refs to '
https://github.com/DanielOTagua/Hello-Microverse-1.git'
how I can get help ???
El mié, 7 jun 2023 a la(s) 16:52, Omar Farouq @.***)
escribió:

@.**** requested changes on this pull request.
Hi @DanielOTagua https://github.com/DanielOTagua, ✋
Great work on making the changes requested by a previous reviewer 👏
You've done well implementing some of the requested changes, but there are
still some which aren't addressed yet. 🥈
[image: giphy]
https://user-images.githubusercontent.com/102612396/244180110-b57a0a67-e0aa-4c57-a4c2-a5d7f10a2fde.gif
Highlights
✅ Followed GitHub workflow.
✅ Descriptive PR title & summary.
Required Changes ♻
Check the comments under the review.
Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this
PR. However, I strongly recommend you to take them into account as they can
make your code better. Some of them were simply missed by the previous
reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something
is not 100% clear.
Please, remember to tag me in your question so I can receive the
notification.
Please, do not open a new Pull Request for re-reviews. You should use the
same Pull Request submitted for the first review, either valid or invalid
unless it is requested otherwise.
As described in the Code reviews limits policy
https://microverse.zendesk.com/hc/en-us/articles/1500004088561 you have a
limited number of reviews per project (check the exact number in your
Dashboard). If you think that the code review was not fair, you can request
a second opinion using this form https://airtable.com/shrQAqnBwek5a0O0s.
On .github/linters.yml
https://github.com/DanielOTagua/Hello-Microverse-1/pull/1#discussion_r1222083955
:

As requested by the previous reviewer, the linters setup is not
working properly, kindly fix the folder structure because it has to be
.github/workflows/linters.yml, you are missing the workflows folder.

Kindly refer to this lesson
https://github.com/Ofarouq310/linters-config/tree/master/html-css to
cover everything.

In README.md
https://github.com/DanielOTagua/Hello-Microverse-1/pull/1#discussion_r1222085135
:

Describe your project in 1 or 2 sentences.

[OPTIONAL]

Kindly remove any part like this one, this is just for your
guidance, leaving it may seem inappropriate and unprofessional.

—
Reply to this email directly, view it on GitHub
https://github.com/DanielOTagua/Hello-Microverse-1/pull/1#pullrequestreview-1468441255,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUV4AWI6ORGLKOM7UYFWZGDXKDLYJANCNFSM6AAAAAAY6HESRA
.
You are receiving this because you were mentioned.Message ID:
@.***>


API: Unconditionally return np.intp from cKDTree.query

What does this implement/fix?
cKDTree.query has this code to return np.intp on all platforms, unless np.int_ is smaller, in which case it may cast to np.int_ but only after checking if it might overflow. However, most cKDTree functions already return np.intp unconditionally. No reason for query to be any more complicated.
cc @rainwoodman, @sturlamolden

Yes I know. It used to return dtype=int, which translated to a C long on Python 2. Unfortunately a C long is 32 bits on Windows 64. I wanted to change this to np.intp to accomodate larger data sets even on Win64, but someone did not like that, so I made this nasty piece of code that retained a 32-bit C long return type on Windows 64 unless it overflew. At that time cKDTree only had one query method. For the others there were no reason to maintain any backwards compatibility, so we went straight for the np.intp. I am +inf on removing this. I never liked it in the first place.

As for your code: LGTM.

If we now have more query methods and this one is the odd one out, +1 for changing it. I doubt many people are going to be affected by the change in returned dtype.

I added a release notes entry for this change.


引入 Passport

Coverage increased (+0.3%) to 91.724% when pulling e133caf20e6ddc23ddd8df01598aa08cad3aa435 on passport into a1eb6b83119611ef4663b67c846a3b9e43d6964a on master.

Coverage increased (+0.3%) to 91.724% when pulling e133caf20e6ddc23ddd8df01598aa08cad3aa435 on passport into a1eb6b83119611ef4663b67c846a3b9e43d6964a on master.


Solved issue #517 (Can't see result in Calculate)

Change in overflow property solves issue #517  .

The scrolling zone should not be on the whole screen: the toolbar should always be visible (except in fullscreen mode).

Could you do it only in the canvas part?

Fixed in https://github.com/llaske/sugarizer/pull/560


Inter-Database Query Lab

Show how queries can be executed across data stores using SQL (with domain specific extensions) and database links.

would be great if this could be exposed as a materialized view


Poor code example

You show a code sample below this title => "Here is an example that shows how to publish tracing data from the HTTP incoming requests"
The example code is a single method that does not belong to any class.  The method name is "OnIncomingRequest".  Searching for that method name pulls up nothing.  Where the hell should that method be placed?  How should that method be used?
This is a worthless example.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 05233ce0-ba2f-6b67-c321-ce630c650968
Version Independent ID: 18c7fa3f-5b50-1b53-68ba-4dbd9fd89396
Content: Distributed tracing - .NET
Content Source: docs/core/diagnostics/distributed-tracing.md
Product: dotnet-fundamentals
GitHub Login: @sywhang
Microsoft Alias: suwhang

@michaeljunkin thanks for the feedback! I recently checked in substantial changes to this page and overhauled the samples. When you get a chance could you let us know if the new content is more helpful or if you are still running into trouble?


Bump the version of the Oculus mobile SDK

Also update the README to simplify the checkout and setup process.
Note: The CMakeLists.txt build file was updated to remove the Oculus mobile SDK version. This will cause some compilation issues for forks but should simplify the Oculus mobile SDK update process in the future.

cc @NeoSpark314 @BastiaanOlij


Fails to revert to .bak databases after failed upgrade 0.9.6stable>0.10beta

failed to convert my 200gb databases with 0.10 convertion tool so
im copying the .bak database folder back into the /data folder  (which is specified in /etc/influxdb/influxdb.conf as dir = "/var/lib/influxdb/data") without the .bak extension and reverting to <IP_ADDRESS> stabble version
starting up 0.9.6 and going into the CLI "show databases" only shows _internal ,, if i do "use mydbname" then i CAN do "show series" but if i do "show measurements" it says "database not found"
am i fubard and need to start fresh or is there anything worth trying?

@discoduck2x can you walk me through the steps you did when you were upgrading.

@mjdesa

was sitting on <IP_ADDRESS>
upgraded to <IP_ADDRESS> stable ,, checked some queries all seemd fine
upgraded to 0.10beta , upgrade went well no problems encountered.
decied to convert the bz1 databases to tsm
followed the convert instructions, ran influx_tsm tool,,, took forever, asked here if i should be able to abort but just got told that the .bak folder is a full plain copy which should work to revert to.
aborted convertion and simply renamed the .bak folder
unable to query the databases but could still see something as described in op.

decided to start fresh,, but after inserting 2-3 days of server metrics into 0.10beta and tested grafana against it i got too long query respones so went back to <IP_ADDRESS>,, but same thing,, so stepped back to <IP_ADDRESS> but without any history. (still got the .bak data if i get time to test again)
performance issue feels like #5429

when you say you decided to start fresh, did you spin up a new instance, or just replace the version on the machine?

@mjdesa just uninstalled and installed fresh on same machine

To uninstall you ran dpkg -r ...

@mjdesa On centos 7,yum remove influxdb

There was an issue w/ the backup files that should be fixed via #5472 and #5454.


Post-Process

used to achieve full-screen effects in TurboWarp.

The extension doesn't seem to work.

The extension doesn't seem to work.

double click the green flag

I'm seeing similar problems.

The extension doesn't seem to work.

double click the green flag,I can't reproduce this issue stably, can you give me more info?
I just clicked on the glitch effect block. Did nothing else.

The extension doesn't seem to work.

double click the green flag,I can't reproduce this issue stably, can you give me more info?

I just clicked on the glitch effect block. Did nothing else.
I am on the latest version of Chromium.

Does it only update when the sprite's skin gets updated?
When you move it on the X and Y, it doesn't update the effect. I think you should add a Step effect block, so users can update the effect without having to update the sprite's skin.

Also, maybe remove some of the unnecessary logs.

Does it only update when the sprite's skin gets updated?
No, just make sure the screen is redraw. move on the position can update effect.
Also, maybe remove some of the unnecessary logs.
yes, i will remove them

what we really need is for the renderer to be extensible enough that you shouldn't need all these terrible internal hacks...

so what should I do for next

extensions that interact deeply with the renderer such as this one will always take a bit longer to get reviewed

Is there any way to speed up the process?

How about just be patient

Based on above comments it sounds like many people have trouble figuring out how to use this extension. It may be beneficial to make it work as people expect

@GarboMuffin I think it would be a good idea to close this PR, it's been inactive for over a month and it's not in a stable enough state to merge

I've made some final changes and it's now much easier to use. I'm sorry I've had a lot to deal with in the IRL lately and I'm a little late to the party

I like the update, some things I noticed though:

"opcodeRequestReDraw" doesn't work and instead returns an error.

When using a block incompatible with an effect, it logs in the console twice instead of once. It doesn't really bug me however thought I'd mention it.

Not exactly sure how the extension works (I've never worked with post processing before) however it'd be nice if you could put the three percentage blocks in a dropdown to be more concise.

Documentation would be nice since this extension is on the more complicated side.

This extension is working up to be pretty promising though, can't wait to see the finished product!

"opcodeRequestReDraw" doesn't work and instead returns an error.
Restored.
When using a block incompatible with an effect, it logs in the console twice instead of once. It doesn't really bug me however thought I'd mention it.
I wasn't able to reproduce this, and I always saw that they only hinted at it once
Not exactly sure how the extension works (I've never worked with post processing before) however it'd be nice if you could put the three percentage blocks in a dropdown to be more concise.
The reason I separated them at first was because there could be more than one parameter. The type of parameters may also be different.
Documentation would be nice since this extension is on the more complicated side.
write a docs maybe a better choose, but final version(now) are really simple to use..... OKAY i will try to make a example and  with docs.

New update fixes most of the issues I had, including the double console logging for some reason lol

now I need to hold myself back from looking for that certain reason.

Since clippingblending duck punching gl.bindFramebuffer will stop working when using custom framebuffer, no reason is known at the moment.
Use WebGLRenderingContext.prototype.bindFramebuffer to bypass the monkey patching it does to achieve the effect.
If Xeltalliv could explain specifically what this test is for, I think there might be a better way to do it. @Xeltalliv

Will this go well? This pull request is VERY controversial due to errors.

Since clippingblending duck punching gl.bindFramebuffer will stop working when using custom framebuffer, no reason is known at the moment. Use WebGLRenderingContext.prototype.bindFramebuffer to bypass the monkey patching it does to achieve the effect. If Xeltalliv could explain specifically what this test is for, I think there might be a better way to do it. @Xeltalliv

The check is there to only apply effects of clipping and blending when drawing directly onto canvas or pen layer. Pen layer has flipped Y. All other cases for which turbowarp may draw sprite (like touching blocks, or sprite dragging) don't need to be affected by those effects.
If you want to make our extensions compatible, you can just modify my extension instead of using complicated workarounds

Since clippingblending duck punching gl.bindFramebuffer will stop working when using custom framebuffer, no reason is known at the moment. Use WebGLRenderingContext.prototype.bindFramebuffer to bypass the monkey patching it does to achieve the effect. If Xeltalliv could explain specifically what this test is for, I think there might be a better way to do it. @Xeltalliv

The check is there to only apply effects of clipping and blending when drawing directly onto canvas or pen layer. Pen layer has flipped Y. All other cases for which turbowarp may draw sprite (like touching blocks, or sprite dragging) don't need to be affected by those effects.
If you want to make our extensions compatible, you can just modify my extension instead of using complicated workarounds

I can't modify your extension without your agree. but you agree now

Since clippingblending duck punching gl.bindFramebuffer will stop working when using custom framebuffer, no reason is known at the moment. Use WebGLRenderingContext.prototype.bindFramebuffer to bypass the monkey patching it does to achieve the effect. If Xeltalliv could explain specifically what this test is for, I think there might be a better way to do it. @Xeltalliv

The check is there to only apply effects of clipping and blending when drawing directly onto canvas or pen layer. Pen layer has flipped Y. All other cases for which turbowarp may draw sprite (like touching blocks, or sprite dragging) don't need to be affected by those effects.
If you want to make our extensions compatible, you can just modify my extension instead of using complicated workarounds

I can't modify your extension without your agree. but you agree now

Since clippingblending duck punching gl.bindFramebuffer will stop working when using custom framebuffer, no reason is known at the moment. Use WebGLRenderingContext.prototype.bindFramebuffer to bypass the monkey patching it does to achieve the effect. If Xeltalliv could explain specifically what this test is for, I think there might be a better way to do it. @Xeltalliv

The check is there to only apply effects of clipping and blending when drawing directly onto canvas or pen layer. Pen layer has flipped Y. All other cases for which turbowarp may draw sprite (like touching blocks, or sprite dragging) don't need to be affected by those effects.
If you want to make our extensions compatible, you can just modify my extension instead of using complicated workarounds

I can't modify your extension without your agree. but you agree now

For future reference, you are allowed to modify anyone's extension as you wish, regardless of permission (so long as you don't break anything)

I give up, not anymore, goodbye. thanks for the everyone testers.

this pull request is insane 💀

this pull request is insane 💀

this pull has really intense lore lol


run_lfqa.sh

This problem occurred when I was running the code, and I don’t know how to solve it for the time being.

Hi @Jason-27 , I think you need to provide those mandatory arguments to run that script. You can see example usage of this script at bash_scripts/run_lfqa.sh.


[RFC] MelonHandler Events

Events are a common pattern in F# and JavaScript.
I am pretty sure that none of the MelonMod overrides return a value so this system should work perfectly.
Delegate invocation (events) has the same speed as virtual invocation (interfaces), so there shouldn't be a performance hit, rather there would've been a performance increase, unfortunately this will not be gained due to backwards compatibility.
Additionally, multiple functions can subscribe to an event, which can result in cleaner looking code instead of a monolithic override function.
Another benefit is unsubscribing from events, instead of if (!enabled) return; being ran every single time the function is called, the function won't get called at all (faster).
Example:
public Mod() { // class constructor
  MelonHandler.OnUpdate += Update;
}

// this could be useful for a 0Reloader plugin if that ever happens
~Mod() { // finalizer/destructor
  MelonHandler.OnUpdate -= Update;
}

void Update() { ... }

I dont see the usage in this, why not just use a bool to handle when its called using ifs?

Performance and readability
This gets ran every time the method gets called, even if a mod is not overriding the virtual method:

First a VTable lookup to find the target method
Calling that target method
Comparing the variable
Branching to return

However with events none of that would have to happen

Yea, imma be implementing this

I already had this idea before. A goal I wanna achieve in the new ML rewrite is to use more events and make less external references. This will not only improve the structure, but will also alow plugin devs for a lot of freedom in general


Frontend: Temporarily disable stubbing unavailable decls

This feature should be disabled until rdar://119046537 is solved.

@swift-ci please smoke test

@swift-ci please smoke test linux


When switching to results tab after a society-by-name search the request is sent again

See #397 for details.

Done in #401