text:
Add Xiaomi Mi Smart Pedestal Fan support

Description:
Add support for the Xiaomi Mi Smart Pedestal Fan. Supported models are zhimi.fan.v2, zhimi.fan.v3, zhimi.fan.sa1 and zhimi.fan.za1

Power (on, off)
Speed levels (Level 1, Level 2, Level 3, Level 4)
Oscillate (on, off)
Oscillation angle (30, 60, 90, 120)
Natural mode (on, off)
Rotate by 5 degrees (left, right)
Child lock (on, off)
LED brightness (bright, dim, off)
Attributes

model
temperature (zhimi.fan.v2 and v3 only)
humidity (zhimi.fan.v2 and v3 only)
led_brightness
buzzer
child_lock
natural_level
oscillate
delay_off_countdown
speed
direct_speed
natural_speed
angle
use_time
ac_power
battery (zhimi.fan.v2 and v3 only)
battery_charge (zhimi.fan.v2 & v3 only)
button_pressed (zhimi.fan.v2 & v3 only)
led (zhimi.fan.v2 only)
battery_state (zhimi.fan.v2 only)

Related issue (if applicable): https://community.home-assistant.io/t/mi-smart-pedestal-fan/49998/
Pull request in home-assistant.io with documentation (if applicable): TBD.
Example entry for configuration.yaml (if applicable):
fan:
  - platform: xiaomi_miio
    name: Xiaomi Smart Fan
    host: 192.168.130.71
    token: b7c4a758c251955d2c24b1d9e41ce47d

Configuration variables:

host (Required): The IP of your fan.
token (Required): The API token of your fan.
name (Optional): The name of your fan.
model (Optional): The model of your device. Valid values are zhimi.fan.v2, zhimi.fan.v3, zhimi.fan.sa1 and zhimi.fan.za1. This setting can be used to bypass the device model detection and is recommended if your device isn't always available.

Services
Service fan.set_speed
Set the fan speed.

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific fan entity. Else targets all.

speed
no
Fan speed. Valid values are Level 1, Level 2, Level 3 and Level 4 as well as a value between 0 and 100.

Service fan.oscillate
Oscillates the fan.

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific fan entity. Else targets all.

oscillating
no
Flag to turn on/off oscillation. Valid values are True and False.

Service fan.set_direction
Rotates the fan 5 degrees to the left/right.

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific fan entity. Else targets all.

direction
no
Rotate the fan 5 degrees. Valid values are left and right.

Service fan.xiaomi_miio_set_oscillation_angle
Set the oscillation angle. Supported values are 30, 60, 90 and 120 degrees.

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific xiaomi miio entity. Else targets all.

angle
no
Angle in degrees. Valid values are 30, 60, 90 and 120.

Service fan.xiaomi_miio_set_natural_mode_on
Turn the natural mode on.

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific xiaomi miio entity. Else targets all.

Service fan.xiaomi_miio_set_natural_mode_off
Turn the natural mode off.

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific xiaomi miio entity. Else targets all.

Service fan.xiaomi_miio_set_buzzer_on
Turn the buzzer on.

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific xiaomi miio entity. Else targets all.

Service fan.xiaomi_miio_set_buzzer_off
Turn the buzzer off.

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific xiaomi miio entity. Else targets all.

Service fan.xiaomi_miio_set_child_lock_on
Turn the child lock on.

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific xiaomi miio entity. Else targets all.

Service fan.xiaomi_miio_set_child_lock_off
Turn the child lock off.

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific xiaomi miio entity. Else targets all.

Service fan.xiaomi_miio_set_led_brightness
Set the led brightness. Supported values are 0 (Bright), 1 (Dim), 2 (Off).

Service data attribute
Optional
Description

entity_id
yes
Only act on a specific xiaomi miio entity. Else targets all.

brightness
no
Brightness, between 0 and 2.

I would be happy about a review. I will add some docs as soon the device has a chance to be accepted.

This PR seems to have gone stale. Closing it. Re-open when you're ready to finish 👍

Alright. :-)

authors: balloob syssi


text:
WIP - Improve handling of audio groups

Description:
Improves handling of audio groups:

Dynamic groups (temporarily formed when a group is playing and a group member is casting something else) are no longer added to entity registry
Status of cast is read from any active group which the cast is a member of (#8531)
Status of group is read from any formed dynamic group

Future improvement (not in this PR):

In a similar way as a group's state is shown, forward controls to a playing group

Note: Needs new pychromecast with changes from balloob/pychromecast#283
Related issue (if applicable): fixes #8531
Checklist:

[x] The code change is tested and works locally.
[ ] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.

This could really benefit from having a test or two written that tests the whole multizone stack.

This could really benefit from having a test or two written that tests the whole multizone stack.

Sure, maybe something like this test, but changed to verify a cast picks up its status from groups its a member of, and a group picks up its status from dynamic group:
https://github.com/home-assistant/home-assistant/blob/5ad3e75a4d4cb7a4100d9d718c5dea9c55797735/tests/components/cast/test_media_player.py#L248-L249

Smartthings tests are good I think:
https://github.com/home-assistant/home-assistant/blob/71ecaa438583db5027a4344e2baf5fa55b70b6f7/tests/components/smartthings/test_switch.py

source: gharchive/pull-request

authors: MartinHjelmare balloob emontnemery

repo: home-assistant/home-assistant

license_type: permissive

license_source: github-api


text:
Homebridge v2.0 Breaking Updates

Please describe the problem:
I am not sure if you are aware but the next version of Homebridge (v2.0) comes with breaking changes for a lot of Homebridge plug-ins and it has been put on the developers to update their plug-ins.
For Plug-In Developers
I have tested this plug-in on the beta version and it will crash Homebridge.
Describe the solution you'd like:
Please have a read of the link above and see what changes are required for this plug-in.
Describe alternatives you've considered:
All users of this plug-in will have to remain on Homebridge v1.8.4.
Additional context:

Thank you for the heads up! May I know when is v2.0 expected to be released?

@afharo no worries :) also I am not sure what their timeline is sorry!

Adding logs just in case :)
[27/07/2024, 3:19:31 pm] [Roborock] Restarting Process...
[27/07/2024, 3:19:33 pm] [Roborock] Launched child bridge with PID 17443
[27/07/2024, 3:19:33 pm] Registering accessory 'homebridge-xiaomi-roborock-vacuum.XiaomiRoborockVacuum'
[27/07/2024, 3:19:33 pm] [Roborock] Loaded homebridge-xiaomi-roborock-vacuum v0.31.1 child bridge successfully
[27/07/2024, 3:19:33 pm] Loaded 0 cached accessories from cachedAccessories.0E8A2B113731.
TypeError: this.hap.Service.BatteryService is not a constructor
    at new BatteryInfo (/usr/local/lib/node_modules/homebridge-xiaomi-roborock-vacuum/src/services/battery_info.ts:11:20)
    at XiaomiRoborockVacuum.initializeServices (/usr/local/lib/node_modules/homebridge-xiaomi-roborock-vacuum/src/xiaomi_roborock_vacuum_accessory.ts:111:16)
    at new XiaomiRoborockVacuum (/usr/local/lib/node_modules/homebridge-xiaomi-roborock-vacuum/src/xiaomi_roborock_vacuum_accessory.ts:80:32)
    at ChildBridgeFork.startBridge (/usr/local/lib/node_modules/homebridge/src/childBridgeFork.ts:177:52)
[27/07/2024, 3:19:34 pm] [Roborock] Child bridge process ended
[27/07/2024, 3:19:34 pm] [Roborock] Process Ended. Code: 1, Signal: null

this.hap.Service.BatteryService -> this.hap.Service.Battery

WIP: https://github.com/homebridge-xiaomi-roborock-vacuum/homebridge-xiaomi-roborock-vacuum/pull/960

Sorry for reopening. If the fix is in the current release, can you mark as verified for 2.0?

@afharo all you will need to do is the following.

Oh! Sorry! I'll submit a new version  with the fixes today

Apologies for the delay: https://github.com/homebridge-xiaomi-roborock-vacuum/homebridge-xiaomi-roborock-vacuum/releases/tag/v0.32.1 should include the required changes.

source: gharchive/issue

license: MIT


text:
Fix for backup service including npm's cache, and therefore being too large to upload generating a zlib error

Fix for backups including npm's cache, and therefore being too large to upload and restore.
closes #1856
:recycle: Current situation
see #1856
:bulb: Proposed solution
add '.npm' folder to ignored files/folders list
:gear: Release Notes
Bug Fixes

Fix for backups including npm's cache, and therefore being too large to upload and restore

:heavy_plus_sign: Additional Information
If applicable, provide additional context in this section.
Testing
I was finally able to backup and restore successfully with this change.

Hi @sapireli thanks for the PR! Please could you

rebase against the existing beta branch
undo version change in the package (and package-lock) json files

@NorthernMan54 can you think of any risks of adding this as an ignored folder in the backup file?

Hi @sapireli thanks for sorting that out, we will get this added to the changelog.
Could you also revert the new line changes to the package/lock json files? just so there is simply one file change in the PR?
Then will get this added into beta branch asap 👍

Just made a new pull request, rebases and me don't get along very well. Thank you @bwp91

repo: homebridge/homebridge-config-ui-x


text:
Rename to rack-honeycomb for consistency with other honeycombio projects

If this looks ok, I'll also rename the repo and update the github ui description.

Ah — thanks for the reminder about the other docs, I'll update those.
Given the test-free state of this and version number, I'm ok with leaving the "example" wording for now unless anyone strongly objects. ¯_(ツ)_/¯

repo: honeycombio/honeycomb-rack


text:
Change launcher label

Hello,
When exiting kiosk mode, Android displays the launchers list. The kiosk mode plugin uses the label "Cordova kiosk app launcher" for the application. Is there a way to change it and put a custom label? Thank you.
Jimmy

For now you have to change "android:label" of activity in plugin.xml:
https://github.com/honza889/cordova-plugin-kiosk/blob/master/plugin.xml#L43
(I hope one day I find time and way to do it all configurable...but for now only this way)

Why not change it to @string/activity_name to use the activity name defined in config.xml.
That's what I've done and it works great.

Great idea, thanks :+1:

authors: SystemParadox honza889 llimz


text:
[FEATURE] support helm repo add

It will be great if you can add support for helm repo add for your helm charts by turning your GitHub Repo Into a Helm Chart Repo
more info can be found here:

https://helm.sh/docs/topics/chart_repository/#github-pages-example
https://helm.sh/docs/howto/chart_releaser_action/
https://github.com/helm/examples

Hi @feraio,
Thank you for your comment.
In my opinion, working with remote Helm chart repositories is significantly easier when you don't need to download the Helm chart file each time.
I typically work with ArgoCD to manage my Helm charts. ArgoCD natively supports remote Helm chart repositories, making application lifecycle management (such as upgrades) significantly easier  (link).
Here are some examples for many common services that support remote Helm charts repositories:

ingress-nginx: https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx
kube-prometheus-stack: https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack
OpenTelemetry: https://github.com/open-telemetry/opentelemetry-helm-charts/tree/main/charts/opentelemetry-collector

repo: hoophq/hoop


text:
HOPS-83 Cgroups hierarchy is created automatically

HOPS-83 Cgroups hierarchy is created automatically and NM permissions set

Can one of the admins verify this patch?

test report https://cloud17.sics.se/jenkins/view/robin/job/hops-robin/45/

repo: hopshadoop/hops

license_source: bigquery


text:
sound opt-in

It seems as though I was over-zealous in my enthusiasm for the play_sound operation; the bootstrap code interferes with strict CSPs and hijacks the audio context on a Mac.
This PR introduces a requirement that developers who wish to use the play_sound operation must place a data-unlock-audio attribute on their body tag. Otherwise, the operation will be a NOOP.
Fixes #111

Nice catch.

license: mit


text:
[SAC-106][SQL] Disable atlas.spark.column.enabled by default

What changes were proposed in this pull request?
This configuration is tested on the cluster for both values. This PR aims to change the default value to false.
How was this patch tested?
Pass the Travis CI.
This closes #106

Kafka fails again.
- Kafka source(s) to kafka sink - micro-batch query *** FAILED *** (5 seconds, 773 milliseconds)
  8 did not equal 6 (SparkExecutionPlanProcessorForStreamingQuerySuite.scala:159)

Since the kafka failure is irrelevant to this configuration change and this is tested locally, I merged this.

repo: hortonworks-spark/spark-atlas-connector


text:
CB-14656 Fix unbound service restart of existing stacks

The faulty unbound service restart (systemctl restart unbound) that was burned to 7.2.11 images caused issues on multiple stacks. Hotfix images were created containing the correct unbound service restart (pkill -u unbound -SIGHUP unbound), and the purpose of this commit is to fix the stacks created with the faulty images.
Implementation details:

Create a new salt state that fixes the command, that will be applied to new stacks: faulty_7_2_11_images_unbound_restart_patch
Introduce a new quartz job that runs for existing stacks: ExistingStackPatcherJob
Trigger a full salt update on the affected stacks to upload and apply the new salt file to existing stacks: UnboundRestartPatchService

Last flow failed check was incorrect, so I had to modify it. I have refactored the FlowRetryService to have a check if we have any restartable flows.
modified:   core/src/main/java/com/sequenceiq/cloudbreak/service/stackpatch/ExistingStackPatchService.java
modified:   core/src/test/java/com/sequenceiq/cloudbreak/service/stackpatch/ExistingStackPatchServiceTest.java
new file:   flow/src/main/java/com/sequenceiq/flow/domain/RetryableState.java
new file:   flow/src/main/java/com/sequenceiq/flow/domain/RetryableStateResponse.java
modified:   flow/src/main/java/com/sequenceiq/flow/service/FlowRetryService.java

repo: hortonworks/cloudbreak


text:
How to remove improve this page and disqus from posts

How do I remove the "improve this page" and "comments powered by disqus" from posts?

Just remove disqusShortname and gitRepo under params section from your config.yaml.

Thank you!

authors: dabymartinez hossainemruz

repo: hossainemruz/toha


text:
🛑 Branex is down

In 9c2db50, Branex (https://branex.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Branex is back up in 668e6a5 after 7 hours, 9 minutes.

repo: hostingnocteam/monitoring


text:
on max value when displayed until first refresh

Since the update to 0.1.37 the bars are always at max value until they are refreshed with a new value while displayed.
The numbers are shown correctly, but the bars are always completely full when just shown.
Using Dashboard of Node Red 1.1.3.

I need info/versions about the device and browser where dashboard runs.

PC - Windows 10 - Chrome / Edge
iPad - iOS14 - Safari
ah... and i double checked... it happens not after reloading the page, but every time I switched the tabs within the dash board.

You are correct. Issue fixed. v0.1.38 will be available shortlly.

authors: hotNipi lemny

repo: hotNipi/node-red-contrib-ui-level


text:
Implemented the code and fixed  When switching between tabs something…

… went wrong appears(#1x0k51t)
Related Issues

Closes #
Short Description and Why It's Useful

Screenshots of Visual Changes before/after (If There Are Any)

IMPORTANT NOTICE - Remember to update CHANGELOG.md with description of your change
Contribution and Currently Important Rules Acceptance

[ ] I read and followed contribution rules

Closing as done under https://github.com/hotwax/picking/pull/41

repo: hotwax/picking


text:
No back button when MainActivity is not a TurboActivity

In the current app I'm working on the setup differs from the demo setup. In the demo setup, the MainActivity uses the TurboActivity class. In my current setup, I have native authentication and therefore the MainActivity handles part of the authentication. When the user is authenticated, they are passed to the WebActivity. The WebActivity contains all needed and uses the WebFragment as in the demo.
However, when testing the app right now, the 'back' button has disappeared. I have searched the source code, but no luck. Is the TurboNavGraphBuilder required to use the MainActivity as registered activity? I have tried registering the WebActivity, but no luck.
Could someone help me out with this?

@jayohms Thank you! Managed to fixed it with the following code in my WebFragment
toolbarForNavigation()?.apply {
    inflateMenu(R.menu.web)
    setNavigationIcon(R.drawable.ic_round_arrow_back_24)
    setNavigationOnClickListener {
        navigateBack()
    }
}

Works like a charm for anyone interested 👍

Could you please provide an example of how to use multiple activities?
I followed the multiple activities doc, but after annotating them, I got an error:
Caused by: java.lang.IllegalArgumentException:
A start Fragment destination was not found for uri: turbo://activity/login

@TurboNavGraphDestination(uri = "turbo://activity/main")
class MainActivity : AppCompatActivity(), TurboActivity {

@TurboNavGraphDestination(uri = "turbo://activity/login")
class LoginActivity : AppCompatActivity(), TurboActivity {

{
  "patterns": [
    "^/sign_in$",
    "^/sign_up$"
  ],
  "properties": {
    "uri": "turbo://activity/login",
    "pull_to_refresh_enabled": false
  }
},

From what I understand, I need to create a res/navigation file, but I only want to hide the bottom navigation on my login pages (and display it when you're signed in). Not sure if this is the way to go, any help is greatly appreciated!

authors: annajeanine kyrylo

repo: hotwired/turbo-android


text:
Dock stays hidden once coming back from a break

Prerequisites

[Y] I'm using latest version: v1.2.0
[Y] I've checked Known issues
[Y] I've checked Open issues

Description
When screen restores after break, dock does not restore visibility until user action.
Operating system: macOS  10.15.6
Steps to Reproduce

Go on break
After returning from full screen break, Dock is not visible. Clicking on the screen or tapping any key will restore the dock visibility

Expected behavior: After returning from break, dock should restore its visibility settings
Actual behavior: Dock stays hidden until user action
Reproduces how often: 100% of the time
Additional Information
This only seems to have started happening in the jump from 1.1.0 to 1.2.0, I think.

Hi @setek , are you sure you're on 1.2?
If I understand your issue correctly, there was this issue in 1.1 (#690) but it was fixed in 1.2

Hi! Yes that's right, I went to Preferences > About and it says 1.2.0

Is this then the same issue as described at #690 or something else?

Hi, no this is something else, I don't get steps 5 and 6 happening with my issue.
What happens is, I come back from break, dock is not visible, active window says firefox, pressing keyboard renders the boop (you can't do anything sound) but if i tap touchpad to make firefox actually active, or i command tab to make firefox actually active, then the dock is visible again, and the real active window is firefox again.

Thanks @setek , I'll try to find a time to reproduce, I am bit overwhelmed these days ;/

Interestning, can't reproduce this, all seems to work fine here. Do you something special with dock? I am not macOS user so all my settings are defaults?

Nope, my dock is pretty standard. Always visible (not auto-hide) with magnification on, anchored to the bottom, pretty much usual settings 😄

Out of ideas, maybe try removing Stretchly and installing again?
It is probably related somehow to this https://github.com/electron/electron/issues/25427 in some way I can't reproduce.
There is PR to fix but no activity lately as it happens with Electron ;/ https://github.com/electron/electron/pull/25470

Ahh. I tried deleting and reinstalling, but it still happens. I don't suppose you have the previous releases up somewhere for download, do you? I don't think it happened on 1.1.0, so maybe I'll revert.

Yeah, here on Github you can find all previous version :)
Anyways, that's the pain of working with electron, it brings new issues almost with every new version ;/

Oh. In the end, I'm having issues with 1.0.0 too, still hides the dock. Sigh

That's rather strange, not sure what could be the issue here. On mac I remember there being some app that could remove all files for app, might be worth doing that with Stretchly - only idea I have is that somehow broken electron version stays there somewhere between versions 1, 1.1 and 1.2; considering that this issue seems to be in 1.1 only for other people.

Okay I've gone into ~/Library/Application Support/ and have deleted the Stretchly directory, then uninstalled and reinstalled Stretchly 1.2.0. Have confirmed I lost my preferences, but when I skipped ahead to next break, the dock came back! Will continue to monitor throughout the day, but hopefully this is fine now!

Welp, it seemed to be fine all day, with many breaks.
Once I turned off my computer for the night, then back on again the next morning, it does the dock hiding thing again 😩

Figured it out! With the System Preferences > Users and Groups > Login Items > Stretchly
It was set to start on Login, but also set to Hide.
If I uncheck the Hide portion, the dock comes back when Stretchly comes back from a break.

Ou wow, that's so strange. Does it shows Stretchly icon in dock? In code, I am hiding it after start of the app and I wonder if that's somehow related.

Nope, no stretchly icon in dock :) and for the past few days, super stable. Do you want me to make a PR to this, just adding something to the readme or something, if you're experiencing issues like mine, to make sure the settings in startup on login?

Yes, that would be great. I think the best place is "Known Issues" in readme :)

Thanks for all your discussion. Looks like it happens again on OS 13.4. And I found there was no "hide" checkbox in login items. Any idea about it?

@haven2world what Stretchly version are you on?

@hovancik 1.14.1.

authors: haven2world hovancik roubaobaozi setek

repo: hovancik/stretchly


text:
Ability to request different set of auth scopes in Slack

The use case is that scopes required for the very first user (the user who installs the app into their Slack team), can be more than for the subsequent users. Subsequent users should be able to auth for only the permissions at a user level.
For example, the first user could have team level permissions like bot and commands. Subsequent users wouldn't need to auth for those and see them on the Slack OAuth permissions view.

You can achieve this by creating your own oauth endpoints.
I'd suggest taking a look at the botkit-starter-slack project, which exposes its own oauth endpoint.

authors: benbrown sundeepgupta

repo: howdyai/botkit


text:
Included next call middleware. Fixes #2007

Fixes issue #2007 allowing adding middlewares to /api/messages endpoint following the behavior of a expressjs middlewares

Instead of this, you should use the webserver_middlewares configuration parameter that lets you bind additional middlewares before the endpoint handlers are added.

authors: GaryTowers benbrown


text:
[FEATURE]: Will you open-source the data used for Colossal-LLaMA-2?

Describe the feature
Thanks for the wonderful work of Colossal-LLaMA-2.
Will you open-source the data used for Colossal-LLaMA-2 ?(the exact dataset, not the data preprocessing tool)

Thanks for your interest.
Currently open-sourcing the data for Colossal-LLaMA-2 is not on our agenda yet, but we are discussing this so we might open-source it in the future.
But I can confirm that all the data are coming from the well-known public dataset and we did not use any testing data from the evaluation benchmarks.
We will actively maintain this project and hope it will be helpful for the open-source community. Thanks.

repo: hpcaitech/ColossalAI


text:
About the inference performance

Your work surely achieved a high performance in training of AlphaFold2.  i am wondering about the accuracy of your inference results. Have you made a benchmark of this part with AlphaFold2? Or can you publish your models for us to make a use of.

Currently FastFold focuses on providing a high-performance parallelizable Evoformer implementation to accelerate the training and inference of AlphaFold models. If inference is needed now, you still need to use the parameter weights officially released by AlphaFold, you can refer to OpenFold.
We will try to add full inference and training capabilities to FastFold in the next few months.

Olay, Thanks so much.

authors: Shenggan nnnwyn

repo: hpcaitech/FastFold


text:
Stacked sa softmax

1-The implementation of SoftMax Classifier:
Classify.SoftMax
test fucntions:
SoftMax
SoftMax_CancerDataset
SofMax_MNISTDataset
2-The Implementation of NeuralNetwork
NeuralNetworks.ecl
Classify.NeuralNetworksClassifier
Test Fucntion:
NeuralNetworks_test
NeuralNetworksClassifier_CancerData_test
NeuralNetworksClassifier_MNIST_test
NeuralNetworksClassifier_test
3-The implementaion of SparseAutoencoder
DeepLearning.Sparse_Autoencoder
Test Functions:
SparseAutoencoder_test
SparseAutoencoder_MNIST_test
SparseAutoencoder_Cancerdataset_test
4-The implementation of Stack of Sparse Autoencoders
DeepLearning.StackedSA
Test Function:
Stacked_SparseAutoencoder_test
Stacked_SparseAutoencoder_MNIST_test

Due to merge conflict I closed this pull request

repo: hpcc-systems/ecl-ml


text:
Suggested modifications on PR implemented; role_test.py implemented.

Sugggestions on PR implemented; role_test.py implemented & tested.
Signed-off-by: Harishankar S hari.nair634@gmail.com

gitpod /workspace/hpecp-python-library $ cat > ~/.hpecp.conf <<EOF

[default]
api_host = 127.0.0.1
api_port = 8080
use_ssl = False
verify_ssl = False
warn_ssl = False
username = admin
password = admin123
EOF

gitpod /workspace/hpecp-python-library $ hpecp role get /api/v1/role/1
_links:
all_roles:
href: /api/v1/role
self:
href: /api/v1/role/1
label:
description: Role for Site Admin
name: Site Admin
gitpod /workspace/hpecp-python-library $ hpecp role get /api/v1/role/99
Traceback (most recent call last):
File "/workspace/hpecp-python-library/hpecp/client.py", line 491, in _request
response.raise_for_status()
File "/workspace/.pip-modules/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://127.0.0.1:8080/api/v1/role/99

Hi @HurryNair  - good job with the test!  You could increase the coverage percentage quite a bit by running the command from here:
coverage erase && coverage run --source hpecp setup.py test && coverage report -m

This will give you the lines that are not covered by tests.  For example, the Role.repl() method

Thank you :")
Will work on code coverage for this.

authors: HurryNair snowch


text:
[wip] try to use more built-in primitives if possible

this is a experiment benchmarks will follow

this cant be fixed short term


text:
Fix

Fix

Было бы круто хотя бы над заголовком коммита подумать дольше двух секунд

Комит открой, нытик

authors: Akiiino Tehada

repo: hse-ami/lectures


text:
Chinese Translation update

update of README_ch.md

Thank you for the update! 😄

authors: PolluxAvenger hslatman

repo: hslatman/awesome-threat-intelligence


text:
Host: Cancel Game

Currently, there is no way to cancel a game. This should be possible at any point after Open.

done

repo: hto-projects/friendivia


text:
optimist using vulnerable version of minimist

Low:  Prototype Pollution
│ Package       │ minimist
│ Patched in    │ >=0.2.1 <1.0.0 || >=1.2.3
│ Dependency of │ http-server [dev]
│ Path          │ http-server > optimist > minimist
│ More info     │ https://npmjs.com/advisories/1179

Duplicate of #614

authors: marizmelo thornjad

repo: http-party/http-server


text:
httprunner 3.0.0的脚本 在用 3.0.5运行时 报'list' object has no attribute 'setdefault' 错误

问题描述
httprunner 3.0.0的脚本 在用 3.0.5运行时 报'list' object has no attribute 'setdefault' 错误
版本信息
httprunner 3.0.5
python 3.7.4
问题代码
下面这个代码在加载之前的 用例文件时 返回的是list
def load_test_file(test_file: Text) -> Dict:
    """load testcase/testsuite file content"""
    if not os.path.isfile(test_file):
        raise exceptions.FileNotFound(f"test file not exists: {test_file}")

    file_suffix = os.path.splitext(test_file)[1].lower()
    if file_suffix == ".json":
        test_file_content = _load_json_file(test_file)
    elif file_suffix in [".yaml", ".yml"]:
        test_file_content = _load_yaml_file(test_file)
    else:
        # '' or other suffix
        raise exceptions.FileFormatError(
            f"testcase/testsuite file should be YAML/JSON format, invalid format file: {test_file}"
        )

    return test_file_content

运行命令 && 堆栈信息
Connected to pydev debugger (build 192.6262.63)
Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 2060, in
main()
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 2054, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1405, in run
return self._exec(is_module, entry_point_fn, module_name, file, globals, locals)
File "/Applications/PyCharm.app/Contents/helpers/pydev/pydevd.py", line 1412, in _exec
pydev_imports.execfile(file, globals, locals)  # execute the script
File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/panzhipiao/workspace/testtools/debug.py", line 6, in
runner.run_path("testcases/03_订单/00_确认收货入账/现货-网银付款-确认收货-评价.yaml")
File "/Users/panzhipiao/workspace/httprunner/httprunner/runner.py", line 224, in run_path
testcase_obj = load_testcase_file(path)
File "/Users/panzhipiao/workspace/httprunner/httprunner/loader.py", line 93, in load_testcase_file
testcase_content.setdefault("config", {})["path"] = testcase_file
AttributeError: 'list' object has no attribute 'setdefault'

@StevenPZP 感觉是你的用例格式的问题，你的用例内容贴出来看下？

我也遇到了，你怎么解决的

@dearestu 确定是个 bug，已修复，升级到最新版本即可。

authors: StevenPZP dearestu debugtalk

repo: httprunner/httprunner


text:
Emails will not forward to destination

I have a pretty simple setup here, and I'm just really stuck trying to figure out what to do.
My docker-compose file:
version: '3.8'
services:
  smf:
    container_name: mail-forwarder
    image: zixia/simple-mail-forwarder:1.4
    restart: always
    ports:
      - "25:25"
    environment:
      - SMF_CONFIG=bob@mynamemail.net:boblmyname@outlook.com
    volumes:
      - /opt/smf/dkim:/var/db/dkim
      - /etc/letsencrypt/live/mynamemail.net/fullchain.pem:/etc/postfix/cert/smtp.ec.cert
      - /etc/letsencrypt/live/mynamemail.net/privkey.pem:/etc/postfix/cert/smtp.ec.key

The output on startup:
mail-forwarder  | v1.4.7
mail-forwarder  | Source#c2fe07d Wed Oct 13 12:11:40 2021 +0000 * master
mail-forwarder  | Built on Wed Oct 13 12:11:55 UTC 2021 by buildkitsandbox
mail-forwarder  |
mail-forwarder  | >> ENV SMF_DOMAIN not set.
mail-forwarder  | >> ENV SMF_CONFIG found. value:[bob@mynamemail.net:boblmyname@outlook.com]
mail-forwarder  | >> ARGV arguments found. value:[start]
mail-forwarder  | >> SMF_CONFIG found in ENV. use this settings for forward maps.
mail-forwarder  | >> Setting password[ag6ekeuw] for user bob@mynamemail.net ...
mail-forwarder  | >> Set hostname to mynamemail.net
mail-forwarder  | Postfix logging configuration
mail-forwarder  | Postfix will use the default logging configuration: /dev/stdout
mail-forwarder  | Inserting mynamemail.net data to /etc/opendkim/{KeyTable, SigningTable, TrustedHosts}
mail-forwarder  | OpenDKIM: this TXT record for mynamemail.net should be present:
mail-forwarder  | default._domainkey    IN      TXT     ( "v=DKIM1; k=rsa; "
mail-forwarder  |         "p=MIIBIjAabcdehkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAr2kLenlhlkkS1g/YsnE+zhJ/MqnmpkbzNGBaey3zIf3Bw2QOGbGNYqy1p6T56tHKf2Ein1LwJwNxL5uUjdMMbD9FzXXuPR6n5ZPoE0kNNmTtg45njRq7kTVpAgdoa8r8WpCa4ssZR5bp82L0nsdD7hSo75OK+5TZlhix5s6Y0qe/4pw3J4I/T/7fkhL3GpZCxhYNAY/XtT06iR"
mail-forwarder  |         "tL/96E6q8V0h8abcdeUPyGhtaA1JaP6pkWBDd1q2jzP7/MixOOW14SDmEQPrRR4GjxxIKPZmdFoppDDNDizRFx9/D7NRKwBiKaqsO4jG9oy0c+AFiH8KSn4BjtZwmHEJhFnTvV5wIDAQAB" )  ; ----- DKIM key default for mynamemail.net
mail-forwarder  | Configuring DKIM key settings in /etc/opendkim/opendkim.conf
mail-forwarder  | Postfix main.cf custom entries from SMF_POSTFIXMAIN_
mail-forwarder  | Postfix master.cf custom entries from SMF_POSTFIXMASTER_
mail-forwarder  | >> Start self-testing...
mail-forwarder  | 1..24
mail-forwarder  | ok 1 SMF_CONFIG exist
mail-forwarder  | ok 2 SMF_DOMAIN exist
mail-forwarder  | ok 3 virtual maping source is set
mail-forwarder  | ok 4 virtual maping data is set
mail-forwarder  | ok 5 virtual maping db is set
mail-forwarder  | ok 6 system hostname FQDN resolvable
mail-forwarder  | ok 7 postfix myhostname FQDN & resolvable
mail-forwarder  | ok 8 check other hostname setting
mail-forwarder  | ok 9 confirm postfix is running
mail-forwarder  | ok 10 confirm port 25 is open
mail-forwarder  | ok 11 crond is running # skip skip this for 0.3.0 -> 0.4.0
mail-forwarder  | ok 12 ESMTP STATTLS supported
mail-forwarder  | ok 13 ESMTP AUTH supported
mail-forwarder  | ok 14 ESMTP STARTTLS connect ok
mail-forwarder  | ok 15 create user testi@testo.com by password test
mail-forwarder  | ok 16 ESMTP AUTH by testi@testo.com/test
mail-forwarder  | ok 17 ESMTP TLS AUTH by testi@testo.com/test
mail-forwarder  | ok 18 deleting test user testi@testo.com
mail-forwarder  | ok 19 test DKIM keys
mail-forwarder  | ok 20 test custom main.cf entries
mail-forwarder  | ok 21 test custom master.cf entries
mail-forwarder  | ok 22 test default postfix logging configuration
mail-forwarder  | ok 23 test custom postfix logging configuration with an error
mail-forwarder  | ok 24 test custom postfix logging configuration
mail-forwarder  | >> Test PASSED
mail-forwarder  |
mail-forwarder  |
mail-forwarder  | >> CONGRATULATIONS! System is UP and You are SET!
mail-forwarder  | >> Powered by SMF - a Simple Mail Forwarder
mail-forwarder  | >> View in DockerHub: https://hub.docker.com/r/zixia/simple-mail-forwarder
mail-forwarder  |
mail-forwarder  |
mail-forwarder  | >> Init System for Servicing...
mail-forwarder  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
mail-forwarder  | [s6-init] ensuring user provided files have correct perms...exited 0.
mail-forwarder  | [fix-attrs.d] applying ownership & permissions fixes...
mail-forwarder  | [fix-attrs.d] done.
mail-forwarder  | [cont-init.d] executing container initialization scripts...
mail-forwarder  | [cont-init.d] done.
mail-forwarder  | [services.d] starting services
mail-forwarder  | [2022-09-10T18:37:19.019250] WARNING: Configuration file format is too old, syslog-ng is running in compatibility mode. Please update it to use the syslog-ng 3.27 format at your time of convenience. To upgrade the configuration, please review the warnings about incompatible changes printed by syslog-ng, and once completed change the @version header at the top of the configuration file; config-version='3.9'
mail-forwarder  | Sep 10 18:37:19 6399c76cc1a3 syslog-ng[939]: syslog-ng starting up; version='3.27.1'
mail-forwarder  | Sep 10 18:37:19 6399c76cc1a3 syslog-ng[939]: WARNING: log-fifo-size() works differently starting with syslog-ng 3.22 to avoid dropping flow-controlled messages when log-fifo-size() is misconfigured. From now on, log-fifo-size() only affects messages that are not flow-controlled. (Flow-controlled log paths have the flags(flow-control) option set.) To enable the new behaviour, update the @version string in your configuration and consider lowering the value of log-fifo-size().;
mail-forwarder  | [services.d] done.

I'm trying to use Gmail to send mail to my custom domain that forwards to either outlook.com or yahoo.com (I have tried both)
I see this in my postfix logs:
Sep 10 18:40:09 mynamemail postfix/smtpd[1047]: connect from mail-lj1-f172.google.com[209.85.208.172]
Sep 10 18:40:10 mynamemail postfix/smtpd[1047]: 1F93FA776D5: client=mail-lj1-f172.google.com[209.85.208.172]
Sep 10 18:40:10 mynamemail postfix/cleanup[1054]: 1F93FA776D5: message-id=<CAPH=1FgB1w12RmF5eDmAU2uLY5c34oqQqomoFTVBkQ8=svUS7w@mail.gmail.com>
Sep 10 18:40:10 mynamemail postfix/qmgr[1038]: 1F93FA776D5: from=<bobmyname@gmail.com>, size=2846, nrcpt=1 (queue active)
Sep 10 18:40:40 mynamemail postfix/smtp[1057]: connect to outlook-com.olc.protection.outlook.com[104.47.4.33]:25: Operation timed out
Sep 10 18:40:43 mynamemail postfix/smtpd[1047]: disconnect from mail-lj1-f172.google.com[209.85.208.172] ehlo=2 starttls=1 mail=1 rcpt=1 bdat=1 quit=1 commands=7

I see the same "Operation timed out" error for both outlook and yahoo. Any idea what I'm doing wrong?

I'm running on an EC2 instance. I've check ingress and egress. I can shell into the container and "curl google.com" and such, verifying that I have egress. Everything appears to work on https://www.checktls.com/
It just can't forward out to outlook or yahoo

same here.

I discovered that AWS does not allow any outbound traffic on port 25 (i.e. you can't send email) from EC2 or Lambda unless you ask their permission and give them a valid reason.

I just noticed that too. I put the service down to Hetzner

authors: jbcbdse wwwDESIGN-basti

repo: huan/docker-simple-mail-forwarder


text:
There is no map.glb in benchmark/scenarios folder

When I run python run.py scenarios/intersections/4lane -f agents/maddpg/baseline-lane-control.yaml, I got the following error.
OSError: Could not load model file(s): ['/path/to/SMARTS/benchmark/scenarios/intersections/4lane/map.glb']

I suspect this error is due to the fact that the map.glb does not exist in the following folder.
https://github.com/huawei-noah/SMARTS/tree/master/benchmark/scenarios/intersections/4lane

Hi @rsuwa, You'll need to build the scenario before using it.
You can use scl scenario build-all ./scenarios/ to build all scenarios under the scenarios/ directory. Or if you'd like to just build a single scenario:
scl scenario build ./scenarios/intersections/4lane

Since I have already run make test, I should have built the scenario already.
Just to be sure, I run scl scenario build-all ./scenarios again and same error occurs.

No problem :+1:

authors: davidrusu rsuwa

repo: huawei-noah/SMARTS


text:
Make envision server can be killed by terminal signal.

A tiny change. I think it is resonable.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.kls seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@valaxkong Sorrry for the late response and thank you for the contribution, this is a positive change.

authors: CLAassistant Gamenot valaxkong


text:
如何使用obsclient忽略ssl证书校验？

我们去对接了某个hcso的私有云的对象存储，但是该私有云客户没有买证书，导致页面上请求报错如下：
HEAD https://sf9221828546444581c6217994faeaec.obs.region.xxxx.com/?apiversion net::ERR_CERT_AUTHORITY_INVALID
请问我们如何在调用过程中忽略ssl证书校验呢。

浏览器在发送HTTPS请求的时候会检查服务器提供的证书，检查证书是否由受操作系统/浏览器信任的证书签发机构签发。您当前的HCSO局点没有提供这种正式证书。
建议咨询对应环境的局点管理员/交付人员，将给OBS签发证书的自签名证书机构的根证书导入到用户PC中，可以永久解决这个问题。

authors: NoAccident ncistyang


text:
New acquisition instrument vendor and acquisition instrument models

Select the target metadata schema name (can be multiple), or choose 'Other' if not listed.
Visium (no probes), Visium (with probes), Histology, CyCIF, Other
If 'Other' is selected, please enter the schema name below.
No response
Describe the change request (use a numbered list if many).
Add new acquisition instrument vendor = 'GE Healthcare"
Add new acquisition instrument models:

Visium CytAssist - Visium (w/probes)and Visium (w/o probes): https://www.10xgenomics.com/instruments/visium-cytassist
IN Cell Analyzer 2200 - Histology, CyCIF: https://scicrunch.org/resolver/RRID:SCR_023616
EasyScan One - Histology: https://www.motic.com/As_MoticEasyScan_One1/product_909.html

@HerrLufty You also chose "Other" for the target metadata schema. Do you know the specific name of it?

I edited it afterwards and should've cleared that
From: Josef Hardi @.>
Sent: Monday, March 18, 2024 1:05 PM
To: hubmapconsortium/dataset-metadata-spreadsheet @.>
Cc: Morgan, Richard Steven @.>; Mention @.>
Subject: Re: [hubmapconsortium/dataset-metadata-spreadsheet] New acquisition instrument vendor and acquisition instrument models (Issue #15)
@HerrLuftyhttps://github.com/HerrLufty You also chose "Other" for the target metadata schema. Do you know the specific name of it?

Reply to this email directly, view it on GitHubhttps://github.com/hubmapconsortium/dataset-metadata-spreadsheet/issues/15#issuecomment-2004464617, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEIO5BN5VFPJQR6EKRT437DYY4NDDAVCNFSM6AAAAABE3KNBX2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBUGQ3DINRRG4.
You are receiving this because you were mentioned.Message ID: @.@.>>

The "EasyScan One" model was already registered before but it is called "MoticEasyScan One."

OK, let's use that name then
From: Josef Hardi @.>
Sent: Monday, March 18, 2024 1:13 PM
To: hubmapconsortium/dataset-metadata-spreadsheet @.>
Cc: Morgan, Richard Steven @.>; Mention @.>
Subject: Re: [hubmapconsortium/dataset-metadata-spreadsheet] New acquisition instrument vendor and acquisition instrument models (Issue #15)
The "EasyScan One" model was already registered before but it is called "MoticEasyScan One."

Reply to this email directly, view it on GitHubhttps://github.com/hubmapconsortium/dataset-metadata-spreadsheet/issues/15#issuecomment-2004492098, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEIO5BMVNYM35A3PYWQURTTYY4OC7AVCNFSM6AAAAABE3KNBX2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBUGQ4TEMBZHA.
You are receiving this because you were mentioned.Message ID: @.@.>>

Visium dataset doesn't have acquisition instrument vendor and model

authors: HerrLufty johardi


text:
使用沉浸式，高亮地方会下降

使用沉浸式.fitsSystemWindows(true)，会让高亮下降一个状态栏的高度，请问怎么动态可以调整高度？

setAnchor设置你页面的根布局

何时调用setAnchor，没有在链式调用中找到该方法

已通过文档中改好，谢谢

authors: FynnJason huburt-Hu

repo: huburt-Hu/NewbieGuide


text:
Undefined mixin 'sprite-size' / 'sprite-image-retina' with grunt

Hey,
I love this tool. But 2 functions do not work for me.
But 2 important functions do not work:
sprite-image-retina and sprite-size - they are not generated inside the sprite.scss
I tried to import the utilities.scss from compass and _sass-list-maps.scss from github to add some functions the mustache template need, but it does not work.. can you please tell me what to do?
Thanks in advance
best..
Steve

Hi, Steve,
Can you share your code with me, so I can take a look what's wrong with it? I only need *.scss files and spritesmith-retina-mixins.template.mustache (if you made changes in it).

Wuhu..thanks for your fast response..I think i got it.
It seems the mustache template was not set on the gruntfile. I removed all the stuff I recently added. And tried to generate all the functions and it works!
Furthermore I moved the Entry 'cssTemplate' upper 'destCss' and it works fine.
Great tool, absolutly great..

You're welcome :)

authors: hudochenkov steve-buri


text:
🛑 VGMdb API is down

In 1717501, VGMdb API (https://vgmdb.info) was down:

HTTP code: 502
Response time: 201 ms

Resolved: VGMdb API is back up in f51cd2e after 6 minutes.

repo: hufman/upptime


text:
Fix import of LrScheduler

As mentioned in #878 the current version of Accelerate breaks with the latest Nvidia PyTorch docker image (22.12) which doesn't have the change of class names for LrScheduler. Therefore, I switched the test to be replaced with a try except.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

authors: HuggingFaceDocBuilderDev sgugger

repo: huggingface/accelerate


text:
maxrregcount argument to nvcc

Seems on low-end device, (my laptop is GT MX250) if this parameter is not passed, some compiled kernels won't run because of the register count limit. I'm not sure how to calculate a proper value though...

Have you tried overriding COMPUTE_CAP  to modify the gpu detected ?
Maybe it should be a bug reported to nvcc itself no ? (As long as we compile on the correct compute_cap, it should work on all the GPUs, especially if it' s the host GPU, no ?
We might be missing some auto detection in build.rs too, but I' m not aware of anything.

repo: huggingface/candle


text:
multiprocessing in dataset map "can only test a child process"

Using a dataset with a single 'text' field and a fast tokenizer in a jupyter notebook.
def tokenizer_fn(example):
    return tokenizer.batch_encode_plus(example['text'])

ds_tokenized = text_dataset.map(tokenizer_fn, batched=True, num_proc=6, remove_columns=['text'])

---------------------------------------------------------------------------
RemoteTraceback                           Traceback (most recent call last)
RemoteTraceback:
"""
Traceback (most recent call last):
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/multiprocess/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
    out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/fingerprint.py", line 163, in wrapper
    out = func(self, *args, **kwargs)
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1510, in _map_single
    for i in pbar:
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 228, in __iter__
    for obj in super(tqdm_notebook, self).__iter__(*args, **kwargs):
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1186, in __iter__
    self.close()
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/notebook.py", line 251, in close
    super(tqdm_notebook, self).close(*args, **kwargs)
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1291, in close
    fp_write('')
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/tqdm/std.py", line 1288, in fp_write
    self.fp.write(_unicode(s))
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 91, in new_write
    cb(name, data)
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 598, in _console_callback
    self._backend.interface.publish_output(name, data)
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 146, in publish_output
    self._publish_output(o)
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 151, in _publish_output
    self._publish(rec)
  File "/home/jovyan/share/users/tlaurent/invitae-bert/ve/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 431, in _publish
    if self._process and not self._process.is_alive():
  File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
    assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
"""

It looks like an issue with wandb/tqdm here.
We're using the multiprocess library instead of the multiprocessing builtin python package to support various types of mapping functions. Maybe there's some sort of incompatibility.
Could you make a minimal script to reproduce or a google colab ?

hi facing the same issue here -
`AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/lib/python3.6/logging/init.py", line 996, in emit
stream.write(msg)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "", line 20, in getitem
return_token_type_ids=True
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2405, in encode_plus
**kwargs,
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2125, in _get_padding_truncation_strategies
"Truncation was not explicitly activated but max_length is provided a specific value, "
File "/usr/lib/python3.6/logging/init.py", line 1320, in warning
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python3.6/logging/init.py", line 1444, in _log
self.handle(record)
File "/usr/lib/python3.6/logging/init.py", line 1454, in handle
self.callHandlers(record)
File "/usr/lib/python3.6/logging/init.py", line 1516, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.6/logging/init.py", line 865, in handle
self.emit(record)
File "/usr/lib/python3.6/logging/init.py", line 1000, in emit
self.handleError(record)
File "/usr/lib/python3.6/logging/init.py", line 917, in handleError
sys.stderr.write('--- Logging error ---\n')
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process`

hi facing the same issue here -
`AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/lib/python3.6/logging/init.py", line 996, in emit
stream.write(msg)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "", line 20, in getitem
return_token_type_ids=True
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2405, in encode_plus
**kwargs,
File "/usr/local/lib/python3.6/dist-packages/transformers/tokenization_utils_base.py", line 2125, in _get_padding_truncation_strategies
"Truncation was not explicitly activated but max_length is provided a specific value, "
File "/usr/lib/python3.6/logging/init.py", line 1320, in warning
self._log(WARNING, msg, args, **kwargs)
File "/usr/lib/python3.6/logging/init.py", line 1444, in _log
self.handle(record)
File "/usr/lib/python3.6/logging/init.py", line 1454, in handle
self.callHandlers(record)
File "/usr/lib/python3.6/logging/init.py", line 1516, in callHandlers
hdlr.handle(record)
File "/usr/lib/python3.6/logging/init.py", line 865, in handle
self.emit(record)
File "/usr/lib/python3.6/logging/init.py", line 1000, in emit
self.handleError(record)
File "/usr/lib/python3.6/logging/init.py", line 917, in handleError
sys.stderr.write('--- Logging error ---\n')
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
cb(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
self._backend.interface.publish_output(name, data)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
self._publish_output(o)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
self._publish(rec)
File "/usr/local/lib/python3.6/dist-packages/wandb/sdk/interface/interface.py", line 456, in _publish
if self._process and not self._process.is_alive():
File "/usr/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process`

It looks like this warning :
"Truncation was not explicitly activated but max_length is provided a specific value, "
is not handled well by wandb.
The error occurs when calling the tokenizer.
Maybe you can try to specify truncation=True when calling the tokenizer to remove the warning ?
Otherwise I don't know why wandb would fail on a warning. Maybe one of its logging handlers have some issues with the logging of tokenizers. Maybe @n1t0 knows more about this ?

It looks like this warning :
"Truncation was not explicitly activated but max_length is provided a specific value, "
is not handled well by wandb.
The error occurs when calling the tokenizer.
Maybe you can try to specify truncation=True when calling the tokenizer to remove the warning ?
Otherwise I don't know why wandb would fail on a warning. Maybe one of its logging handlers have some issues with the logging of tokenizers. Maybe @n1t0 knows more about this ?

I'm having a similar issue but when I try to do multiprocessing with the DataLoader
Code to reproduce:
from datasets import load_dataset

book_corpus = load_dataset('bookcorpus', 'plain_text', cache_dir='/home/ad/Desktop/bookcorpus', split='train[:1%]')
book_corpus = book_corpus.map(encode, batched=True, num_proc=20, load_from_cache_file=True, batch_size=5000)
book_corpus.set_format(type='torch', columns=['text', "input_ids", "attention_mask", "token_type_ids"])

from transformers import DataCollatorForWholeWordMask
from transformers import Trainer, TrainingArguments

data_collator = DataCollatorForWholeWordMask(
    tokenizer=tokenizer, mlm=True, mlm_probability=0.15)

training_args = TrainingArguments(
    output_dir="./mobile_linear_att_8L_128_128_03layerdrop_shared",
    overwrite_output_dir=True,
    num_train_epochs=1,
    per_device_train_batch_size=64,
    save_steps=50,
    save_total_limit=2,
    logging_first_step=True,
    warmup_steps=100,
    logging_steps=50,
    gradient_accumulation_steps=1,
    fp16=True,
    **dataloader_num_workers=10**,
)

trainer = Trainer(
    model=model,
    args=training_args,
    data_collator=data_collator,
    train_dataset=book_corpus,
    tokenizer=tokenizer)

trainer.train()

---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<timed eval> in <module>

~/anaconda3/envs/tfm/lib/python3.6/site-packages/transformers/trainer.py in train(self, model_path, trial)
    869             self.control = self.callback_handler.on_epoch_begin(self.args, self.state, self.control)
    870
--> 871             for step, inputs in enumerate(epoch_iterator):
    872
    873                 # Skip past any already trained steps if resuming training

~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in __next__(self)
    433         if self._sampler_iter is None:
    434             self._reset()
--> 435         data = self._next_data()
    436         self._num_yielded += 1
    437         if self._dataset_kind == _DatasetKind.Iterable and \

~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _next_data(self)
   1083             else:
   1084                 del self._task_info[idx]
-> 1085                 return self._process_data(data)
   1086
   1087     def _try_put_index(self):

~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/dataloader.py in _process_data(self, data)
   1109         self._try_put_index()
   1110         if isinstance(data, ExceptionWrapper):
-> 1111             data.reraise()
   1112         return data
   1113

~/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/_utils.py in reraise(self)
    426             # have message field
    427             raise self.exc_type(message=msg)
--> 428         raise self.exc_type(msg)
    429
    430

AssertionError: Caught AssertionError in DataLoader worker process 0.
Original Traceback (most recent call last):
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/worker.py", line 198, in _worker_loop
    data = fetcher.fetch(index)
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1087, in __getitem__
    format_kwargs=self._format_kwargs,
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1074, in _getitem
    format_kwargs=format_kwargs,
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 890, in _convert_outputs
    v = map_nested(command, v, **map_nested_kwargs)
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 225, in map_nested
    return function(data_struct)
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 851, in command
    return torch.tensor(x, **format_kwargs)
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 101, in _showwarnmsg
    _showwarnmsg_impl(msg)
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/warnings.py", line 30, in _showwarnmsg_impl
    file.write(text)
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/lib/redirect.py", line 100, in new_write
    cb(name, data)
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/wandb_run.py", line 723, in _console_callback
    self._backend.interface.publish_output(name, data)
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 153, in publish_output
    self._publish_output(o)
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 158, in _publish_output
    self._publish(rec)
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py", line 456, in _publish
    if self._process and not self._process.is_alive():
  File "/home/ad/anaconda3/envs/tfm/lib/python3.6/multiprocessing/process.py", line 134, in is_alive
    assert self._parent_pid == os.getpid(), 'can only test a child process'
AssertionError: can only test a child process

As a workaround I have commented line 456 and 457 in /home/ad/anaconda3/envs/tfm/lib/python3.6/site-packages/wandb/sdk/interface/interface.py

Isn't it more the pytorch warning on the use of non-writable memory for tensor that trigger this here @lhoestq? (since it seems to be a warning triggered in torch.tensor()

Yep this time this is a warning from pytorch that causes wandb to not work properly.
Could this by a wandb issue ?

Hi @timothyjlaurent @gaceladri
If you're running transformers from master you can try setting the env var WAND_DISABLE=true (from https://github.com/huggingface/transformers/pull/9896) and try again ?
This issue might be related to https://github.com/huggingface/transformers/issues/9623

I have commented the lines that cause my code break. I'm now seeing my reports on Wandb and my code does not break. I am training now, so I will check probably in 6 hours. I suppose that setting wandb disable will work as well.

This seems to be a bug in wandb (see https://github.com/wandb/wandb/issues/1994).

authors: aiswaryasankar gaceladri lhoestq mariosasko thomwolf timothyjlaurent

repo: huggingface/datasets


text:
📝 Document webhooks.updatedRefs

cc @Wauplin for viz

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

Thanks!
Just to be sure, does that mean payload.webhook.version got updated from "3" to "4" or not? (in that case we should update it in the docs as well)

Nope, will only change the version on breaking changes (which I hope there are none)

repo: huggingface/hub-docs


text:
Cannot load private models when being logged in

Describe the bug
I login in my private space with hf_token generated few hours ago and still cannot download private model with some strange S3 error.
My code:
import huggingface_hub

import streamlit as st
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline

huggingface_hub.login(token=st.secrets['hf_token'], )

model_name = 'BarbaraDefinely/BERT-DT'
# model_name = 'distilbert-base-uncased'

tokenizer = AutoTokenizer.from_pretrained(model_name, use_auth_token=True)
model = AutoModelForTokenClassification.from_pretrained(model_name, use_auth_token=True)

Please note that public model loaded successfully.
Here is complete stack trace of the error:
2023-03-03 12:30:35.159 Uncaught app exception
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.8/site-packages/transformers/modeling_utils.py", line 2007, in from_pretrained
    resolved_archive_file = cached_path(
  File "/home/user/.local/lib/python3.8/site-packages/transformers/utils/hub.py", line 284, in cached_path
    output_path = get_from_cache(
  File "/home/user/.local/lib/python3.8/site-packages/transformers/utils/hub.py", line 594, in get_from_cache
    http_get(url_to_download, temp_file, proxies=proxies, resume_size=resume_size, headers=headers)
  File "/home/user/.local/lib/python3.8/site-packages/transformers/utils/hub.py", line 433, in http_get
    _raise_for_status(r)
  File "/home/user/.local/lib/python3.8/site-packages/transformers/utils/hub.py", line 422, in _raise_for_status
    response.raise_for_status()
  File "/home/user/.local/lib/python3.8/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://s3.us-east-1.amazonaws.com/lfs.huggingface.co/repos/20/fd/20fd9322eeab38b021453c610777a846b9f5d36d4459d31323ff52e8b8ed623e/04170d1d96643fb0fded0105b1c2b853190b2acedaa5c96bf6e98760ea0893be?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4N7VTDGO27GPWFUO%2F20230303%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230303T113035Z&X-Amz-Expires=259200&X-Amz-Signature=7855b69a3d71b329fe277db6968abe02f9a5d4c18dd7641f3a6c939a16f868ed&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27pytorch_model.bin%3B%20filename%3D%22pytorch_model.bin%22%3B&response-content-type=application%2Foctet-stream&x-id=GetObject

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/user/.local/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
  File "/home/user/app/app.py", line 20, in <module>
    model = AutoModelForTokenClassification.from_pretrained(model_name, use_auth_token=True)
  File "/home/user/.local/lib/python3.8/site-packages/transformers/models/auto/auto_factory.py", line 446, in from_pretrained
    return model_class.from_pretrained(pretrained_model_name_or_path, *model_args, config=config, **kwargs)
  File "/home/user/.local/lib/python3.8/site-packages/transformers/modeling_utils.py", line 2083, in from_pretrained
    raise EnvironmentError(
OSError: There was a specific connection error when trying to load BarbaraDefinely/BERT-DT:
400 Client Error: Bad Request for url: https://s3.us-east-1.amazonaws.com/lfs.huggingface.co/repos/20/fd/20fd9322eeab38b021453c610777a846b9f5d36d4459d31323ff52e8b8ed623e/04170d1d96643fb0fded0105b1c2b853190b2acedaa5c96bf6e98760ea0893be?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4N7VTDGO27GPWFUO%2F20230303%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230303T113035Z&X-Amz-Expires=259200&X-Amz-Signature=7855b69a3d71b329fe277db6968abe02f9a5d4c18dd7641f3a6c939a16f868ed&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%27pytorch_model.bin%3B%20filename%3D%22pytorch_model.bin%22%3B&response-content-type=application%2Foctet-stream&x-id=GetObject

Reproduction
No response
Logs
No response
System info
- huggingface_hub version: 0.12.1
- Platform: Linux-5.4.219-126.411.amzn2.x86_64-x86_64-with-glibc2.2.5
- Python version: 3.8.9
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Token path ?: /home/user/.cache/huggingface/token
- Has saved token ?: True
- Who am I ?: BarbaraDefinely
- Configured git credential helpers:
- FastAI: N/A
- Tensorflow: N/A
- Torch: 1.12.1
- Jinja2: 3.1.2
- Graphviz: N/A
- Pydot: N/A
- Pillow: 9.4.0
- hf_transfer: N/A
- ENDPOINT: https://huggingface.co
- HUGGINGFACE_HUB_CACHE: /home/user/.cache/huggingface/hub
- HUGGINGFACE_ASSETS_CACHE: /home/user/.cache/huggingface/assets
- HF_HUB_OFFLINE: False
- HF_TOKEN_PATH: /home/user/.cache/huggingface/token
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False

Hi @banochkabb, that's indeed a weird error.
Can I ask what is your requirements.txt file? I suspect that you are having a quite outdated version of transformers (latest being v4.26.1). Doesn't explain the error but might help getting more information if you use a more recent version.

Just to mention it, I have not been able to reproduce the error using a private Space and a private model on my account.
I tried with a model repo having 2 files (README.md and lfs.bin), 1 tracked as regular and the other as LFS (the S3 issue comes from downloading a LFS file).
My space app.py is quite minimal and works fine (tries to download both files and that's it):
import os
from huggingface_hub import hf_hub_download
import streamlit as st

token = os.environ.get("HF_TOKEN")
st.write("has token: " + str(token is not None))

path = hf_hub_download("Wauplin/test-issue-1374", filename="README.md", token=token)
st.write(path)

path = hf_hub_download("Wauplin/test-issue-1374", filename="lfs.bin", token=token)
st.write(path)

Thank you, resolved

what was the root issue, out of curiosity?

authors: Wauplin banochkabb julien-c


text:
[huggingface.co] Give users the ability to compare models' outputs for a given task.

🗒  Motivation
When a user selects a specific task on the Hugging Face Hub - for example, image-to-text:

That user is shown a series of models, with no guidance as to which model might be state of the art, or which might be the most performant for their use case.
To test the capabilities and behavior of each model, the user must:

Open the link to each model in a new browser tab.
Read through each model's model card.
Test out each model with an image, if the model has a Spaceor a Colab notebook available (not every model does).
Cross-reference each model with the state-of-the-art leaderboards on Papers with Code.

🙏 Desired Behavior
The user should be able to:

Select a given task (for example, image-to-text).
Select one or more models to test, for that use case.
Input a piece of data, to test (an image, in the case of image-to-text).
View the output of each model, given that input data -- side by side, to compare the performance and behavior.

This would be so cool, I really like the user story you made with the side-by-side benchmark!
We were talking about integrating something like this but into tasks pages, so the workflow would be:

Select a task
Read a bit about the task and discover some SOTA models (we tried to editorialize that a bit by writing an explanatory text about each task and associating a note to each hand-curated model).
Compute multiple widgets with a single input to compare the outputs (today you only get one curated model to test the task).

And maybe when you select a particular task on /models we could add a link to the task page:

This is probably the simplest way of doing it but I understand that it's not the same as having it directly integrated into the /models page.
So maybe we want to go further and do it exactly like you said: integrate it directly into the page: you drag/input a picture/audio/text and all the visible models on the page compute and it switches to "benchmark mode" (that could be gamechanger 🤯). That will of course be a lot of work and I'm not even sure that we can hold that many computations at the same time 👀 .


text:
Bump version

What does this PR do?

This PR bumps the current version after the 1.4.0 release.
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

authors: HuggingFaceDocBuilderDev regisss

repo: huggingface/optimum-habana


text:
Training Script for ConvNeXt V1-Femto and Pico Supervised

Hi! Really nice framework!
My recent exploration is based on timm and cite it. I wonder what is the sup. training setting for ConvNeXt V1-Femto and Pico Supervised. Is it also 600 epochs, the same as ConvNeXt-Nano from the timm?
If not, could you share the sup. training setting for femto, and pico models?
My last issue is about atto and nano. Great appreciate for your pleasant response.

@techmonsterwang epochs same as the posted atto, interpolate rest of aug / reg strength between atto and nano … I don’t have specific args saved, but the overall scheme is pretty much the same w/ a bit of strength difference

authors: rwightman techmonsterwang

repo: huggingface/pytorch-image-models


text:
[FEATURE] Feature only support for Twins-PVT and Mvitv2

Both are pyramid networks and can be used for multi-scale feature extraction, but to my knowledge do not support it like similar architectures such as PVT or Swin.

@L-Reichardt the efficient mechanism for feature extraction relies on sequential stack at the stage level of the pyramid network, many pure vit / vit-hybrid need nn.Module or have extra root level modules in the model that can't be sequentialized... I have a very rough draft for another approach that'd address these but have another project in the way right now...

authors: L-Reichardt rwightman


text:
Fixing AMD CI

Fixing the AMD CI
Fixes # (issue)
Before submitting

[ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you read the contributor guideline,
Pull Request section?
[ ] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@glegendre01 do you have ideas concerning ERROR integration-tests/models/test_flash_mistral.py::test_flash_mistral - docker.errors.APIError: 500 Server Error for http+docker://localhost/v1.43/images/create?tag=sha-c8bd97f-rocm&fromImage=registry-push.github-runners.huggingface.tech%2Fapi-inference%2Fcommunity%2Ftext-generation-inference: Internal Server Error ("Get "https://registry-push.github-runners.huggingface.tech/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)")?

/registry-push.github-runners.huggingface.tech/ is not available on the MI250-CI machine.
will check how we can tackle this

authors: Narsil XciD fxmarty

repo: huggingface/text-generation-inference


text:
Added support for logit_bias in token generation

What does this PR do?
Adds support for sending logit_bias's during token generation using SequenceBiasLogitsProcessor.
Fixes #240
Before submitting

[x] Did you read the contributor guideline Pull Request section?
[x] Did you make sure to update the documentation with your changes.
[x] Did you write any new necessary tests?

Tasks still remaining.

[x] Fix FlashCausalLMBatch.concatenate
As we need to tokenize the inputs to logit_bias in order to create a SequenceBiasLogitsProcessor, there needs to be a  tokenizer passed into NextTokenChooser.from_pb and HeterogeneousNextTokenChooser.from_pb. This was no issue everywhere but FlashCausalLMBatch.concatenate.
I'm looking for feedback on how to resolve this nicely - the obvious solution would be to store a tokenizer in FlashCausalLMBatch or HeterogeneousNextTokenChooser, similar to how device is selected when concatenating at the moment. As of right now HeterogeneousNextTokenChooser contains a tokenizer.

[ ] Add Python tests

[x] Update client

[x] Documentation
Not 100% if this is complete. I've updated the rust openapi schema and added docs to the protobuf files - not sure if this is sufficient.

[ ] Benchmarking

[x] update benchmark
[ ] run benchmarks.

Who can review?
@OlivierDehaene

@Narsil this is probably ready for review (I understand @OlivierDehaene is off for August?).
It would be great if you could approve workflows, I cannot build the docker image for the life of me and cannot test CUDA stuff without it.

Hi thanks for the PR.
This will likely wait for @OlivierDehaene return.
There are a lot of ways to push models in certain directions (guidance, token healing, speculative decoding, logits bias).
I'm relatively convinced, that modifying biases like you're suggesting is not desirable. This is something that should either be in the model itself, or access higher level of controls.
That being said, all methods mentioned above will likely need to find a common underlying arch (so we don't have to recreate everything all the time.)
Efficiency is also an important factor, adding new logits modifiers adds overhead for all clients on the machine.
Check how any modification can impact performance: https://github.com/huggingface/text-generation-inference/pull/617

We sometimes call out to a LLM to ask a true/false question (or select from a series of dynamically generated options) to make some decision. The context can get fairly long and it takes some time to prompt engineer and test our way into getting an expected answer consistently.
This prompt engineering process is repeated every time we swap out a model. (Falcon -> LLama 2 chat -> LLama 2 instruction-finetuned), and we're never 100% confident that our prompt is sufficient to guarantee the output format we want. It slows down testing the latest and greatest from the open source community.
I've seen guidance/lmql, it would 100% do what we need, but seems like gross overkill and I do not want to maintain a HTTP interface in front of it if I can avoid it.
I would love a way to guide output, I can see that being totally out of scope for this project though, this felt like a reasonable medium.

what do you mean by "access higher level of controls"?

Typically guidance. You would specific something higher level that raw token_id (which most user do not have access to).
Also because specifying ids require specific knowledge of the model, which is something most users do not have. The prompt is already quite tricky for finetuned models.

Hello! @narsil wrote:

Could you share maybe more information about the problem you're trying to solve ?

I'm working with LMQL and if I understand correctly, logit_bias support would be essential for using TGI - HF Inference Endpoints as an open cloud alternative to OpenAI. (See issue https://github.com/eth-sri/lmql/issues/190.)

I read a bit lmql, seems to be doing pretty much what I would like to avoid, knowing the model internals (here the tokenizer) to control the output via input_id biases.
Even worse, you usually don't want the same biases depending on where you are in the generation.
This seems a bit higher level and closer to something which would make sense IMO: https://github.com/guidance-ai/guidance
I don't think we want to expose anything with regard to model internals. It makes things quite hard to use.
Still a lot of work when we're not working with a single model, and a bunch, which use different tokenizers with different properties. But the higher level the control, the easier it is for us to maintain ideally.

Just to clarify - the PR as it currently is takes in strings to bias towards, not tokens. The caller does not need to know token_ids and can pass in strings larger than one token.

Just to clarify - the PR as it currently is takes in strings to bias towards, not tokens. The caller does not need to know token_ids and can pass in strings larger than one token.
Is something like guidance within the scope for tgi?
Where could I find the roadmap you mentioned?

I read a bit lmql, seems to be doing pretty much what I would like to avoid, knowing the model internals (here the tokenizer) to control the output via input_id biases.

That's not a burden LMQL puts on its users, but one it takes on itself -- much as Guidance does.

Even worse, you usually don't want the same biases depending on where you are in the generation.

Correct, and that's why LMQL breaks down an operation into smaller requests to the model, again, as Guidance does.

@charles-dyfis-net . But that means stopping and restarting queries all the time. Meaning forgetting KV all the time pretty much.
This seems like a very high cost latency wise.
Keeping KV around hoping for client to reconnect is also not great. (How long do you keep it around, how do you cache hit, etc..).

@charles-dyfis-net . But that means stopping and restarting queries all the time. Meaning forgetting KV all the time pretty much.
This seems like a very high cost latency wise. Keeping KV around hoping for client to reconnect is also not great. (How long do you keep it around, how do you cache hit, etc..).

So when you describe guidance as something that you want to support, are you saying you'd want to run it server-side, built into TGI? If you run Guidance server-side... well, you could run LMQL queries server-side as well, though that's going to leave a lot of users (like ones who want to implement tool-calling workflows) dissatisfied. And unless y'all have a route to Microsoft's team that isn't open to the public, I'd worry about maintainer accessibility; one of the significant factors behind my decision to use LMQL over Guidance is the availability of a highly responsive and accessible upstream.
One way to split the difference is to divide into multiple operations whenever tool use or something else that needs to happen on the remote end takes place; LMQL upstream has been toying with the idea of supporting that explicitly.
With respect to the KV cache -- personally, I'd bind it to a specific LMTP-over-websocket connection, since a given LMQL client will be reusing a single transport over time in nontrivial cases. (The interactive debugger/playground creates a new transport instance per call, but it's not typical of more serious applications in that respect).

Looks like we'll be getting one better than this PR.
https://github.com/huggingface/text-generation-inference/issues/505#issuecomment-1708367609
I'll close for now.

authors: MarcusDunn Narsil charles-dyfis-net ggbetz


text:
PatchTSTModel, PatchTSTConfig, & Trainer

Feature request
Implementation of:
PatchTSTModel, PatchTSTConfig, & Trainer
Source:
https://github.com/huggingface/transformers/blob/v4.46.3/src/transformers/models/patchtst/modeling_patchtst.py#L1142
Motivation
https://github.com/huggingface/transformers
Your contribution
Submitting a PR

Opened PR here. Let me know if that works for you 👍

Sure thing! I've added them here.
Example usage can be found here.
Note for the config, you an simply do:
import { AutoConfig } from '@huggingface/transformers';

const config = await AutoConfig.from_pretrained('hf-internal-testing/tiny-random-PatchTSTModel');
console.log(config);

Happy to help :)

Looks simple enough to add :) Feel free to open a new issue with the request, and if you can supply example input out output to check our implementation 👍

authors: Datakunskap xenova


text:
allow cpu backend

can cpu backend be allowed for testing purposes?
it could be useful if this ran on Intel OpenCL:
Number of platforms:                             1
  Platform Profile:                              FULL_PROFILE
  Platform Version:                              OpenCL 1.2 LINUX
  Platform Name:                                 Intel(R) OpenCL
  Platform Vendor:                               Intel(R) Corporation
  Platform Extensions:                           cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64

  Platform Name:                                 Intel(R) OpenCL
Number of devices:                               1
  Device Type:                                   CL_DEVICE_TYPE_CPU

nvm I downloaded it all and changed the default, some tests aren't passing tho

Yeah, it's non-trivial to get gpu things to run on the 'cpu' part of a cpu.  You can get it to run on the integrated graphics of a cpu, and modern Intel and AMD cpus both have these.  But you'll struggle to make it run on any cpu with less than about ~32-64 cores.  You can probably buy a nice Titan X for the cost of a 32 core processor :-P  And note, that doenst mean four 8-core procs: it would have to be one single 32-core proc :-P

So, I'm going to close this, ok?

authors: LorenzoBoccaccia hughperkins

repo: hughperkins/cltorch


text:
giscus 在深色模式配置下没有默认为深色模式

请按照此 Issue 模版提供相关信息，例如源码仓库、网站链接和屏幕截图，这将有助于我们进行调查。
(Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate.)
问题自检列表 (Issue Checklist)

请确认如下情况已检查，并将 [ ] 换成 [x] 来选择 (Change [ ] to [x] to selected which your could make sure)

[x] 已使用 Hugo Extended 0.86.0 或更高的版本 (I'm using Hugo Extended version 0.86.0 or later)
[x] 已使用 Hugo NexT 4.0 或更高的版本 (I'm using Hugo NexT version 4.0 or later)
[x] 已阅读 Hugo 故障排除并尝试修复无果 (I had already read the Troubleshooting page of Hugo)
[x] 已搜索过当前所有已知问题和讨论区 ，但没有找到帮助 (I had already searched for current Issues and Q & A, which does not help me.)

预期行为 (Expected behavior)

请描述你想实现的预期效果 (Please describe the expected behavior what you want)

giscus 在全局默认为深色模式的情况下默认以深色模式出现。
实际行为 (Actual behavior)

请同时提供网站链接、屏幕截图和源码地址 (Please provide your site links, screenshots and code repository)

无论初始 darkmode 设置为何者，giscus 评论均默认以浅色模式出现；仅当手动点击“深浅模式切换”的按钮后 giscus 才会切换浅色 / 深色模式。
问题重现步骤 (Steps to reproduce the behavior)
打开 https://hugo-next.github.io/hugo-next-v4-introduced.html 页面，进入评论区，切换为 giscus，可以观察到 giscus 以浅色模式呈现。

连续点击两次“深浅模式切换”的按钮后，giscus 以深色模式呈现。

环境信息 (Environment Information)
主题配置(Configuration)

提供主题 config.yaml 中修改过的部分内容 (Paste ONLY CHANGED CONFIGURATION from  config.yaml)

darkmode: true

其他有用信息 (Other Information)

例如：操作系统、浏览器等 (e.g. Browser, System)

Edge浏览器，Windows11。

有点奇怪，在我的电脑上没有复现出这个问题，不知是否和网络环境有关系，待跟进看看。

Edge浏览器，Windows10
也出现这种问题

@myeeye @xgnw 建议还是检查一下你们的网络情况，示例站点是用vercel部署，估计国外服务器响应慢的原因，我用VPN连接过去访问（Windows10 Edge）是正常的，可以看下的gif录屏动画。

authors: elkan1788 myeeye xgnw

repo: hugo-next/hugo-theme-next


text:
[Bug] Extra whitespace after code block

Expected Behavior
The code blocks should be shown as befor with Toha v3
Current Behavior
Recently upgraded my site to Toha v4 and after that, I can see there is a lot of extra white space after code blocks and figure captions.
My site's content is written with AsciiDoc, so it might be the cause here. I tried recreating the issue with Markdown on my site and it worked as predicted.
Possible Solution
I believe the behaviour is caused by one or both of these lines https://github.com/search?q=repo%3Ahugo-toha%2Ftoha+min-height%3A+130&type=code
Disabling the min-height property in the browser seemed to fix the issue but still the padding values are a bit weird.

I would have created a PR but I'm not comfortable making the change since I don't know the inner workings of this theme. Looks like the CSS definitions that cause this might have an effect on other parts of the theme as well, so simply removing them might cause regressions.
The problem with the code blocks can be seen on my website here https://korhonen.cc/posts/migrate_misskey_root_account/#_solution
Figure captions also have a similar problem https://korhonen.cc/posts/creating_this_site/#_future_plans
Browsers Affected

[x] Chrome
[x] Firefox
[ ] Edge (not tested)
[ ] Safari 11 (not tested)
[ ] Safari 10 (not tested)
[ ] IE 11 (not tested)

I am wondering why you are seeing this extra code spaces! The example site has both codeblocks and figures but none has additional spaces after them.
https://hugo-toha.github.io/posts/markdown-sample/

My site content is written in AsciiDoc and the example site is written in Markdown as far as I know. I think we should look at the different HTML structures created by the respective HTML generation pipelines

The example page seems to have a structure like this

While my site, which is generated by AsciiDoctor, has an extra div around a similar structure

Don't know enough about the inner workings of Hugo or AsciiDoctor to research this much further. Any ideas?

That makes sense. I will check if we can reset the CSS for the content class with code.

I did some more research and found a way to make AsciiDoctor play more nice with Hugo, using a custom html5 backend https://cosmos547.moe/posts/hugo-with-asciidoc/
Sorry for wasting your time. I was sure it was not an issue with my site since I've ran it without issue with v3 such a long time. Hope this issue serves as a help resource if anyone else runs into the same issue.

authors: FunctionalHacker hossainemruz

repo: hugo-toha/toha


text:
chore(main): release iso-signatures 0.3.0

:robot: I have created a release beep boop
0.3.0 (2023-12-21)
Features

update to new did types (0db02d7)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/hugomrdias/iso-repo/releases/tag/iso-signatures-v0.3.0 :sunflower:

repo: hugomrdias/iso-repo


text:
Test compatibility with image gallery and media plugins

[ ] NextGen Gallery
[ ] Envira Gallery
[ ] FooGallery
[ ] S3 Uploads
[ ] Jetpack
[ ] Smush Image Compression and Optimization
[ ] MetaSlider
[ ] EWWW Image Optimizer
[ ] Image Widget
[ ] Tachyon
[ ] Multiple Post Thumbnails

It doesn't work with WP native gallery. Shortcode return nothing!

Hey, I'm also interested with this feature. Did u find a solution ?

Same here, with WP native gallery. Gallery stays empty or did not show last uploaded images. Any solution for that? Thx

Here it was a Problem mit Polylang. Polylang filtered for Languages, what results in not visible Images.
This solved it:
add_action('parse_query', function ($query) {     if ($query->query['post_mime_type'] === 'image' && $query->query['post_type'] === 'attachment' && key_exists('tax_query', $query->query_vars)) {         for ($i = 0; $i < count($query->query_vars['tax_query']); $i++) {             if (key_exists($i, $query->query_vars['tax_query']) && key_exists('taxonomy', $query->query_vars['tax_query'][$i]) && $query->query_vars['tax_query'][$i]['taxonomy'] === 'language') {                 unset($query->query_vars['tax_query'][$i]);             }         }     } }, PHP_INT_MAX);

authors: gaelgerard johnbillion kleins

repo: humanmade/network-media-library


text:
2.x: Make HBXCTClient use Swift Concurrency

If the server requires Swift Concurrency, it'll simplify tests if the test client also uses it.

done

repo: hummingbird-project/hummingbird-core


text:
memory leak in beta 6? (speculating and investigating)

Hey there,
Sorry for the lack of detail on this one, as I'm still trying to investigate further detail myself. I have a private project that has been in production status for a while now, and also has been on the 2.x.x branch of development long before there were beta releases for the milestone. I've been on this train for a minute.
My solution is no small project, it receives well over 15 HTTP requests per second (sustained), and does encounter malicious queries from time to time. These malicious queries helped me identify issues like PR 404. I learn about these issues in my production environment, as they happen. Its a good time :D
As I check my notes and possibly A/B test over the next days, I'll give you the punchline of a suspected issue that has seemingly emerged in my work:
I believe hummingbird 2 beta 6 introduced some amount of memory leakage that was not present in the earlier versions, possibly even nonexistent in the prior beta 5. This is a tentative but educated speculation based on an unexpected crash of my environment, which is otherwise very stable. I continue to investigate.
For the sake of discussion: My production server as it runs today is WAY OVER PROVISIONED with 24GB of ram (headless with no other applications to host), but unfortunately, this headroom is currently not enough to keep my process running more than a week or so.
frankly I was very caught off guard by this and as such, have very minimal info to go off of. but we can start by looking at the syslogs logs and confirming why exactly my process was killed:
Jun 15 18:41:08 localhost kernel: [6328716.711816] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-0.slice/session-11329.scope,task=pricedb,pid=1242483,uid=1000
Jun 15 18:41:08 localhost kernel: [6328716.711850] Out of memory: Killed process 1242483 (pricedb) total-vm:322911892kB, anon-rss:24076600kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:67016kB oom_score_adj:0

To be clear: the last time I've seen this process outright die like this was when I first discovered PR 404. At this point, I've given beta6 and beta5 roughly equivalent time in prod. I can say with certainty that beta5 never crashed but of course, this does not mean the issue does not exist in beta5.
DISCLAIMER: I have to acknowledge that this could easily be a bug that sits in my stack, not hummingbird. This is what I'm trying to sort out. For the sake of kicking this off, I'm inclined to believe this is NOT the most likely scenario, simply because my latest update to my process and prod environment was a single change.......hummingbird 2.x.x beta5 to beta6 in my Package.swift.
The prior release was seemingly very stable.
Thank you for the continued development of this awesome framework.

There are very few differences between beta 5 and 6. I'll investigate further though. Which Hummingbird packages are you using? Are you certain no other dependencies changed version?

I couldn't find anything obvious. I did a test where I had a route that responded with the body that was in the request. And using wrk hit that route 52107270 times, transferring about 153GB and memory usage never went over 9MB according to the activity monitor.

after a thorough investigation and a few A/B tests I can confidently rule out hummingbird project from my issue here.
thank you, as always, for the excellent work.
cheers!

authors: adam-fowler tannerdsilva

repo: hummingbird-project/hummingbird


text:
Fix/Remove _last_recv_time variable from Binance

Before submitting this PR, please make sure:

[x] Your code builds clean without any errors or warnings
[x] You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:
_last_recv_time variable removed because it's not needed anymore.
Tests performed by the developer:
Ran unit tests
Tips for QA testing:
Nothing specific to test.

PRP: https://snapshot.org/#/hbot-prp.eth/proposal/0x4a6413c5227f88f95e65e16b8789696f384bc826f77615114365467fdf9daac1

Hi @mhrvth good day,
It seems the PRP submitted has no votes and already completed, kindly resubmit again if you still plan to continue this PR. Thank you
Link: https://snapshot.org/#/hbot-prp.eth/proposal/0x4a6413c5227f88f95e65e16b8789696f384bc826f77615114365467fdf9daac1

Created a new PRP: https://snapshot.org/#/hbot-prp.eth/proposal/0xd14e5b91b16819554db1f0429a6fe916a2239feb29d744e95f1060bccb7336ce

authors: aarmoa mhrvth rapcmia

repo: hummingbot/hummingbot


text:
Dependency issue in latest release tag

E.g. trying:
npm i -d @huntabyte/eslint-plugin @huntabyte/eslint-config eslint eslint-plugin-svelte svelte-eslint-parser

Results in the error below for @huntabyte/eslint-config
npm error Could not resolve dependency:
npm error peer eslint@"npm:eslint-ts-patch@9.5.0-0" from @huntabyte/eslint-config@0.3.2
npm error node_modules/@huntabyte/eslint-config
npm error   @huntabyte/eslint-config@"*" from the root project

A direct git install works on the other hand.
npm i -d git+https://github.com/huntabyte/eslint-config.git

It might be just the package.json and lock file that are out of sync in the latest release.

I'm going to be reworking this config very soon that will resolve this :)

authors: huntabyte ttytm

repo: huntabyte/eslint-config


text:
🛑 Coach is down

In 967aa73, Coach (https://coach.thekor.eu/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Coach is back up in 46c5dc0 after 1 hour.

repo: hupratt/upptime


text:
🛑 WebRTC encoding (fast) is down

In e3b0388, WebRTC encoding (fast) (https://rtc.craftstudios.shop/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: WebRTC encoding (fast) is back up in 59ca421.


text:
🛑 Blog is down

In c98bb88, Blog (https://blog.craftstudios.shop/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Blog is back up in b754185 after 31 minutes.


text:
Android 13 Not Vibrating

On Android 13 are some Easter eggs Not Vibrating.
I think only <uses-permission android:name="android.permission.VIBRATE" /> needs to bei added to AndroidManifest.xml.

Vibration permissions have been added to the application, and not all vibrations require vibration permissions.
For example: view.performHapticFeedback(HapticFeedbackConstants.XXX)

HapticFeedbackConstants.LONG_PRESS: The user has performed a long press on an object that is resulting in an action being performed.
HapticFeedbackConstants.CLOCK_TICK: The user has pressed either an hour or minute tick of a Clock.
...

On Android 13 Easter egg, Used HapticFeedbackConstants.CLOCK_TICK and HapticFeedbackConstants.LONG_PRESS to trigger vibration, but HapticFeedbackConstants. CLOCK_TICK  vibration time and strength is shorter.
The absence of vibration feedback may be a limitation of the device, for example, the device is not equipped with a linear vibrator, but with a traditional eccentric vibrator, Or disabled vibration feedback in system settings.

repo: hushenghao/AndroidEasterEggs


text:
Would love to see your gcn code be part of the main repository. :)

Feel free to create pull-requests if you get a chance, and I can review and merge them.

Hi, great that this project spiked your interest. But this repo is ditched and not actively under maintenance now. We have a new repo: https://github.com/Xtra-Computing/G3. Please redirect the issue there so that my teammates can take a look as well.