noise_distribution and sample_schedule do not multiply sigma_data

noise_distribution
https://github.com/lucidrains/alphafold3-pytorch/blob/8ef24ebdd69b35874e067e78afa0367b2fcfadef/alphafold3_pytorch/alphafold3.py#L2188
and
sample_schedule
https://github.com/lucidrains/alphafold3-pytorch/blob/8ef24ebdd69b35874e067e78afa0367b2fcfadef/alphafold3_pytorch/alphafold3.py#L2106C9-L2106C24
should be multiplied self.sigma_data follow equation 7 in page 24 of SI.

@wufandi they are taken into account here ?

I think these are for Algorithm 20 line 2 and Algorithm 20 line 8. This is not the same thing as noise_distribution and sample_schedule.

BTW, step scale in Algorithm 18 is missing in
https://github.com/lucidrains/alphafold3-pytorch/blob/8ef24ebdd69b35874e067e78afa0367b2fcfadef/alphafold3_pytorch/alphafold3.py#L2167

@wufandi ok, i'll take a look later 👍
i'm using a working implementation of EDM for text to image, but maybe they deviated from the original paper

here it is from the original paper

Yes, they are different from the original paper. I also agree with the discussion in
https://github.com/lucidrains/alphafold3-pytorch/issues/68
However, this will make the MSE Loss too small during training. Perhaps the Loss weight of the original paper in AF3 is correct

@wufandi ok sounds good. the paper is lacking on expounding on these tiny differences.
i have also come across an error in their pseudocode for their diffusion transformer, which is why i'm relying on original work.
but, i can possibly align it with their paper under a flag for the ElucidatedAtomDiffusion class. you have started training and it works better with what the paper does?

I also noticed the error you found (residual in AttentionPairBias, Algorithm 23). I tried training with the original version and it seems to converge normally. Maybe adding residual will make the training more stable? I'm not sure.
To verify my code, I chose antibodies in SAbDab as the training/validation set, as I have also done some previous work on antibody structure prediction. In this case, it will work.

@wufandi hmm, i highly doubt it is stable. take it from someone who knows transformers well

@wufandi ok, i'll add both the loss weight discrepancy as well as the scaling by sigma data for noise and sample schedules behind a flag

The antibody structure is very similar. so the training is very stable.
I have added a residual in AttentionPairBias. ;-)

@wufandi nice, you'll have less headache, guaranteed 😄

@wufandi ok, let me know if this looks ok

Algorithm 18

yes, you are right, should be added here
thank you

That looks correct,
One more question,
https://github.com/lucidrains/alphafold3-pytorch/blob/main/alphafold3_pytorch/alphafold3.py#L2554-L2574
Why the CentreRandomAugmentation not used during sampling? Follow line 3 in Algorithm 18.

@wufandi yes, you are right again, thank you for catching that
https://github.com/lucidrains/alphafold3-pytorch/commit/41c58c3f8ce7cd6e3b13eda36fdc2af91ee22e44

AF3 also do not use c_noise, which is used by EDM
https://github.com/lucidrains/alphafold3-pytorch/blob/main/alphafold3_pytorch/alphafold3.py#L2495

@wufandi ok https://github.com/lucidrains/alphafold3-pytorch/commit/88a65b660aea48ef677299ed08c393bf889c447d

@wufandi do run the original Karras against the paper's and let me know which one works better

oh yes, now i see, they do acknowledge differences, just not well explained

@wufandi actually, I'll just try the deepmind formulation on generating images tomorrow

I do not run the original Karras EDM, so I am not sure which one works better.
I also find some bug or  in you diffusion module.

Algorithm 21 line 8 of AF3 shows that DeepMInd consider the c_noise of EDM paper, you also implemented this algorithm,
https://github.com/lucidrains/alphafold3-pytorch/blob/main/alphafold3_pytorch/alphafold3.py#L1731
so there is not need to add it here,
https://github.com/lucidrains/alphafold3-pytorch/blob/main/alphafold3_pytorch/alphafold3.py#L2531

The most important bug in training, which there is no details in the AF3 paper,
Here, it should be
noised_atom_pos = atom_pos_ground_truth + padded_sigmas * self.c_noise(noise)
in
https://github.com/lucidrains/alphafold3-pytorch/blob/main/alphafold3_pytorch/alphafold3.py#L2677

In this way, we can ensure that the noise is consistent with the normal distribution.

AF3 do not have this process, which is exists in EDM,
https://github.com/lucidrains/alphafold3-pytorch/blob/main/alphafold3_pytorch/alphafold3.py#L2618

@wufandi thanks Fandi, let's go with your intuition that there may be a bug in the paper. i will continue to keep the formulation from Tero Karras just in case
can you see if the latest version lines up with what you believe should be correct?

Yes, I believe it is correct.
c_noise is really important, otherwise the model will not converge.

@wufandi aha, i've thought about that possibility after seeing the egregious bug in that transformer residual.. could be 😆

I carefully read the EDM paper (and of course EDM2 as well). I think I made a mistake in the code regarding adding noise to the structure. It should be:
noised_atom_pos = atom_pos_ground_truth + padded_sigmas * noise
Please make sure to remove this modification to avoid causing any misunderstanding for the users. However, the part about weighing the loss is most likely an error in the paper.
Additionally, regarding why we need to multiply noise_distribution and sample_schedule by sigma_data, this is because for images, the variance is normalized, whereas for structures, it cannot be normalized.

In addition, after reading the EDM2 paper, I have some extra thoughts:
"The EDM formulation in Equation 4 makes relatively strong assumptions about the mean and standard deviation of the training data. We choose to normalize the training data globally to satisfy these assumptions—as opposed to, e.g., changing the value of sigma_data, which might have far-reaching consequences in terms of the other hyperparameters. We thus keep sigma_data at its default value 0.5, subtract 5.81, 3.25, 0.12, -2.15 from the latents during dataset pre-processing to make them zero mean, and multiply them by 0.5/4.17, 4.62, 3.71, 3.28 to make their standard deviation agree with sigma_data."
This is the trick used in the EDM2 paper. Is it possible for us to set different sigma_data values for different types of molecules?

I carefully read the EDM paper (and of course EDM2 as well). I think I made a mistake in the code regarding adding noise to the structure. It should be: noised_atom_pos = atom_pos_ground_truth + padded_sigmas * noise
Please make sure to remove this modification to avoid causing any misunderstanding for the users. However, the part about weighing the loss is most likely an error in the paper.
Additionally, regarding why we need to multiply noise_distribution and sample_schedule by sigma_data, this is because for images, the variance is normalized, whereas for structures, it cannot be normalized.

sounds good, and no problem :smile:

In addition, after reading the EDM2 paper, I have some extra thoughts:
"The EDM formulation in Equation 4 makes relatively strong assumptions about the mean and standard deviation of the training data. We choose to normalize the training data globally to satisfy these assumptions—as opposed to, e.g., changing the value of sigma_data, which might have far-reaching consequences in terms of the other hyperparameters. We thus keep sigma_data at its default value 0.5, subtract 5.81, 3.25, 0.12, -2.15 from the latents during dataset pre-processing to make them zero mean, and multiply them by 0.5/4.17, 4.62, 3.71, 3.28 to make their standard deviation agree with sigma_data."
This is the trick used in the EDM2 paper. Is it possible for us to set different sigma_data values for different types of molecules?

yup, that may be a possibility
perhaps something like
alphafold3 = Alphafold3(
  ...
  edm_sigma_data = tensor([1., 2., 3., 4., 5.])
)

where the indices correspond to the is_molecule_type boolean tensor? https://github.com/lucidrains/alphafold3-pytorch/blob/main/alphafold3_pytorch/alphafold3.py#L134

@wufandi are you referring to https://github.com/lucidrains/alphafold3-pytorch/issues/68 when you say you believe this is an error?


implement MediaComments

Hi @glebtv
Thank you for good PR...
Can you write test methods for get comments ?

Hi,
added test.

Awesome dude
Thank you
Good luck...


chore: Migrated Circle-CI from 1.0 to 2.0

Fixes #288
Changes: Migrated Circle-CI from 1.0 to 2.0

Renamed circle.yml to .circleci/config.yml
Write new scripts build_for_testing, update_dependencies and before_install
Moved all the scripts to the Scripts folder
Write whole new syntax for Circle-CI 2.0
Moved upload_ipa script to Scripts folder
Deleted old circle.yml and upload-ipa.sh files

Screenshots for the change:
N/A

Ok, this might solve some issues. Let me merge it and progress from here. Please work with other devs together to get reviews as well before requesting mentors reviews. Once you show familiarity with the review process you will receive write access. Thank you.

@mariobehling thank you. I will keep that in mind.


fix:exit the loop when enough pods have been found to be evicted

Ⅰ. Describe what this PR does
handling in this way can reduce the number of loops

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[ ] I have written necessary docs and comments
[ ] I have added necessary unit tests and integration tests
[ ] All checks passed in make test

/lgtm

/lgtm


feat: integrate openID auth logic and user profile management

this change introduces OpenID authn by using providers such as Github, Gitlab and Google. User sessions are now used for web clients to identify and persist an authenticated users session, thus not requiring every request to use credentials.
UserDB added that contains users security data.
dex service introduced to replace multiple providers implementations

Signed-off-by: Alex Stan<EMAIL_ADDRESS>
What type of PR is this?

Which issue does this PR fix:
What does this PR do / Why do we need it:
If an issue # is not available please add repro steps and logs showing the issue:
Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?
Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Superseded by https://github.com/project-zot/zot/pull/1381


Add wirralgrammarboys.txt

Domain submitted is the same as domain url.
Offers A-Level and GCSE options for Computer Sciences, both of which take over a year.
The URL is the same as the submitted, and therefore requires no further acknoledgement.

@arzustudent Thank you for your patience while waiting for a review and processing your request. Pull request merged.


verification: Add GitHub verification

Allow users to verify apps by logging in to their GitHub account. If the username in the app ID matches their GitHub username, they can mark/unmark their app as verified.
Marking as draft, waiting on generic oauth login support. Then we should be able to support GitLab app IDs as well. Also, we may want tests on the login code.

Adam and Kyle are working to finalise and merge the other auth types, then you can finish this up with gitlab auth too


Allow publishCollection to run even if errors for single resources occur.

allow to continue the publication even if errors occur. To not run the full publication if there is a system error there is a option to only accept a limited amount of continues publication tries. The default settings is currently to 50 failure in a row before the complete collection publication get's aborted.

Fellow contributors… how do we proceed here?

I have no preferences there since never worked with multiple targets for one collection yet. not sure where it should be implemented there as the function only works with one target Bucket yet anyway? would it need to be implemented later on that the next collection continues even if this function gives an error?

Closing this for now, feel free to re-open (and resolve conflicts) if needed. And maybe @robertlemke can chime in on this, still…

@kdambekalns we can't use this package without the addition. there are hundreds of reasons why an image is in the db but might not be available anymore (visrus scan kicked it, storage failure etc.) and publication fails everthing after hours of progress to restart at 0 again. in a cloud setup it's crucial for us that not everything breaks if one image can't be copied. Why not implement this as is and if someone needs this based on targets as well we can add a new issue for that. right now it is file-based so the most detailed option.

@cwenzelg Ok, so I assume you are using it from your fork, then?

yeah, we are working with our fork right now. we also are in the progress of changing the version of flow so we would also have a look at this again. let me check if we can resolve the conflict, the next days.

Hi @cwenzelg – it has again been a long time… So I finally wanted to resolve the conflict, and halfway through I wondered, if your change is actually still needed. Could you try with a current version? All errors are logged since https://github.com/flownative/flow-google-cloudstorage/commit/adb111055206d51f4aa662d14a2180286393ef84 (which is only a bit younger than when you created your branch…)

@ariesprodesign do we even use this fix still or are we on a newer version and this issue is already fixed? do you know that? As i didn't touched code for quite a while, i don't know myself.

is this maybe related?
https://github.com/flownative/flow-google-cloudstorage/issues/17

I checked the code again and close this as "already done."


Generate rust coverage data

Closes #33
In order to retain our python coverage and diff-cover tool chain we're:

generating code coverage file in lcov format with cargo-tarpaulin
creating python coverage file in lcov instead of xml
combining these coverage artifacts with lcov into one
diff-cover seems to be able to handle combined lcov file

genhtml tool is used instead of coverage html to create html from combined file, which will create a bit different UI, but nothing major seems to change.
From something like this:

To this:

Also changed in PR:

actions-rs action is archived, dtolnay/rust-toolchain now used
improved caching:

for binaries
and in general Swatinem/rust-cache currently is the best way to handle rust cache workflows, it's a "smart caching for rust/cargo projects with sensible defaults"

Alright, so it failed as expected: https://github.com/dottxt-ai/outlines-core/actions/runs/11594946487/job/32282843486
Overall coverage rate:
  lines......: 35.3% (287 of 812 lines)
  functions..: 28.4% (33 of 116 functions)
Failure. Coverage is below 100%.
-------------
Diff Coverage
Diff: origin/main...HEAD, staged and unstaged changes
-------------
src/json_schema/helpers.rs (0.0%): Missing lines [43](https://github.com/dottxt-ai/outlines-core/actions/runs/11594946487/job/32282843486#step:9:44),47,49-53,55-58
-------------
Total:   11 lines
Missing: 11 lines
Coverage: 0%
-------------

Generated html & uploaded it:
Artifact download URL: https://github.com/dottxt-ai/outlines-core/actions/runs/11594946487/artifacts/2123365492
Seems, we're good to go 🚀


Create Laravel middleware to protect rooms and messages from inactive users

Users whose email hasn't been validated yet or who have been deactivated shall not be able to access rooms, messages and the users list

resolved with item 7 of #3


Update to tRPC v10

Any plans to update this adapter to use tRPC v10?

Announcement post: https://trpc.io/blog/announcing-trpc-10
Migration guide: https://trpc.io/docs/migrate-from-v9-to-v10

I started migrating it here based on trpc-nuxt. If that's ok, I can also update the README and open a PR.

Already working on a rewrite, which also includes a docs website. Will come up with something over the weekend.


podman/docker container

i would be very happy about a podman/docker container that I can easily run.

yes, I concur, would love to have an all-in-one docker-compose setup including relay, client & proxy :)


Multilingual Support for Ticket Classification and Response

Story:
As an international customer, I want my support tickets to be accurately categorized and responded to in my language, so I can receive assistance without language barriers.
Acceptance Criteria:
Support ticket classification for tickets submitted in at least three languages (e.g., English, Spanish, French).
Provide automatic translations for responses in the customer’s language, where possible.
Improvements:
Integrate translation APIs (e.g., Google Translate API) to detect and translate tickets.
Train or fine-tune the model on multilingual datasets if available.

Future consideration


[rev~]

damp from 0-1?
add wet?

use nyquist~ for damp, and see if you do that too with [plate.rev~]


Dots of nav-bar appear in wrong place when using subsection

Thanks for the nice template.

I noticed the dot seems not well behaved when I use "\subsection"
Is it intended?

Hi! My pleasure.
That is standard behavior for the navigation bar. As far as I know you can force them all to a single line by loading beamer with the compress option:
\documentclass[compress]{beamer}
I strongly recommend it. Putting them on multiple lines is a terrible waste of space.

Hi! My pleasure.
That is standard behavior for the beamer navigation bar. Default themes adapt the layout to accommodate multiple lines of dots, but this theme is built with the assumption that you keep them on a single line. Space is valuable.
You can force all of them to a single line by loading beamer with the compress option:
\documentclass[compress]{beamer}


Return unsafe.Pointer instead of raw C type

As discussed in a previous PR https://github.com/asticode/go-astiav/pull/44, the raw C struct of AVFrame is returned instead of a unsafe.Pointer.
However, after some fiddling around, I finally discovered the difference of the two approaches.
Currently, the raw C struct returned will have a type of *astiav._Ctype_struct_AVFrame, and as the name suggests, this type is unexported. Hence, it comes with all the inconveniences of returning an unexported type.
To make it usable, one unavoidably has to do the following:

In conclusion, it's better to just return unsafe.Pointer and let the caller do the casting.

Thanks for the detailed explanation 👍 The best would be to replace UnsafeTypedPointer to UnsafePointer which would indeed return an unsafe.Pointer. Do you feel like creating a PR for this?


[Bug]: InterestsTabState unused

Is there an existing issue for this?

[X] I have searched the existing issues

Is there a StackOverflow question about this issue?

[X] I have searched StackOverflow

What happened?
Not really a bug, but unused StateFlow in one of the ViewModels.
The StateFlow below is as state of tabs (title and currentIndex) in the InterestsViewModel; however, it is not being used anywhere as far as I'm aware.
It seems that you had tabs in the previous versions in e.g foldable, landscape, but you removed it in the current version?
private val _tabState = MutableStateFlow(
        InterestsTabState(
            titles = listOf(R.string.interests_topics, R.string.interests_people),
            currentIndex = 0
        )
    )
    val tabState: StateFlow<InterestsTabState> = _tabState.asStateFlow()

Relevant logcat output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

That's correct, this code should be removed. Thanks for filing this.


error in /usermanager/api/v1/extensions

Requests to POST /usermanager/api/v1/extensions would silently fail due to a missing await.

Created an issue for this: https://github.com/lnbits/lnbits-legend/issues/744

Good catch! LGTM


05 - Event Planner (Hacktoberfest Demo) #606

The Event Planner web application allows users to manage events with features like creating, editing, and deleting events. It includes a user-friendly interface displaying event details such as title, description, date, time, location, category, and priority. Events are displayed in card format, making it easy to view and interact with. Additionally, the app integrates Copilot Assistant, which aids users by providing suggestions and automating certain tasks.
It's built using modern web technologies such as React and integrates a backend API for event management.
Under HacktoberFest issue number #606

@Zedoman, can you please just add the .md project template file to the demo folder with a link to your repository and remove the project folder?

The app itself looks great, nicely done!

Sir i have stated the .md file name as EventPlanner.md. and do i have to delete the project folders?

Sir removed the project folder @NathanTarbert .

@quest-bot loot #606

Nice job @Zedoman!

Thank you sir @NathanTarbert

@quest-bot loot #636

@quest-bot loot #695

@quest-bot embark

@quest-bot loot #606


Update arq to 5.2.5

Checklist

[x] The commit message includes the cask’s name and version.
[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.

Did audit run error-free on your machine?

@vitorgalvao Sorry, I totally forgot about this issue: https://github.com/caskroom/homebrew-cask/pull/24450#issuecomment-246776984
I have updated the cask.

Ah, yes, forgot about that as well. https://github.com/caskroom/homebrew-cask/issues/24811 should fix that.


Add javascript icon

This looks great! Could I please ask you to make one small change?
Take a look at the guidelines.  When the corner radius is at 50%, the "JS" overlaps the background. So I think you should move the JS slightly closer to the centre.
Thanks!

I'll do the changes

This looks great! Could I please ask you to make one small change?
Take a look at the guidelines. When the corner radius is at 50%, the "JS" overlaps the background. So I think you should move the JS slightly closer to the centre.
Thanks!

done

Brilliant! Thank you :-)


How to create child theme?

Hi, I'm wondering is there any way to create child theme in current approach where theme files are located in the "theme" subdirectory?
I tried to create timberland-child directory. Inside it I made "theme" directory which contain style.css file. When I go to the wordpress panel I can see message that says "the parent theme is missing. please install the parent theme".
So what should I do? Ommit the "theme" subdir and move all files to main directory?

Hi, I've never used Timberland as a child theme because of how much custom code is required to use it on a project. It's a starter theme vs. a traditional theme where you might use the customizer. What's the use case?

I’m making my starter theme that I’ll use to build websites for my clients. To be honest i already have that theme. I want to create child theme that will be used by my clients.


FireFox support

Is there a way to use it with firefox? other that that it works very well

Unfortunately, Firefox is not currently supported. As far as I know, there isn't an easy way to run the extension without getting it signed by Mozilla. Unless you run a dev/nightly/unbranded build of Firefox (see their FAQ), the only way to run unsigned extensions (using Firefox's equivalent of Chrome's "load unpacked" mechanism) removes the extension on every browser restart.
If there's strong demand for Firefox support, I suppose I (or a volunteer) could set up proper packaging and signing for each release.
That said, I just merged in a small fix that makes the code compatible with Firefox. If you're ok with Firefox's limitations on unsigned extensions, or if you get it signed, the extension does work.

Unfortunately, Firefox is not currently supported. As far as I know, there isn't an easy way to run the extension without getting it signed by Mozilla. Unless you run a dev/nightly/unbranded build of Firefox (see their FAQ), the only way to run unsigned extensions (using Firefox's equivalent of Chrome's "load unpacked" mechanism) removes the extension on every browser restart.
If there's strong demand for Firefox support, I suppose I (or a volunteer) could set up proper packaging and signing for each release.
That said, I just merged in a small fix that makes the code compatible with Firefox. If you're ok with Firefox's limitations on unsigned extensions, or if you get it signed, the extension does work.

FWIW I tested this end to end (via a private upload of the extension) and it Just Works. It just requires automation to sign.

I volunteer as tribute to submit and maintain the Firefox Add-on.  I've been using the extension for a really long time, and have somewhat recently switch to Firefox as my daily driver, so am in a good position to maintain it.  As @grimreaper noted, it works well as-is, with a minor addition for manifest v3 (I'll send a PR shortly).


'type' object is not subscriptable

C:\Users[USER]>python C:\Users[USER]\Downloads\stammer-main\stammer.py Descargas\steamed-hams.mp4  C:\Users[USER]\Downloads\street-fighter-iii-3rd-strike-lets-get-it-on.mp4 C:\Users[USER]\Downloads\stammer-main\outputs\thirdstrike.mp4
Traceback (most recent call last):
File "C:\Users[USER]\Downloads\stammer-main\stammer.py", line 20, in
import video_out
File "C:\Users[USER]\Downloads\stammer-main\video_out.py", line 2, in
from decay_cache import DecayCache
File "C:\Users[USER]\Downloads\stammer-main\decay_cache.py", line 13, in
class DecayCache:
File "C:\Users[USER]\Downloads\stammer-main\decay_cache.py", line 14, in DecayCache
array: dict[Frame] = {}
TypeError: 'type' object is not subscriptable
I don't know what I'm doing wrong sorry this is the first python code that I run
I Installed all the things the readme tells me

Thanks for trying out our project, and I'm sorry that this was your first experience with python code!
Which version of python are you running? That is, what do you get when you run python3 --version? I'm wondering if the issue might be that you're using an earlier version of Python than what we've been testing on.
@Firepal do you have any ideas?

when I run the command it gives me:
Python 3.10.10

Oh gosh, I get it. Thank you for reporting this bug!
array: dict[Frame] = {}
TypeError: 'type' object is not subscriptable

The error here is the variable name. array is actually a built-in type in the very latest versions of Python.


IaphubDataProvider onPurchase and onError not triggered

After a successful IAP, onPurchase is not being called.
"react-native-iaphub": "^8.1.4",
"react-native-iaphub-ui": "^1.0.1",

<IaphubDataProvider
appId="xxx"
apiKey="xxx"
lang="en"
allowAnonymousPurchase={true}
onPurchase={() => {purchaseSuccess()}}
onError={() => {purchaseError()}}>
Originally I was using onByeEnd in the IaphubDataConsumer but I realized that triggers even if the user cancels the IAP transaction. Is there a way to tell if the the transaction was successful other than using onPurchase?

Hi @ryan-granlund,
Just checked and the onPurchase event does work, your code looks incorrect.
<IaphubDataProvider
appId="xxx"
apiKey="xxx"
lang="en"
allowAnonymousPurchase={true}
onPurchase={(transaction) => console.log('transaction: ', transaction)}
onError={() => (err) => console.log('Error: ', err)}>

Also you can use the onBuyEnd event as well, it takes 2 arguments in parameter:  err, transaction.
You can check the error in order to filter errors.

Ahhh yes you are correct. I was able to use onBuyEnd and if err is null, I know the transaction was successful.
Thanks for the help!!


[Question] How to swap when I used near as tokenIn instead of wrap.near

As the title said, if I wanna swap by using near directly but not wrap.near, how to implement this? Could you please show me a example code of this, thx very much.

You have to wrap your near before swapping.


[Epic]:Plugin 2.1

### Tasks
- [ ] https://github.com/tokens-studio/figma-plugin/issues/2469

### Tasks
- [ ] https://github.com/tokens-studio/figma-plugin/issues/1024
- [ ] https://github.com/tokens-studio/figma-plugin/issues/650
- [ ] https://github.com/tokens-studio/figma-plugin/issues/1741
- [ ] https://github.com/tokens-studio/figma-plugin/issues/1621

@esthercheran can you describe this epic a bit? We have some context in the Figjam, let's have it here too.
Let's treat these like proper epics with a proper description and product shaping


Panic when using look ahead from fragment with nested type

Describe the bug
Given the schema
schema {
  query: Query
}

type Query {
  user: User!
}

type User {
  country: Country!
}

type Country {
  id: Int!
}

The following query using a fragment panics if you call executor.look_ahead() in the Country resolver:
query Foo {
  user {
    ...userFields
  }
}

fragment userFields on User {
  country { id }
}

The panic happens here https://github.com/graphql-rust/juniper/blob/master/juniper/src/executor/look_ahead.rs#L272.
The failure message is
$ cargo test
    Finished dev [unoptimized + debuginfo] target(s) in 0.08s
     Running target/debug/deps/juniper_bug_reproduction-3606a7a034be58af

running 2 tests
test test::without_fragment ... ok
test test::with_fragment ... FAILED

failures:

---- test::with_fragment stdout ----
thread 'test::with_fragment' panicked at 'not yet implemented', /Users/davidpdrsn/.cargo/registry/src/github.com-1ecc6299db9ec823/juniper-0.11.1/src/executor/look_ahead.rs:267:18
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

failures:
    test::with_fragment

test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out

error: test failed, to rerun pass '--lib'

If you run the query without the fragment it works fine
query Foo {
  user {
    country { id }
  }
}

To Reproduce
I have put together this example project https://github.com/davidpdrsn/juniper-bug-reproduction. Download it an run cargo test.
Expected behavior
That the code doesn't panic :smile:

The look ahead code currently doesn't handle a look ahead inside a fragment.
Should be a relatively easy fix.

Thanks for the detailed bug report!
I'm a bit swamped but hope to take a look at this soon if someone doesn't get to it beforehand.

The fix works perfectly! Any chance you're doing a point release soon? 🤞

Glad to hear it! I'm planning to do a release later this week.


Instructions how to setup a bot in the Discord Developer Portal

Since it's non-trivial to create a Discord bot in the Discord Developer Portal, we should provide a guide in the README.
Reference: https://discordpy.readthedocs.io/en/latest/discord.html

I want to work on this.

Hey @ShahzaibJutt. Go for it! I've assigned you to the issue. If you have any questions feel free to ask.

Should I also include pictures in the guide or I just create steps for creating the bot and after which section in the readme.md I place this guide. Sorry for delay I am waiting for hactoberfest to start.

No worries! Just place it between the installation and configuration section.  I dont think that Images are necessary. In addition to that, the readme would be quite bloated with those images i guess. You could provide a link to the reference If you want to.

Oh sorry I don't read your comment and create the PR. It is after the Getting started in the readme.

For reference: @milan090 created a discord bot himself with really good instructions:
https://github.com/milan090/simple-discord-music-bot
https://github.com/milan090/simple-discord-music-bot/blob/master/CREATE_BOT.md
Maybe you can get inspired by it.

hey guys, i am about to try and help out with #3 and i wanted to get the bot running on my local in a priovate discord just to have a play, does it require any scopes other than bot? and what perms should it be given?

Hey @xxKeefer I don't know if @ShahzaibJutt is updating his changes any  time soon. I've seen multiple people struggle with setting up the bot. If you want to, you could take on this issue as well. I have seen that you are a native speaker, so I would be very grateful if you or someone else who is a native speaker could take over.

Sorry @Fubinator my internet was off for a while. Can you please tell me what to improve?

No worries @ShahzaibJutt  just have a look at your PR. Someone commented and refer to this comment: https://github.com/Fubinator/planning-poker-discord-bot/issues/23#issuecomment-702308117


OperationCanceledException exception on CancellationTokenSource timeout

The example code suggests utilizing TaskCanceledException but since it is cancelled by the CancellationTokenSource, the operation thrown is OperationCanceledException, looking at the docs, and unfortunate personal experience.
    try
    {
        s_cts.CancelAfter(3500);

        await SumPageSizesAsync();
    }
    catch (TaskCanceledException) // this should be either OperationCanceledException or just Exception depending on the context
    {
        Console.WriteLine("\nTasks cancelled: timed out.\n");
    }
    finally
    {
        s_cts.Dispose();
    }

Thanks to this detailed StackOverflow response, the problem can be understood easily.

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

ID: 73ddfd34-0838-951a-9c58-b9b02164e521
Version Independent ID: 3293092a-40db-a784-8894-7588a752e148
Content: Cancel async tasks after a period of time (C#)'
Content Source: docs/csharp/programming-guide/concepts/async/cancel-async-tasks-after-a-period-of-time.md
Product: dotnet-csharp
Technology: csharp-async
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks for bringing this to our attention @zbalkan
I've added it to the list of issues for this article.
I've also added the "up for grabs" label if someone wants to submit a fix before we make our next updates.


Overlays should use the locale from the context in which they are opened

Steps to reproduce
When Using Localizations.override to override the language inside the widget tree, the overriden language is not passed to overlays. That is when using either:

showDialog
showModalBottomSheet
showBottomSheet
Navigator.of(context).push

From within the context where the language is overriden, for example to french, the overlay will use the root language for example english.
To reproduce use the sample below:

click on the button which is in french
the bottom sheet is opened with a text in english

Why
If a library exports a MySuperButton which when clicked opens a dialog, one would expect the language of the dialog to be the same as MySuperButton regardless if it was overriden.
Expected results
the bottom sheet is opened with a text in french
Actual results
the bottom sheet is opened with a text in english
Code sample
import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      localizationsDelegates: const [
        GlobalMaterialLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
      ],
      supportedLocales: const [
        Locale('en'),
        Locale('fr'),
      ],
      locale: const Locale('en'),
      debugShowCheckedModeBanner: false,
      home: Builder(builder: (context) {
        return Scaffold(
          appBar: AppBar(
            title: const LocalizedText(),
          ),
          body: const MyWidget(),
        );
      }),
    );
  }
}

class MyWidget extends StatelessWidget {
  const MyWidget({super.key});

  @override
  Widget build(BuildContext context) {
    return Localizations.override(
      context: context,
      locale: const Locale('fr'),
      child: Builder(
        builder: (ctx) => Center(
          child: ElevatedButton(
            onPressed: () => showModalBottomSheet(
              context: context,
              builder: (context) => const Center(
                child: LocalizedText(),
              ),
            ),
            child: const LocalizedText(),
          ),
        ),
      ),
    );
  }
}

class LocalizedText extends StatelessWidget {
  const LocalizedText({super.key});

  @override
  Widget build(BuildContext context) {
    return Text(
      MaterialLocalizations.of(context).backButtonTooltip,
    );
  }
}

Flutter Doctor output
[✓] Flutter (Channel stable, 3.19.4, on macOS 14.4 23E214 darwin-arm64, locale en-BE)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.87.2)

Thank you for the report. I also can reproduce the issue.

Demo
https://github.com/flutter/flutter/assets/104349824/dc0d3251-b076-4290-a2f1-a93f625252a4

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.19.4, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.19.4 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 68bfaea224 (29 hours ago), 2024-03-20 15:36:31 -0700
    • Engine revision a5c24f538d
    • Dart version 3.3.2
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (3 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 123.0.6312.58

[✓] Network resources
    • All expected network resources are available.

• No issues found!

[!] Flutter (Channel master, 3.21.0-16.0.pre.14, on macOS 14.1 23B74 darwin-x64, locale en-VN)
    • Flutter version 3.21.0-16.0.pre.14 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f5b65bad0f (2 hours ago), 2024-03-27 18:20:55 -0700
    • Engine revision c602abdbae
    • Dart version 3.4.0 (build 3.4.0-279.0.dev)
    • DevTools version 2.34.0-dev.12
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = /Applications/Android Studio.app/
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] Connected device (3 available)
    • RMX2001 (mobile) • EUYTFEUSQSRGDA6D • android-arm64  • Android 11 (API 30)
    • macOS (desktop)  • macos            • darwin-x64     • macOS 14.1 23B74 darwin-x64
    • Chrome (web)     • chrome           • web-javascript • Google Chrome 123.0.6312.86

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

Note that the workaround is to override inside the dialog with Localization.localeOf(context) where context is the original context. Maybe a similar approach can be used inside flutter if this indeed warrant a fix.

This is working as intended. The content of the OverlayEntry only sees inherited widget above the Overlay widget. You can look into OverlayPortal, which will give you access to all the widgets above the portal's mounting point.


Playlist Soundcloud AmazonMusic

Hello
many thanks for the great app.
I have the problem that I can't select a playlist/ favorites   on Soundcloud and AmazonMusic.
it is only displayed "Search empty".
And
i can't see the cover in the little menu (Spotify,Soundcloud,AmazonPrimeMusic)
(Homescreen.)
BMW G31 8/2018
Sorry for my english. I hope you know what I want to tell you anyway
many thanks

Welcome, and I'm happy you like it! I am also a fan of Soundcloud.
However, AAI can only control the music apps through the control they grant. Amazon Music doesn't allow AAI to connect to start or control it at all, and the method of controlling running apps doesn't offer a way to browse. Soundcloud just simply doesn't implement browsing at all, returning an empty library to every app (include Android Auto itself).
Are you seeing the app show up as Audioplayer? It won't be able to set the global coverart if it's running in that mode. You may need to upgrade AAI to a nightly build and make sure your Spotify is up-to-date.

Hey..
Many thanks for your support. an update of your app was the solution for the cover
I love it.
you should take money for this app, mate.
Sometimes the Idrive Bluetooth Connection Apps lost


Move capi-bot to the CAPI working group

Inspired by this suggestoin

@moleske, do you have any concerns regarding this proposal?

@cloudfoundry/wg-app-runtime-interfaces-capi-approvers @cloudfoundry/wg-app-runtime-interfaces-capi-reviewers


fix: Svelte's script context=module should be separate script

Description
Treat Svelte's <script> and <script context="module"> as separate contexts during import scan
Fixes https://github.com/vitejs/vite/issues/5446
Additional context
This is a very annoying issue that causes prebundling to fail so that the server won't start if you use variables with the same name in different script contexts, which is a very common thing to do in Svelte

What is the purpose of this pull request?

[X] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[X] Read the Contributing Guidelines.
[X] Read the Pull Request Guidelines and follow the Commit Convention.
[X] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[X] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

I'm not sure I understood 100% of that comment, but I did add support for .vue files as suggested


Zybo-Z7-10 Petalinux /dev/fb0 frame buffer fbdev

I have downloaded and cross compiled the demo on Ubuntu VM. Following transfer to the Zybo it runs under Petalinux but the image is distorted and lined.
If I run fbset I get

Can this be fixed with some parameter changes in the demo?

What is the problem?

Hi, the image is distorted - it is double width, looks monochrome, and has vertical striations. The text is readable.

It's likely that lv_drivers/display/fbdev.c needs some modifications to accomodate your framebuffer's color format.

ok, i'll do some more research, thanks

Problem seems to be that memcpy (in fbdev_flush) cannot be used to copy to this 24bpp framebuffer because the color_p format is 32 bits. Therefore memcpy should be substituted with a version that skips every 4th byte, or support for a different color_p format is required. I tried changing petalinux /dev/fb0 to 32bpp but it does not seem to stick.

memcpy should be substituted with a version that skips every 4th byte

This is probably the simplest solution.


Support for large models (external data format)

This PR closes #59.
Changelog:

Refactored dockerfile and fixed dependencies to cope with python3: /root/gpgpu/MachineLearning/myelin/src/compiler/optimizer/reshape_ppg.cpp:950: void myelin::ir::reshape_ppg_t::transform_op(myelin::ir::bb_t*, myelin::ir::operation_t*): Assertion op->outputs()[0]->dimensions().size() == 3' failed.`
Bumped patch version
Added --fast argument to skip the fp16 conversion (saving GPU memory)
Updated logging (increased default verbosity for better understandability)
Added external data path for tensorrt to cope with models > 2G
Moved ONNX export post Pytorch benchmark to do conversion on CPU only (for larger models)

@pommedeterresautee: I made some minor modifications. I ran the required tests manually with gpt2-medium, neo-1.3b and 2.7b

@cli99: I have verified your request. Are you running this within the docker container? Because from my experience this is extremely dependent on the environment.
Additionally I made a slight change to the the compare_outputs and convert_tensors function, because the outputs between the Neo and GPT2 models are slightly different.
 If this is not the desired behavior, please modify the weights or retrain with regularization to reduce the magnitude of the weights.
...
[Pytorch (FP32)] mean=34.18ms, sd=0.33ms, min=33.66ms, max=39.32ms, median=34.14ms, 95p=34.48ms, 99p=34.61ms
[TensorRT (FP16)] mean=8.82ms, sd=0.17ms, min=8.77ms, max=13.70ms, median=8.81ms, 95p=8.84ms, 99p=8.87ms
Each infence engine output is within 0.3 tolerance compared to Pytorch output

This one took building engine took 6132.8 seconds
docker run -it --rm --shm-size=24g --ulimit memlock=-1 --ulimit stack=67108864 --gpus device=0 \
  -v $PWD:/project tfdeploy \
  bash -c "cd /project && \
    convert_model -m 'EleutherAI/gpt-neo-2.7B' \
    --backend tensorrt \
    --seq-len 1 128 128 \
    --task text-generation"

[04/29/2022-14:13:08] [TRT] [W] building engine took 6238.1 seconds
04/29/2022 14:13:47 INFO     running TensorRT (FP16) benchmark
Inference done on Tesla V100-SXM2-32GB
latencies:
[Pytorch (FP32)] mean=65.59ms, sd=0.70ms, min=63.89ms, max=70.31ms, median=65.61ms, 95p=66.61ms, 99p=67.69ms
[Pytorch (FP16)] mean=38.06ms, sd=23.02ms, min=34.75ms, max=755.65ms, median=35.22ms, 95p=44.68ms, 99p=47.65ms
[TensorRT (FP16)] mean=15.04ms, sd=0.17ms, min=14.90ms, max=17.58ms, median=15.01ms, 95p=15.14ms, 99p=15.38ms

For larger models I had to increase the atol sometimes, but 325 is off the charts and I am not able to replicate the issue.
I suspect this is due to different dependencies. For gpt2-medium, gpt-neo-1.3b I found an atol=3 sufficient and for gpt-neo-2.7b.
Additionally, I have added the --fast argument that skips the float16 test from pytorch, because it occupies unnecessary resources (and is almost the same for all models anyways).

Addon: This does specifically not work for GPT-J, but I was already aware of that limitation.
[04/29/2022-14:36:29] [TRT] [W] onnx2trt_utils.cpp:392: One or more weights outside the range of INT32 was clamped
[04/29/2022-14:36:29] [TRT] [W] onnx2trt_utils.cpp:392: One or more weights outside the range of INT32 was clamped
[04/29/2022-14:36:29] [TRT] [W] onnx2trt_utils.cpp:392: One or more weights outside the range of INT32 was clamped
[04/29/2022-14:36:29] [TRT] [E] [layers.cpp::validate::5677] Error Code 3: Internal Error (Einsum_110: einsum input tensor 0 has invalid type Int32)
[04/29/2022-14:36:29] [TRT] [W] building engine. depending on model size this may take a while
[04/29/2022-14:36:29] [TRT] [E] 4: [network.cpp::validate::2633] Error Code 4: Internal Error (Network must have at least one output)
[04/29/2022-14:36:29] [TRT] [E] 2: [builder.cpp::buildSerializedNetwork::609] Error Code 2: Internal Error (Assertion enginePtr != nullptr failed. )
Traceback (most recent call last):
  File "/usr/local/bin/convert_model", line 8, in <module>
    sys.exit(entrypoint())
  File "/usr/local/lib/python3.8/dist-packages/transformer_deploy/convert.py", line 386, in entrypoint
    main(commands=args)
  File "/usr/local/lib/python3.8/dist-packages/transformer_deploy/convert.py", line 288, in main
    engine: ICudaEngine = build_engine(
  File "/usr/local/lib/python3.8/dist-packages/transformer_deploy/backends/trt_utils.py", line 132, in build_engine
    engine: ICudaEngine = runtime.deserialize_cuda_engine(trt_engine)
TypeError: deserialize_cuda_engine(): incompatible function arguments. The following argument types are supported:
    1. (self: tensorrt.tensorrt.Runtime, serialized_engine: buffer) -> tensorrt.tensorrt.ICudaEngine

Invoked with: <tensorrt.tensorrt.Runtime object at 0x7fc959cd7c70>, None

Thank you for this high quality PR. Can you share what is the depency causing crashing with ext data?

Welcome @pommedeterresautee! Actually, no. I am able to re-create the issue when rebuilding with the current dockerfile in the masterbranch. And the only thing I found working was exporting all dependencies from your hosted image and fixing all of them. I can spend time investigating this, but that will take a few days

What do you mean by "fixing all of them"?
I ask so we can document the bug and avoid having it coming back during an update in the future.

Sorry, yes that was exactly what I did. I used the currently hosted image ghcr.io/els-rd/transformer-deploy:0.4.0 and exported the environment, pinning all dependencies in the requirements*.txt to the version contained in that image (except some which weren't pin-able).
Done!
black --line-length 120 --target-version py37 . && \
isort .
All done! ✨ 🍰 ✨
45 files left unchanged.
Skipped 1 files
root@d5acb2d242ce:/home# make source_code_check_format
black --check --line-length 120 --target-version py37 . && \
isort --check-only . && \
flake8 .
All done! ✨ 🍰 ✨
45 files would be left unchanged.
Skipped 1 files
root@d5acb2d242ce:/home#

The CI failed because in the requirements.txt files there are now dependencies like onnxruntime-gpu==1.9.0 and other Nvidia things which are GPU setup only.
The CI can only run CPU only setup for now.
To fix the CI, the dependencies related to gpu should be moved in requirements_gpu.txt and if some are CPU run only, then there is requirements_cpu.txt.

@pommedeterresautee I have refactored the files. Do you have any specific dockefile you are using for running the CI?
Cause with the provided Dockerfile even the ast tests aren't succeeding.

Nevermind I found the docker file you are using in the github actions. I will tr to reproduce and run tests locally beforehand

@pommedeterresautee if you need a GPU CI let me know.

Thank you @jqueguiner! Definitely interested. Will contact you soon.

@oborchers as written in previous message, I will rework this PR to fix conflicts and mainly retrieve API change + logs.
To make 1 step at a time, the fix itself has been put in #75 (tested and works, tks !).

@pommedeterresautee: I am very sorry I am not able to contribute as much as I'd like but we have a few projects running at the same time which demand all my attention :-/ Glad the fix worked though!

@oborchers thank you for the info. Unfortunately, tensorrt is broken on GPT-neo (1.3b and 2.7b) on 8.2.4 and 8.2.5 (before is ok).
model:
import torch
from transformers import AutoTokenizer, TensorType, AutoModel, GPTNeoModel

model_name = "EleutherAI/gpt-neo-1.3B"
tokenizer = AutoTokenizer.from_pretrained(model_name)
input_ids: torch.Tensor = tokenizer("Studies show that", return_tensors=TensorType.PYTORCH).input_ids.cuda()
inputs_pytorch = {"input_ids": input_ids.type(torch.int32)}
model_pytorch: GPTNeoModel = AutoModel.from_pretrained(model_name)
model_pytorch = model_pytorch.cuda()
out = model_pytorch(input_ids=input_ids)

dynamic_axis = dict()
for k in inputs_pytorch.keys():
    dynamic_axis[k] = {0: "batch_size", 1: f"sequence"}

dynamic_axis["output"] = {0: "batch_size", 1: "sequence"}

for k, v in inputs_pytorch.items():
    if not isinstance(v, torch.Tensor):
        continue
    if v.dtype in [torch.long, torch.int64]:
        inputs_pytorch[k] = v.type(torch.int32)
with torch.no_grad():
    torch.onnx.export(
        model_pytorch,  # model to optimize
        args=tuple(inputs_pytorch.values()),  # tuple of multiple inputs
        f="./triton_models/model-original.onnx",  # output path / file object
        opset_version=13,  # the ONNX version to use, >= 13 supports channel quantized model
        do_constant_folding=True,  # simplify model (replace constant expressions)
        input_names=list(inputs_pytorch.keys()),  # input names
        output_names=["output"],  # output axis name, hard coded so only 1 output supported
        dynamic_axes=dynamic_axis,  # declare dynamix axis for each input / output
        training=torch.onnx.TrainingMode.EVAL,  # always put the model in evaluation mode
        verbose=False,
    )

# 8.2.4
docker run -it --rm --shm-size=24g --ulimit memlock=-1 --ulimit stack=67108864 --gpus device=0  -v $PWD:/project nvcr.io/nvidia/tritonserver:22.04-py3 bash
/usr/src/tensorrt/bin/trtexec --onnx=/project/triton_models/model-original.onnx --workspace=23000


Add new DeviceReader constructors

Closes #25

@glopesdev lets review #28 and #27 first and then we will handle this one.


Fix792 rollup enhancements

Fixes #792
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@Angie-Zhang could you please review this PR?

Could someone from @opensearch-project/index-management review this PR please? Thanks!


Register v0.1.1

@JuliaRegistrator register

Error while trying to register: "Tag with name v0.1.0 already exists and points to a different commit"

@JuliaRegistrator register

Error while trying to register: "Tag with name v0.1.0 already exists and points to a different commit"

@cpaniaguam I would like to release a new version of the package as I've made updates to the code. Based on my research, the correct process to publish the new version involves the following steps:

Update the version in the Project.toml file.
Add Tagbot to the repository.
Trigger JuliaRegistrator.
Is this process correct? Could you kindly assist in releasing v0.1.1?

@JuliaRegistrator register

Error while trying to register: "Tag with name v0.1.1 already exists and points to a different commit"

@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/91908
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.2.0 -m "<description of version>" 5d564f353ca36737c4c724dfbbcee7286ccc4232
git push origin v0.2.0


Issue and PR templates.

Issue and PR templates are missing.
I can do it. Please assign this to me. @swapnilsparsh

Issue and PR templates are missing.
I can do it. Please assign this to me. @swapnilsparsh

Can you share some photos so I can get an idea what you are talking about.

Issue and PR templates are missing.
I can do it. Please assign this to me. @swapnilsparsh

Can you share some photos so I can get an idea what you are talking about.

When someone opens an Issue or PR it asks for a checklist and some instructions.

When someone opens an Issue or PR it asks for a checklist and some instructions.

When someone opens an Issue or PR it asks for a checklist and some instructions.

Can you share some example ?

When someone opens an Issue or PR it asks for a checklist and some instructions.

Can you share some example ?

@swapnilsparsh
issue template->

Issue template looks something like this it says what sort of issue someone is creating when he/she is creating an issue.
pr template->

Pr template looks something like this its bbasically conatins a set of checklist that the pr relates to and description of what sort of change was made in the pr

@swapnilsparsh
issue template->

Issue template looks something like this it says what sort of issue someone is creating when he/she is creating an issue.
pr template->

Pr template looks something like this its bbasically conatins a set of checklist that the pr relates to and description of what sort of change was made in the pr

Can i work  on this @swapnilsparsh

Can i work  on this @swapnilsparsh

@Sloth-Panda Ok

@Sloth-Panda Ok

Issue resollved by @Sloth-Panda

Issue resollved by @Sloth-Panda


The asp.net core application loads the CPU even after a user requests are terminated.

Hi,
My asp.net core application is builded on .net core 2.1 and launched under CentOS 7.4 (Outside the Docker container).
During the working day, this application has a high load. At night, when requests from clients stop, the application continues to use a lot of CPU. This stops only if I restart the application.
I searched for the blocking code manually and using Ben.BlockingDetector. (Question about this here: benaadams/Ben.BlockingDetector#9) But I did not find anything.
I collected and tried to analyze metrics using perfcollect
These metrics are taken at night, when there are no requests from clients, but the application uses 206% of the CPU (The machine has 4 cores):

My metrics are available here: (my application's name is current_app.anm)
https://drive.google.com/open?id=1SHTJqfWUMMOECcDUKnz37st1r4u_P4-j
Can anyone tell me what could be causing this problem?
Thank you in advance for any response.

@sebastienros - thoughts?

I thought that it depends on bug in System.IO.Pipelines package like issue in Kestrel
But after connecting the package <PackageReference Include="System.IO.Pipelines" Version="4.5.0" /> to my project nothing has changed.
dotnet/Announcements#83
aspnet/KestrelHttpServer#2694

@neyromant Did you update to .net core 2.1.4?

@davidfowl Not yet, I just updated System.IO.Pipelines package.
My application is Self Contained Application and I do not use Microsoft.AspNetCore.App.
Maybe the problem is this?

@sebastienros any ideas on how to diagnose this?

@neyromant The same problem with yours - even no any request the asp.net core application still load high CPU, aspnet/KestrelHttpServer#2937

It could be the finalizer thread that is getting blocked. It would run even without any requests.

Are you using EntityFramework, and changing how it's tracing SQL?
Are you using HttpClient to request external services?

Can you take a memory dump? That might help as you can look at the finalizer queue that way.

It could be the finalizer thread that is getting blocked. It would run even without any requests.

Are you using EntityFramework, and changing how it's tracing SQL?
Yes, I am
Are you using HttpClient to request external services?
Yes, I am

Can you take a memory dump? That might help as you can look at the finalizer queue that way.

Yes, of cource. My dump is here:
https://drive.google.com/file/d/1GPDSDktxOL_Cma61ZKSw3NH4gyhYnkr5/view?usp=sharing

Is this gcore dump or did you use https://github.com/dotnet/coreclr/blob/21f94f2be12e16bb36187d40c2fa82af9ebfd469/Documentation/botr/xplat-minidump-generation.md?

This is gcore dump:
# ulimit -c unlimited
# sudo gcore -o dump1 <pid of my self contained app>

Yep, I figured from the size 😄. This was collected on  CentOS 7.4 yeah?

This was collected on CentOS 7.4 yeah?

Yep, it is CentOS 7.4

I can't get this dump to load properly:
Try “readelf -a dump1.17928” and you will get some error messages:
readelf: Error: Reading 0x18c00 bytes extends past end of file for section headers
readelf: Error: Section headers are not available

I'm sorry. I will check or I will soon make a new dump.

@davidfowl, I am sorry for long answer.
I have uploaded corrected and checked dump here: https://drive.google.com/file/d/1ErM5in4N7ED620QWNHtW2abKFua1PtnN/view?usp=sharing

We have the same issue and we use HttpClient.
This problem occured when we update to .Net Core 2.1.4.
For HttpClient we created wrapper class, which is scoped and constructor have only one line of code
_httpClient = new HttpClient();
Do you have any idea what is the problem?

@mmikirtumov Please consider using the HttpClientFactory for that. It will automatically follow the best practices when working with a HttpClient.

Thank you Patrick. I know that this is good practice. I am trying to figure it out what is the problem currently in my production server. And can HttpClient cause this issue?

We are use the HttpClientFactory.

We are use the HttpClientFactory.
@neyromant
Have you resolved your issue? We have the same problem and now we are using HttpClientFactory.

We took a trace, but it didn't help us.

@vlad294 Unfortunately no


Use updater to show devel version information

Having updater notifications in devel mode doesn't help much,
but we can still make use of it for showing information about
the development version currently used

I don't think it makes sense to add a permanent badge to the UI as people might see that as an indication that there is a new version available. Probably best thing to do is to fail setup if running on a dev version. Tests will need to be updated as well.

Ok, makes sense. Any hint on how to make it fail in a reasonable way?

How is this PR different than #1113? From my point of view both PRs want to achieve the same thing.

@fabaff it's pretty much the same patch, thanks for the notice. Plus, @balloob convinced me that failing durning initialization is the way to go here, so I'll close this


Setting up DOTA for training and evaluation

I looked into the DOTA website:
https://captain-whu.github.io/DOTA/dataset.html

I see Training , evaluation and testing data. How should I paste these data into the datasets folder for testing BBA? Should I run the DOTA-Devkit too?
I am confused on the set up steps.
Thank you

https://github.com/yijingru/BBAVectors-Oriented-Object-Detection#about-dota may help

@yijingru Thank you for your reply.
I currently have datasets/images and datasets/LabelTxt in my directory already. To obtain trainval.txt and test.txt, for running the code, could you suggest how to do it? Thanks

I see you mention they are the file names, but I am having trouble understanding this block:
P0000__0.5__0___0
P0000__0.5__0___1000
P0000__0.5__0___1500
P0000__0.5__0___2000
P0000__0.5__0___2151
P0000__0.5__0___500
P0000__0.5__1000___0

Thank you

It is image split label. check this one https://github.com/CAPTAIN-WHU/DOTA_devkit#usage

@yijingru Thank you for all the help.
I managed to set the code base up for testing DOTA! While my own GPU is weak to train from scratch, I am able to perform Inference using your pre-trained model_50.pth file.
There are some small bugs in the readme file, related to running the command for training. For example, the code has num_epochs instead of epochs, and it is not 100% clear what the train_labels and test_labels are, and that we have to do a train-test split using selection.
Can I edit the README.md and make the instructions a little more clear for other researchers? Thanks.
Either way, I think I am ready to close this issue.

Of course you can. You can send pull request and I will review and merge. Thanks for your contribution!


ROX-23506: Adding attribute selector

Description
This PR includes the following:

Creating the AttributeSelector component
Usage of the PF5 Select Component (will be a one-off for now, but we may consider pulling it up to the components directory and further extending the capabilities)
Fixing up Types
Creating util functions to encapsulate logic and make things simpler to follow
Tests!

/retest


feat: add exact match caching

This PR introduces a robust caching abstraction to improve performance and prevent progress loss during API calls (e.g., LLM or embedding requests). This was brought up in #1522 and later added as an enhancement request in #1602.
Key Features:

Flexible Backend Support: Added CacheInterface with DiskCacheBackend (using diskcache) and InMemoryCacheBackend (not tested yet).
Deterministic Cache Key Generation: So far, I was successful in generating deterministic and unique cache keys.
Decorator-Based Integration: Simple @cacher decorator to seamlessly apply caching to both synchronous and asynchronous functions. This can act as a singular interface. Additionally, I can create a CacheMixin class from which other classes can inherit. But personally liked the elegance of a decorator.

Questions:

What's would be a good assumption for the size of dataset used for evaluation/number of LLM calls made?  Asking this so that I can plan benchmarking accordingly. cc: @jjmachan

The implemented _generate_cache_key uses the args and kwargs to find attributes that should be deterministic. For now I am excluding keys that have memory address. This can be done more gracefully maybe. Or we can leverage the __repr__ or __hash__ written for PydanticPrompt but not sure if this is the consensus for writing most core components in the lib.

Few obvious TODOs:

[x] proper abstractions
[ ] test for dataset generation
[ ] test in memory caching
[ ] write tests
[ ] benchmark for latency
[ ] docs

Great to see this draft 🙂
This should give you an average distribution for last month @ayulockin

this ignores rows which had the value 1 (assume single evaluations)

Thanks @jjmachan, I will stress test on an evaluation set of 300 rows (on the top of my mind). I think it would be sufficient amount give the percentile 95 is 120 and average is 40 rows. Will benchmark a few methods and let you know. Super useful data points.

hey @ayulockin I was thinking, instead of benchmarking evaluation, we have to evaluate prompt inputs here right - that will be more accurate benchmark. We can synthically create a few of these too
but a few questions

what aspects are we benchmarking/measuring?
what different situations should we consider (I think mostly it will be the different key_length but is there any other factors?)

instead of benchmarking evaluation, we have to evaluate prompt inputs here right

Caching should add some latency. I want to benchmark evaluation/testset generation (as a case study) with caching enabled and without it. The difference should not be noticeable imo. Running this is easy.
I am not sure what you exactly mean by "evaluate prompt inputs here". My guess is on unique key generation given a prompt input and that it is deterministic (we get the same key when we give the same prompt input) and the lookup speed/insertion speed, etc. I think with evaluation benchmark I meant the same thing.
So to answer your question on "what aspects are we benchmarking/measuring?" > It's latency. Also because we are saving the raw output as the value to the key, need to be careful about the disk memory usage too imo (but should not be such a big deal considering the percentile usage data you shared -- one will never run LLM based eval on 100k samples 😅).

what different situations should we consider (I think mostly it will be the different key_length but is there any other factors?)

I am generating key like this: https://github.com/explodinggradients/ragas/blob/55e7472fab48a0510aef1ff983f244f67cf75802/src/ragas/cache.py#L81
it's quite generic but want to check it with the embeddings as well (embedding models are very cheap so up to you if you want this to be cached too.)
TLDR;

Aspect
Metric
How to Measure

Cache Lookup Speed
Lookup latency (ms)
Measure time to fetch from cache for keys of varying lengths.

Cache Insertion Speed
Insertion latency (ms)
Measure time to insert new cache entries.

End-to-End Latency
Total function time (ms)
Compare cached vs. uncached function calls.

Cache Hit Rate
Hit rate (%)
Track cache hits vs. misses during repeated evaluations.

Memory/Disk Overhead
Cache size (MB/GB)
Monitor cache size with different inputs and backends.

Key Length Impact
Latency by key length
Test small vs. large keys for hashing and lookup time.

Concurrency
Latency under load (ms)
Simulate multiple threads/processes using the cache concurrently.

Backend Comparison
Latency for disk vs. memory
Compare diskcache and in-memory caching for similar workloads.

Ran evaluation with and without caching on the rungalileo/ragbench "tech" subset with 314 samples in the test set.
Without caching: 6 minutes 32.21 seconds

With caching: 5 minutes 46.31 seconds

Hence diskcache is practically having no overhead because it gets overlapped with the openai's latency.
Running the same eval that was cached took only 3.27 seconds.

The resulting .cache/cache.db is only taking 2 MB for this example. I don't think key_length is a concern here.

(but should not be such a big deal considering the percentile usage data you shared -- one will never run LLM based eval on 100k samples 😅).

this actually doesn't hold for testset generation, especially since there are a lot of transforms involved which process a lot of documents

I am not sure what you exactly mean by "evaluate prompt inputs here". My guess is on unique key generation given a prompt input and that it is deterministic (we get the same key when we give the same prompt input) and the lookup speed/insertion speed, etc. I think with evaluation benchmark I meant the same thing.

one are that might perform different is testset generation which will behave differently when compared to things that are cached when evaluating. This is why I though we would consider a different benchmark but that is an overkill. Instead what we could do is to benchmark how caching affects the testset generation module too - what do you think?

diskcache is good enough. anything else would be over engineering at this point.

caching should be parameterised i.e, the user should easily be able to turn it on or off given the non-deterministic nature of evals -- one would like to run without cache.

should we consider the trade-offs for in memory? I don't think we have too because even though disk caching is way slower than in-memory it is cheaper and can store more and given the biggest bottleneck is LLMs it should be a great fit
yep, lets do that. how many aspects of this should we configure. 2 things I can think off are

on/off (if there are any caching backend specific args, that will come here too)
how to which backend to use

how users will use these config is the question

Instead what we could do is to benchmark how caching affects the testset generation module too - what do you think?

You are right. Test set generation is where I am right now.

should we consider the trade-offs for in memory? I don't think we have too because even though disk caching is way slower than in-memory it is cheaper and can store more and given the biggest bottleneck is LLMs it should be a great fit

In memory should be an option for the users -- maybe test generation benefits from it (just started investigating). The default should be diskcache.

on/off (if there are any caching backend specific args, that will come here too)

I think I have a way to do it cleanly. Will let you know.

The caching works fine with test generation.
But I faced a few issues from my dev branch while running test generation so, did a fresh install in a new environment by cloning directly from the main branch (no fork) to make sure if the issues persist.
I have documented them here #1718. I am either doing something stupid or the issues are real.

thanks a lot for the update @ayulockin 🙂
should we aim to just work on diskcache for now and then open an issue to get more feedback on this

@jjmachan the PR is ready for review.

@jjmachan moved caching to the async def generate method of BaseRagasLLM as per our discussion.

Hey @jjmachan, this is great. Let me quickly implement this.

what do you think?

This is clearly a cleaner approach from a user pov (env can be scary especially in a big project). My approach was to make caching a hidden thing with just the control to turn on/off and select backend but I find your idea more appealing.

I went with the  evaluator_llm = LangchainLLMWrapper(gpt4o, cache=DiskCacheBackend()) approach.


Running with only iBOT loss?

Is the code (supposed to be) structured in a way that allows for training with only iBOT? I've been trying this but have been running into issues, for example, sections like this make me think that the code was designed to always use the DINO loss with only the iBOT loss being optional.
Any clarification would be helpful, thank you!

Hi,
The code is designed to always use DINO, and optionally use iBOT.
It should not be too hard to modify the code to use only iBOT without DINO. However, in my experience the iBOT loss does not work alone, so your training will probably run into instabilities.


Add environment to service config

This adds an optional environment entry for service, defaulting to production. This can be changed to retrieve different configurations depending on whether the service is production or staging/sandbox.

bors r+


v0.9.7 NPE at startup

Hi,
After updating from v0.9.6 to v0.9.7 I now get the following NPE:
Caused by: java.lang.NullPointerException (i.e. beanFactory is null):
	at org.zalando.stups.tokens.AccessTokensBean.configureScheduler(AccessTokensBean.java:215) ~[spring-boot-zalando-stups-tokens-0.9.7.jar:?]
	at org.zalando.stups.tokens.AccessTokensBean.start(AccessTokensBean.java:152) ~[spring-boot-zalando-stups-tokens-0.9.7.jar:?]

Quick fix for now is to add the following configuration:
tokens:
  use-existing-scheduler: false

Please have a look.

thanks for reporting will look into this

Do you have somewhere in your application code like this
@Bean
public AccessTokensBean accessTokensBean(){
    return new AccessTokensBean(...properties ....);
}

or in short, do initialise the bean 'by hand' ?

or do you have 'startAfterCreation'-property set to 'true'?

I have the startAfterCreation enabled.
Em 10/03/2016 1:53 da tarde, "Jörg Bellmann"<EMAIL_ADDRESS>escreveu:

Do you have somewhere in your application code like this
@Bean
public AccessTokensBean accessTokensBean(){
return new AccessTokensBean(...properties ....);
}
or in short, do initialise the bean 'by hand' ?
or do you have 'startAfterCreation'-property set to 'true'?
—
Reply to this email directly or view it on GitHub
https://github.com/zalando-stups/spring-boot-zalando-stups-tokens/issues/2#issuecomment-194829854
.

0.9.10 released some minutes ago should solve this.

confirmed that is fixed with 0.9.10. thanks!


non-integers are not a valid input

also

fixes https://github.com/jonschlinkert/is-even/issues/2
version-bump for is-number

thanks!


Update posix2.d

This is causing 'Protocol not availabl' on Ubuntu 12.04

I think you're right, but it's missing an import to:  import libasync.internals.socket_compat : IPPROTO_TCP

Yeah I forgot that when I made the PR, but it still didn't solve the issue.

Error occurs on setsocketopt setting SO_REUSEPORT.. looking into solution

Seems like a non-issue: https://github.com/joyent/libuv/issues/870

I think the solution would be to treat ENOPROTOOPT as a success in certain circumstances

I think that ignoring ENOPROTOOPT on SO_REUSEPORT would fix this issue.


Bug fixes for generating operation models

Fixes #676

adds --skip-validator to swagger generate operation so that models can be generated without validation
fixes a bug where anonymous response objects were created with a suffix of BodyBody. Now only one Body as appended
adds support for setting the name of an anonymous schema from the title

If any of this is controversial I'd be happy to split it into a separate PR to get the rest merged.

Current coverage is 75.42% (diff: 100%)

Merging #680 into master will not change coverage

@@             master       #680   diff @@
==========================================
  Files             8          8
  Lines          1994       1994
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1504       1504
  Misses          336        336
  Partials        154        154

Powered by Codecov. Last update e4435d7...dfae7e6

thanks!


LICENSE missing copyright line

Hey pires,
Looks like your LICENSE file does not have the filled in Copyright line:
https://github.com/pires/go-proxyproto/blob/bf52da6cb616948e69e6c448d7c1193875ae49e3/LICENSE#L189
Looks like it needs your name and the year filled in.  I'm trying to see if I can include this library into https://github.com/fabiolb/fabio to add proxy v2 support to that project but I need to know the correct copyright line as per their contribution guidelines on attributions :)
Thanks!

Hey @tecnobrat! Thanks for reporting. Let's see what I can do in right now.

Hey @tecnobrat! Thanks for reporting. Let's see what I can do in right now.


module 'audio_session' not found

Hi,
I encounter this issue on the new Mac with the M1 chip.
Launching lib/main.dart on iPhone 12 in debug mode...
Running Xcode build...
 └─Compiling, linking and signing...                        340ms
Xcode build done.                                            4.7s
Failed to build iOS app
Error output from Xcode build:
↳
    objc[7636]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f2fe0188) and ?? (0x117e8c2b8). One of the two will be used. Which one is undefined.
    objc[7636]: Class AMSupportURLSession is implemented in both ?? (0x1f2fe01d8) and ?? (0x117e8c308). One of the two will be used. Which one is undefined.
    ** BUILD FAILED **

Xcode's output:
↳
    /Users/user/Projects/myproject/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'audio_session' not found
    @import audio_session;
     ~~~~~~~^~~~~~~~~~~~~
    1 error generated.
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 12.

As I do not have an M1 Mac, this will be a bit difficult for me to investigate. With a bit of Googling, I found:
https://stackoverflow.com/questions/65089767/class-amsupporturlconnectiondelegate-is-implemented-in-both
Would you be able to experiment with this on your M1 Mac? It's interesting that page mentioned clang as one thing I have noticed is that the latest version of Flutter now inserts // clang-format off into its generated plugin registrants.


depleur:fix/unnecessary-class

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #49207

Hey @depleur,
looks like something went wrong and no files are changed. First commit makes changes to one of the required files, but second commit reverts the change.

As a new contributor, we encourage you to read our contributing guidelines.
We expect our contributors to be aware of the process specific to this project. Following the guidelines religiously earns you the respect of fellow maintainers and saves everyone time.
Some examples of this are:

Do not edit files directly through GitHub – while you can, it's not a good idea.
Make sure you follow the PR checklist and not just tick things off; otherwise, we won't take you seriously.
Use the correct way to link issues in the description of the PR by updating the XXXXXX. Do not just add issue numbers everywhere and anywhere you feel like.
Keep mentions and review requests to a minimum. We understand you are excited about contributing, and our maintainers will get back to you as soon as they get a chance.
Do not work directly off your main branch - create a new branch for the changes you are working on.

We appreciate you taking the time to help us, and we hope to see more contributions from you.
Happy Contributing.

Hey @depleur,
looks like something went wrong and no files are changed. First commit makes changes to one of the required files, but second commit reverts the change.
As a new contributor, we encourage you to read our contributing guidelines.
We expect our contributors to be aware of the process specific to this project. Following the guidelines religiously earns you the respect of fellow maintainers and saves everyone time.
Some examples of this are:

Do not edit files directly through GitHub – while you can, it's not a good idea.
Make sure you follow the PR checklist and not just tick things off; otherwise, we won't take you seriously.
Use the correct way to link issues in the description of the PR by updating the XXXXXX. Do not just add issue numbers everywhere and anywhere you feel like.
Keep mentions and review requests to a minimum. We understand you are excited about contributing, and our maintainers will get back to you as soon as they get a chance.
Do not work directly off your main branch - create a new branch for the changes you are working on.

We appreciate you taking the time to help us, and we hope to see more contributions from you.
Happy Contributing.

Oh I see. I'll fix that and create another pull request then?

No need to create another PR. You can add further commits to the same local branch, and after pushing them to your fork, PR will reflect that.


bug: bug: view-title reloaded

Type: bug
Platform: android 5.x webview
With ionic 1.0.1 when i change tab there is a little time in which there isn't text label:  If i create two tabs whit the same title (e.g Chats) when i swicth from one to the other i expect that the view title dosen't refresh; instead i can see a refresh ("Chat"  --> no title --> "Chat"). The same thing appen witch nav-bar-title.
Whit ionic 1.0.0 beta 13 it doesn't happen!
Any idea?

Greetings @ste5787!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Could you provide a codepen?

Greetings @ste5787!
My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.
Thank you for allowing me to assist you.


Issue with import of scout module in PYTHONPATH

Received the following error when starting up the uWSGI vassel the first time. I took a look at the structure of the scout module and noticed it wasn't laid out as a proper python module, and there was a naming conflict with another module.
...
*** Operational MODE: preforking ***
Traceback (most recent call last):
  File "./wsgi.py", line 29, in <module>
    from cardinal import Cardinal
  File "./cardinal/__init__.py", line 31, in <module>
    from cardinal.views import cardinal_ap_ops
  File "./cardinal/views/cardinal_ap_ops.py", line 32, in <module>
    from cardinal.system.cardinal_fetch import gatherApInfo
  File "./cardinal/system/cardinal_fetch.py", line 30, in <module>
    import scout_info
ModuleNotFoundError: No module named 'scout_info'
unable to load app 0 (mountpoint='') (callable not found or import error)
...

Searching found the name conflicts with the scout REST search engine, therefore I went through and converted it to the module scout_cli, and updated the module to support relative path import. Then went back and updated the reference in cardinal_fetch.py and scout-cli.py.
Additional fix-ups: updated .gitignore to handle all __pycache__ entries with a single line.

Submitted PR #124 for review, comment, and merge.

In the wee hours, I really shouldn't have closed this...

Hey @rmackinnon :wave:
Thanks for the feedback and for checking out Cardinal!

Searching found the name conflicts with the scout REST search engine

Of course someone names a package scout on PyPI :) I haven't even thought about distributing scout over a public medium, other than GitHub, so it didn't even dawn on me. I'll have to think of another name.

ModuleNotFoundError: No module named 'scout_info'

Just curious, are you using the Cardinal demo container (https://github.com/cardinal-dev/Cardinal/tree/master/webapp/docker)? Or are you installing on a dedicated machine? Also, could you please upload your /etc/systemd/system/cardinal.service file?
Unless I'm missing something, if you've created a Python3 venv and pointed PYTHONPATH to the scout directory in the venv, you shouldn't see those import errors.

Ahoy @falcon78921
I actually used the Dockerfile you specified above as the base for creating the container to run with some light modifications...
Dockerfile.txt
cardinal.service.txt
Those modifications would be abstracting away from nginx and mariadb/mysql running locally on the container. I instead run uWSGI locally as the interface, and on another image have nginx run as the front end and mariadb collectively for a selection of other production tasks.
The initial run, with PYTHONPATH set resulted in the path not being found base on the image, nor getting pip to install the required packages.  That was a piece of the modification to the my version of the Dockerfile. I'm currently working on streamlining a mariadb container to attach to. But I can see there is room for improvement. I'm an intermediate Docker user, and still working on building images and Dockerfiles. On my own, I think setting an environment variable to identify the DB server, username is probably the way forward and usage of docker secrets for password handling would be the best practice there.
My start command is as follows:
docker container run -d \
    --name cardinal-container \
    --restart=always \
    --tmpfs /run/lock --tmpfs /tmp --tmpfs /run \
    -p 8080:8080 --network bridge \
    -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
    -v /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd:rw \
    -v /opt/docker/cardinal:/data:rw \
    cardinal:latest

Generally speaking though about scout, having it be forked from the main repo for Cardinal and then pulled in as a dependency imho is probably a cleaner way to do it. That way you abstract away from version conflicts for Cardinal, and can lock it to a specific module version dependency. Then additional dev work on scout (if warranted) would have a lower potential impact on the project and users.
Git wise, you could set it as a submodule if you didn't want to have to rely on PyPI. Just would mean an additional setup step of git submodules --init once setup.

@rmackinnon

Those modifications would be abstracting away from nginx and mariadb/mysql running locally on the container. I instead run uWSGI locally as the interface, and on another image have nginx run as the front end and mariadb collectively for a selection of other production tasks.

I see. Yeah, if you wanna break out Cardinal services into separate containers, you could do that (i.e. the way it should be done). The intent of the Docker project was just to demo Cardinal, so I didn't give a lot of thought in making a production setup. If you get a multi-container environment working (e.g. docker-compose), please feel free to file a PR :)

Generally speaking though about scout, having it be forked from the main repo for Cardinal and then pulled in as a dependency imho is probably a cleaner way to do it. That way you abstract away from version conflicts for Cardinal, and can lock it to a specific module version dependency. Then additional dev work on scout (if warranted) would have a lower potential impact on the project and users.

Again, I definitely see your point. Over time, my focus has shifted back/forth between this and other things. I originally thought about doing two separate repos: one for Cardinal and one for scout. Then I decided to just have Cardinal move around scout, given that the project is still very small.
scout doesn't have any UI components. All of the Cardinal-specific stuff is in webapp/cardinal. That way, if you wanted to, you could build scout-cli into a standalone binary and run it practically anywhere, without having to drag Cardinal around.
Regarding #124, I think keeping the name as scout is good for now. Given that the intent is to create a dedicated venv to run Cardinal in, there shouldn't be any conflicts with the other scout package from PyPI. However, going back to my previous comment, it's definitely something that I would like to do later on.
I definitely appreciate your feedback! This project has been a hobby/learning experience for me. This project definitely
needs work, not denying that ;) Again, please feel free to contribute!

Going to close this issue out. The Cardinal project is ceasing development operations going forward.
See: https://github.com/cardinal-dev/Cardinal/issues/206#issue-1624656677
Cardinal v3.0 will have a significant amount of enhancements/changes. Cardinal v3.0 will also be the final release. Until the release of v3.0, please use Cardinal v2.1. Thank you for using/contributing to Cardinal! :)


USB device is not listed after flash with Zephyr

OS: Ubuntu 16.04
Device: Arduino 101 (Intel Curie Board)
Zephyr SDK: 0.9.1
I have flashed both ARC and X86 cores of Ardunio 101 board as mentioned in this sensor example,
https://www.zephyrproject.org/doc/samples/sensor/bmm150/README.html
And it successfully uploaded image to Arduino 101 device. Here is the output for "make BOARD=arduino_101_sss flash",
CHK     include/generated/generated_dts_board.conf
Using /home/zephyr as source for kernel
GEN     ./Makefile
CHK     include/generated/version.h
CHK     include/generated/generated_dts_board.h
CHK     include/generated/syscall_list.h
CHK     include/generated/syscall_dispatch.c
CHK     misc/generated/configs.c
CHK     include/generated/offsets.h
make[3]: 'isr_tables.o' is up to date.
Flashing arduino_101_sss
dfu-util 0.8
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to<EMAIL_ADDRESS>dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Opening DFU capable USB device...
ID 8087:0aba
Run-time device DFU version 0011
Claiming USB DFU Interface...
Setting Alternate Setting #7 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 0011
Device returned transfer size 2048
Copying data from PC to DFU device
Download	[=========================] 100%        18260 bytes
Download done.
state(2) = dfuIDLE, status(0) = No error condition is present
Done!
But I can not find any USB device listed in my Ubuntu system. To see output logs of board I tried command, sudo picocom /dev/ttyUSB0. But there is no ttyUSB0 device. Also cutecom (sudo apt-get install cutecom) does not show any USB device after flashing.
Output of this command to check connected tty devices: "dmesg | grep tty",
[    0.000000] console [tty0] enabled
[    0.819096] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
I connected Arduino 101 device using USB power cable. I have not used JTAG debugger. Is it necessary to use JTAG debugger if I just want to see execution logs of my program? I want to see those sensor values in console as mentioned in this example, https://www.zephyrproject.org/doc/samples/sensor/bmm150/README.html. But I could not see because USB device does not show.
My issue is similar to this, https://lists.zephyrproject.org/pipermail/zephyr-users/2016-June/000436.html

Hi,
if you build the sample with default settings then you need a additional TTL-to-USB adapter. Required Hardware and Software: "If you wish to grab any data off the serial port, you will need a TTL-to-USB adapter".
https://www.zephyrproject.org/doc/boards/x86/arduino_101/doc/board.html

as mentioned by @jfischer-phytec-iot , you need a dedicated cable for serial, Arduino 101 does not send serial output over the usb cable connected to power the device and flash it.

closing, no further comments


MacOSX CI is broken

🐛 Bug
CircleCI tests of binary_macos_conda_py3.X_cpu are not passing :
https://app.circleci.com/pipelines/github/pytorch/vision/3702/workflows/d3d14328-2f3c-40d8-9bf0-74b090867258
cc @seemethere

I believe this was fixed with https://github.com/pytorch/vision/pull/2633


docs: add document for cwgo platform

What type of PR is this?
docs

Check the PR title.

[x] This PR title match the format: <type>(optional scope): <description>
[x] The description of this PR title is user-oriented and clear enough for others to understand.

(Optional) Translate the PR title into Chinese.
(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: add document for cwgo platform
zh(optional): 为一站式 RPC/HTTP 调用代码生成平台添加文档
(Optional) Which issue(s) this PR fixes:

CI 没过 cc @StellarisW

CI 没过 cc @StellarisW

已修改


Update release check list with new release workflow

Description
This PR proposes a new release workflow by combining major/minor and patch release procedures into one. Once the release is out, the changes from release branch must be merged back to development branch(i.e. master) through a PR.
This workflow resembles prometheus release model.
Merge requirements
Please take into account the following non-code changes that you may need to make with your PR:

[ ] CHANGELOG entry for user-facing changes
[ ] Updated the relevant documentation

IIRC there was a decision to not go with this approach, right? If so, should we close this?


[audible] Add new extractor

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[x] New extractor
[ ] New feature

Description of your pull request and other information
This pull request adds support for Audible.com, which is a store where audiobooks can be purchased.  This code will download an HLS stream used by Audible's web based Cloud Player.  This code also allows the download of a user's entire library of audiobooks via a playlist (AudibleLibraryIE).  When not logged in the code can only scrape limited data (title, author, performer, series, description) about an audiobook as well as download an audio sample, but when logged in more data (performance type, categories, release date, etc.) is available as well as the full audiobooks.
I was unable to automate the login process (I was stopped by a CAPTCHA), so one must login via a browser and export one's cookies to gain access.  I've tested the cookie method (via the --cookies argument) both with an old Audible account and new Amazon account, both work.
I also added an HTML-to-markdown converter.  My reasoning is that some audiobooks, like When Will Jesus Bring the Pork Chops? By: George Carlin, have complicated descriptions with unordered lists, multiple headings, and text emphasis.  I wanted to keep as much of the formatting as possible as well as allowing the description to still be readable as plain text.
The modification to _extract_akamai_formats was to prevent the F4M failure warning when extracting the HLS data.  I used _extract_wowza_formats as inspiration for the change.

You must provide account credentials.
Read coding conventions.
Metadata should be in plain text, no html or markdown.