[SPARK-40142][PYTHON][DOCS][FOLLOW-UP] Remove non-ANSI compliant example in element_at

What changes were proposed in this pull request?
This PR is a followup of https://github.com/apache/spark/pull/37850 that removes non-ANSI compliant example in element_at.
Why are the changes needed?
ANSI build fails to run the example.
https://github.com/apache/spark/actions/runs/3094607589/jobs/5008176959
    Caused by: org.apache.spark.SparkArrayIndexOutOfBoundsException: [INVALID_ARRAY_INDEX_IN_ELEMENT_AT] The index -4 is out of bounds. The array has 3 elements. Use `try_element_at` to tolerate accessing element at invalid index and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error.
    	at org.apache.spark.sql.errors.QueryExecutionErrors$.invalidElementAtIndexError(QueryExecutionErrors.scala:264)
    	...

/usr/local/pypy/pypy3.7/lib-python/3/runpy.py:125: RuntimeWarning: 'pyspark.sql.functions' found in sys.modules after import of package 'pyspark.sql', but prior to execution of 'pyspark.sql.functions'; this may result in unpredictable behaviour
  warn(RuntimeWarning(msg))
/__w/spark/spark/python/pyspark/context.py:310: FutureWarning: Python 3.7 support is deprecated in Spark 3.4.
  warnings.warn("Python 3.7 support is deprecated in Spark 3.4.", FutureWarning)
**********************************************************************
   1 of   6 in pyspark.sql.functions.element_at

Does this PR introduce any user-facing change?
No. The example added is not exposed to end users yet.
How was this patch tested?
Manually tested with enabling the ANSI configuration (spark.sql.ansi.enabled)

@gengliangwang mind taking a quick look please? 🙏

Merged to master.


Update README.md

The code, deleteRecursiveIPv4Entry(), has the right implementation that is removing the IPv4Entry, instead of NHG.

Can you update the otg_tests one as well? feature/gribi/otg_tests/base_hierarchical_route_installation_test/README.md

Can you update the otg_tests one as well? feature/gribi/otg_tests/base_hierarchical_route_installation_test/README.md

Done

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 72.677%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1314

Relevant Lines:
1808

💛  - Coveralls


Define the methods to quack like a logger

Rather than use method_missing just define the methods and let ruby handle the rest naturally.

This closes #5

Thank you. Looks awesome!


Update nf-rometadataresolution-rogetmetadatafile.md

@Jaiganeshkumaran : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@GrantMeStrength : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Thanks for adding the link!


[BUG] Device ID explanation

When trying to perform the device update I have to enter the device ID. It was not clear what this ID should be, I tried to use the serial number I used earlier on in the process but this lead to a stuck update campaign saying it had an invalid UUID.
The instructions should be updated to explain you can get this ID from: https://portal.mbedcloud.com/devices/list in the Device ID column

fixed in PR https://github.com/ARMmbed/mbed-os-example-pelion-armdevsummit/pull/10


ScalaObjectMapper for the endpoint '/swagger.json` should use lowerCamelCase Strategy

Hi. I found there is a bug related to ScalaObjectMapper in DocsController
For below SwaggerModule with termsOfService and SecurityRequirement
object RealworldSwaggerModule extends SwaggerModule {

  @Singleton
  @Provides
  def openAPI: OpenAPI = {
    val openAPI = new OpenAPI()

    val info = new Info()
      .description("The Student / Course management API, this is a sample for swagger document generation")
      .version("1.0.1")
      .title("Student / Course Management API")
      .termsOfService("http://swagger.io/terms/")
      .contact(
        new Contact()
          .name("Swagger API Team")
          .url("http://swagger.io")
<EMAIL_ADDRESS>      )
    openAPI
      .info(info)
      .addServersItem(new Server()
        .url("https://api.example.com/v1")
        .description("Production Server"))
      .components(
        new Components()
          .addSecuritySchemes(
            "sampleBasic",
            new SecurityScheme()
              .`type`(io.swagger.v3.oas.models.security.SecurityScheme.Type.HTTP)
              .scheme("basic")
          )
      )
      .addSecurityItem(new SecurityRequirement().addList("sampleBasic", "basic"))
  }
}

with sample Main code in below
class Realworld extends HttpServer {

  override val name: String                   = "SampleApp"

  override protected def modules: Seq[Module] = Seq(RealworldSwaggerModule)

  override def configureHttp(router: HttpRouter): Unit = {
    router
      .filter[CommonFilters]
      .add[DocsController]
      .add[SampleController]
  }
  override protected def disableAdminHttpServer: Boolean = true
  override protected def defaultHttpPort: String         = ":8080"
}

object RealworldMain extends Realworld

The Swagger UI does not shows Terms of Service & the Authorize button

because what DocsController use is a default ScalaObjectMapper which gives snake_case converted swagger.json in endpoint /swagger.json

They should be camelCased instead.

I found that by overriding default jackson module to use camel case by adding belows, it fixed
// for RealworldMain
override protected def jacksonModule: Module = RealworldObjectMapperModule

// add RealworldObjectMapperModule
object RealworldObjectMapperModule extends ScalaObjectMapperModule {
  override val propertyNamingStrategy: PropertyNamingStrategy = PropertyNamingStrategy.LOWER_CAMEL_CASE
}

But it is not applicable for some use cases. (for me it is enough!)

I think fixing DocsController's object mapper to lowerCamelCase strategy is quite reasonable solution for this problem
By the way, thank you for maintaining this great opensource with great usability.

Hi @ndy2 thanks for pointing this out. I don't think I will have time this week or next to look into this more, I might have some time around the holidays though. If you need a fix faster, Im happy to look at any Pull Requests.
My only hesitation is that this might change how the parameters in the requests are rendered, but I will check that with some of my projects when I test locally.
Thanks!


Fixed bug introduced by supplying wrong state to Mellinger

Fix for #17
Changed intrinsic XZY to extrinsic xyz for rotations, used ang_vel from sim instead of finite differences for Mellinger, transformed ang_vel from world to body for Mellinger,

I wanted to have automated testing for this issue and then realized that the dyn physics mode was also broken because of this issue. Since I could not edit this PR I have fixed the original issue in 1ff2931 while also adding the fixes for the physics mode and more tests. You are now co-author of that commit instead, I hope that's okay with you.


RDKCMF-8858 RDKShell: also check for gRdkShellSurfaceModeEnabled in l…

…aunchApplication

launch() already checks for gRdkShellSurfaceModeEnabled and uses rdkshell_display in that case. Do the same for launchApplication().

Internal ticket for tracking https://ccp.sys.comcast.net/browse/RDKCOM-3314


Rewrite some unit tests using MockK instead of using mocked classes

Something probably could be covered by integration tests, but still we can improve the unit tests in some ways.
The current mocked classes return a single response regardless the arguments provided.
That means we are unable to ensure correct arguments are being passed to the mocked classes in some of the current unit tests.
Using MockK to return different results according to the arguments can help assert the function being tested is actually passing the expected values as arguments.

Rescheduled to Milestone 2212 as the project reached stable state.
Using MockK should introduce performance impacts so it will have to be used only when tests require better return values.

Latest understanding would be to use fakes instead of mocks if possible. This will not be proceeded.


Same incompatibility issue between Rasa & Rasa-X and low conf level in every release.

Hi,
This is an issue which I am continuously facing while updating the rasa version. earlier also I reported the same issue. I upgraded my rasa version to 1.8.0 on dev server and did testing, result was different then  version 1.4.3. So as per your suggestion I changed the confidence level from 0.80 to 0.65. and stabilized my chatbot use cases . That time also rasa new version was not compatible with rasa-x new version.
Now I tried to setup the same version 1.8.0 on my another environment but new versions have been released, so I updated with 1.8.2 and verified that most of the use cases are failing in 1.8.2, so I updated with 1.9.0 but new rasa-x 0.26.3 version again not compatible with rasa 1.9.0 new version.  I don't know which version I should follow?

Why most of the time in the first instance both rasa and rasa-x doesn't compatible with each other?
Why in every release we see volatility in confidence level? I can understand you change algorithm but still volatility should not be high. Its very difficult everytime to upgrade the new version and see less confidence level of the same use cases which were working fine in previous one.
Must have some commands or way to Install specific version of rasa.
How will we get to know which rasa-x version is compatible with rasa version?
How to check rasa-x installed version?

Please rectify these issues.
Thanks and Regards
Harsh

Thanks for the issue, @dakshvar22 will get back to you about it soon!
You may find help in the docs and the forum, too 🤗

Are you trying to install Rasa Open Source and Rasa X in the same python environment?

do you see confidence levels decrease between 1.8.0 and 1.8.2?

Yes, I am installing in the same environment.  I follow the below commands :
python3.6 -m venv rasa_env
source  rasa_env/bin/activate
sudo apt-get install python3.6-dev
pip install twisted
pip install rasa-x --extra-index-url https://pypi.rasa.com/simple
pip install rasa[spacy]
python -m spacy download en_core_web_md
python -m spacy link en_core_web_md en
pip install rasa
pip install rasa[tensorflow]
pip install pandas
yes confidence level is low... thats why it's going into fallback policy. Many use cases are falling into the TwoStageFallBack policy.

Hey @kapoorh

How to check rasa-x installed version

you can use this endpoint for that.

Why most of the time in the first instance both rasa and rasa-x doesn't compatible with each other

Could you please elaborate on this?

Hi @degiz ,
With the help of above commands I setup my environment. Then I saw the new released version of Rasa 1.9.0 so upgrade the same version with - pip install rasa --upgrade
But I got an error:
ERROR: rasa-x 0.26.3 has requirement rasa<1.9,>=1.8.1, but you'll have rasa 1.9.0 which is incompatible.
Installing collected packages: rasa
Attempting uninstall: rasa
Found existing installation: rasa 1.8.2
Uninstalling rasa-1.8.2:
Successfully uninstalled rasa-1.8.2
Successfully installed rasa-1.9.0
Thanks and Regards
Harsh

Hey @kapoorh
Thanks, I see now.
As you've mentioned, you're installing pip package of rasa-x to the same env as rasa.
I suppose that then you're running rasa-x in a local mode after that. However, local mode is there mostly to enable the development.
rasa-x and rasa still share some code, and each release pushes the required version further. That's the reason you face incompatible version.
We strongly recommend to use docker compose setup instead. In that case you won't be installing package for rasa-x at all, and containers will communicate via REST API, which we always keep backward compatible.
If you still want to keep trying to use local mode, then please use separate venv for both rasa and rasa-x.

Hi @degiz ,
Thanks for an update. But in this case I'll have to run both the services differently, right now I run only rasa-x and action service.  It automatically starts rasa.
I have to do this without docker. Still if I do it with docker or without it should be compatible in both the scenarios.

When I start rasa-x with - "rasa x" then it doesn't point to the latest model, everytime I go to the Rasa X UI and make it active.
I have to install rasa 1.8.0, how can I?
Why conf level decreases with new version?

Please let me know about these.
Thanks and Regards
Harsh

@kapoorh
pip install  rasa-x==0.26.3 --extra-index-url https://pypi.rasa.com/simple
rasa                       1.8.3
rasa-sdk                1.9.0
rasa-x                    0.26.3

Hi @hello-code
Thanks for a reply. Solved my problem.
Thanks everyone :)
Regards
Harsh


Memory Efficiency in cho_solve and cho_factor

Is your feature request related to a problem? Please describe.
I am solving large least square problems using direct methods. I am a bit puzzled by the memory management of cho_solve and cho_factor. The documentation of cho_factor states the following:
Warning
The returned matrix also contains random data in the entries not used by the Cholesky decomposition. If you need to zero these entries, use the function cholesky instead.
So in my case the matrix A is approximately 40.000 x 40.000 and takes 16 GB in float64. The Cholesky factor has the same size and takes another 16 GB. My PC has 32GB of ram so I can't proceed.
Describe the solution you'd like.
A is symmetric so I would only need to store half of it, while the Cholesky factor has 8GB of useless random numbers in it.
If one could store these matrices taking only the relevant half of the Cholesky factor and only half of A, then I would save 16 GB of memory in total and I would be able to run my calculations.
Wouldn't make sense to have such a tool implemented by default in chol_factor and cho_solve?
Thank you for the amazing work you are doing
Describe alternatives you've considered.
using cholesky, as suggested by the manual, replace the random numbers with zero but does not solve the problem of memory management.
Another solution could be to use sparse matrices, but it cho_solve and cho_factor do not handle these.
Additional context (e.g. screenshots, GIFs)
No response

cho* functions are rather thin wrappers of low-level lapack routines. Those do give more control over memory management, which is lost in the wrappers:
https://github.com/scipy/scipy/blob/v1.7.1/scipy/linalg/decomp_cholesky.py#L207
Your best bet seems to use low-level lapack routines directly. Either pyhton f2py wrappers, or even the cython_lapack bindings which expose the full lapack functionality in all its gory detail.
Overall, I'd think that scipy.lapack functions should stay to be simple-to-use convenience wrappers.

Thank you for your excellent response! I missed this banded solver. It seems to be doing exactly what I need. I test it asap.
Best


Question about the edge_rot_mat

Hi, thanks for your wonderful work and code! I am new to the equivariant learning area, and I am trying to understand each step of your code. I suspect this function (the function for calculating the edge rotation matrix) would break the equivariance during the edge-degree embedding layer.
In this function, you set the original edge_distance_vec as the final x_axis, and randomly select the y-axis and generate the z_axis according to the other two axes. I think this random operation is not correct.
For example, suppose I send two same molecules into the network, where the coordinates of one molecule are translated relative to the other molecule, but not rotated. If the network is SE(3)-equivariant, the final feature should be the same for these two molecules. However, during the above function, they will have different edge rotation matrices on the same edge since the randomly selected y_axis, and the corresponding Wigner-D matrix would be different, thus during the edge-degree embedding layer, the embedding of the two molecules are different since this step uses the Wigner-D matrix. This breaks the equivariance for all features with type>0.
I am not sure if I am correct. Looking forward to your opinion on this issue.

Hi, I have tried a toy example, and found that the edge-degree embedding is OK, but the final results are not SO(3)-rotational equivaraint. It seems some small errors continue to accumulate after each TransBlockV2 (this step), and the reason is also from the SO(3)_Rotation class, i.e., the Wigner-D matrix.

Hi @HeegerGao
The rotation (and inverse rotation after SO(2) linear layers) make everything SO(3)-equivariant.
You can check the papers of eSCN and EquiformerV2 for more details.
There are many other things in the TransBlockV2. For example, the S2 activation would introduce some small equivariance differences.
Since you mentioned the edge-degree embedding, containing the rotation, is equivariant, I think the equivariance errors do not come from the rotation (or Wigner-D matrices).
Can you please check if there is something that contributes to the small equivariance errors you observed (for example, S2 activation)?


Mac系统下部署安装完成的问题

Reminder

[X] I have read the README and searched the existing issues.

Reproduction
1
Expected behavior
1
System Info
M1芯片 MacOS 14.5
Others
启动加载模型都成功，在问答的时候报错如下：
Exception in thread Thread-8:
Traceback (most recent call last):
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/Library/Python/3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/Users/zhugang/Library/Python/3.9/lib/python/site-packages/transformers/generation/utils.py", line 1569, in generate
model_kwargs["attention_mask"] = self._prepare_attention_mask_for_generation(
File "/Users/zhugang/Library/Python/3.9/lib/python/site-packages/transformers/generation/utils.py", line 468, in _prepare_attention_mask_for_generation
raise ValueError(
ValueError: Can't infer missing attention mask on mps device. Please provide an attention_mask or use a different device.

@zhug-e Hi, any fixes for this yet? am facing the same issue.

find File "/Users/zhugang/Library/Python/3.9/lib/python/site-packages/transformers/generation/utils.py", line 468
Comment out this detection judgment

It can be executed normally with the latest mps version of pytorch.

Thank you very much for your help, according to this method is effective!
发自我的iPhone
------------------ 原始邮件 ------------------
发件人: ZHAOKAI WANG @.>
发送时间: 2024年5月26日 17:17
收件人: hiyouga/LLaMA-Factory @.>
抄送: zhug-e @.>, Mention @.>
主题: Re: [hiyouga/LLaMA-Factory] Mac系统下部署安装完成的问题 (Issue #3873)
find File "/Users/zhugang/Library/Python/3.9/lib/python/site-packages/transformers/generation/utils.py", line 468
Comment out this detection judgment
It can be executed normally with the latest mps version of pytorch.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

fixed


Add to homebrew

https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md

I'm hoping someone with experience with Homebrew can implement this one.

I think homebrew is more for command line packages, but I could be wrong. Maybe CocoaPods and Carthage would better suit for SwiftShell?

You're right, but Swiftshell is both a framework and a shell script  which you call in the shebang at the top of your swift scripts. The problem now is that all swift frameworks have to be recompiled for every version of the compiler, so in its current version swiftshell isn't a good fit for homebrew. So I'll close this until there is a solution to this problem.


Implement cluster sync for manual Chart release actions

flux#980 opened by tamarakaufler

Is this a duplicate?

This was created unintentionally when I created a github project card. Closing.

Created unintentionally when I created a github project card.


Add license

Hi @WhoIsJack ,
that's a fantastic repository! I was just wondering under which conditions one could reuse the code and materials provided here. Would you mind adding a license file? If you're new to licensing and/or wonder which license to use, you can read more in this blob post: https://focalplane.biologists.com/2023/05/06/if-you-license-it-itll-be-harder-to-steal-it-why-we-should-license-our-work/
Thanks!
Best,
Robert

Hi Robert,

that's a fantastic repository!

A debatable claim given its age and the slapdash nature of those Coding Club sessions from back in the day. These are tutorials for n00bs by a n00b; please bear that in mind when repurposing material.
MIT license added. Closing.
Cheers,
Jonas

Amazing, thanks for the light speed response!


Bug: unlreal locationg cause by lsp_status.status

Self Checks

[x] I'm using the latest lualine and neovim nightly.
[x] I didn't find the issue in exsisting issues or prs.

How to reproduce the problem
fast typing and adding lsp_status.status with some configuration cause this problem. removeing lsp_status.status  solves the problem
Actual behaviour
when i add lsp_status.status to section(lualine), speed typing cause some types of glitch or shows false locations
Expected behaviour
adding lsp_status.status should not cause showing false location
Aditional information

Minimal config to reproduce the issue

Config
local lsp_status = require('lsp-status')
local lspconfig = require('lspconfig')
-- Some arbitrary servers
lspconfig.clangd.setup({
  --handlers = lsp_status.extensions.clangd.setup(),
  --on_attach = lsp_status.on_attach,
  capabilities = lsp_status.capabilities
})

lspconfig.pyls_ms.setup({
  handlers = lsp_status.extensions.pyls_ms.setup(),
  settings = { python = { workspaceSymbols = { enabled = true }}},
  on_attach = lsp_status.on_attach,
  capabilities = lsp_status.capabilities
})

lspconfig.ghcide.setup({
  on_attach = lsp_status.on_attach,
  capabilities = lsp_status.capabilities
})

lspconfig.rust_analyzer.setup({
  on_attach = lsp_status.on_attach,
  capabilities = lsp_status.capabilities
})

require'lualine'.setup {
  sections = {

    lualine_x   = {
        lsp_status.status,
        left_padding    = 1,                -- adds padding to the left of components
        right_padding   = 1,                -- adds padding to the right of components
        component_separators = '',
    },

    lualine_z   = {
        {
            'progress',
            left_padding = 1,
        },
        {
            'location',
            right_padding = 0;
        },
    }

  }
}

Parcentage isn't counted by lualine . Rather by (neo)vim . here just provides the builtin progress element .
It's either a lsp-status bug or a vim bug .

well look at this video. i thinks it's lualine bug. not only numbers but strings are also getting affected
https://user-images.githubusercontent.com/41078534/125684916-a337d26d-a32f-4dc5-92fe-5a909946def4.mp4

Can you still reproduce this issue ?
If you can can you put
if is_focused then
  print(vim.inspect(status))
end

In this line
https://github.com/hoob3rt/lualine.nvim/blob/9726824f1dcc8907632bc7c32f9882f26340f815/lua/lualine/init.lua#L88
While reproducing it and give me the output in your messages . This looks really odd . And I can't think of a reason for this to happen . It might be an neovim issue . Looking at those output we can figure out if lualine was emmiting wrong numbers or if neovim was drawing them wrong .


[BUG] DllImport makes problems on some Pcs

Issue description
Hello, I'm encountering an issue with the .dll importer in C#. It's a bit puzzling because it seems to work on some PCs but not others. On my main development machine, everything runs smoothly. However, on my test PC, I consistently encounter an error. Interestingly, on my sister's PC, it works flawlessly. It's quite perplexing, but I found that replacing the .dll with the original joltc one resolves the issue on any PC.
Issue screenshot

You have own joltc.dll? In that case I cannot help, if it happens with joltc.dll from this repo I can try to help.
Try also to install visual studio 2022 C++ runtime in case

I got some reports, here one that has a few more details:
[Sparkle.CSharp.Game :: Run] Initialize physics...
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'joltc' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
dlopen(/Users/artha/Downloads/Test(1)/joltc.dylib, 0x0001): tried: '/Users/artha/Downloads/Test(1)/joltc.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/artha/Downloads/Test(1)/joltc.dylib' (no such file), '/Users/artha/Downloads/Test(1)/joltc.dylib' (no such file)
dlopen(joltc.dylib, 0x0001): tried: 'joltc.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSjoltc.dylib' (no such file), '/usr/lib/joltc.dylib' (no such file, not in dyld cache), 'joltc.dylib' (no such file), '/usr/local/lib/joltc.dylib' (no such file), '/usr/lib/joltc.dylib' (no such file, not in dyld cache)
dlopen(/Users/artha/Downloads/Test(1)/libjoltc.dylib, 0x0001): tried: '/Users/artha/Downloads/Test(1)/libjoltc.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/artha/Downloads/Test(1)/libjoltc.dylib' (no such file), '/Users/artha/Downloads/Test(1)/libjoltc.dylib' (no such file)
dlopen(libjoltc.dylib, 0x0001): tried: 'libjoltc.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibjoltc.dylib' (no such file), '/usr/lib/libjoltc.dylib' (no such file, not in dyld cache), 'libjoltc.dylib' (no such file), '/usr/local/lib/libjoltc.dylib' (no such file), '/usr/lib/libjoltc.dylib' (no such file, not in dyld cache)
dlopen(/Users/artha/Downloads/Test(1)/joltc, 0x0001): tried: '/Users/artha/Downloads/Test(1)/joltc' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/artha/Downloads/Test(1)/joltc' (no such file), '/Users/artha/Downloads/Test(1)/joltc' (no such file)
dlopen(joltc, 0x0001): tried: 'joltc' (no such file), '/System/Volumes/Preboot/Cryptexes/OSjoltc' (no such file), '/usr/lib/joltc' (no such file, not in dyld cache), 'joltc' (no such file), '/usr/local/lib/joltc' (no such file), '/usr/lib/joltc' (no such file, not in dyld cache)
dlopen(/Users/artha/Downloads/Test(1)/libjoltc, 0x0001): tried: '/Users/artha/Downloads/Test(1)/libjoltc' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/artha/Downloads/Test(1)/libjoltc' (no such file), '/Users/artha/Downloads/Test(1)/libjoltc' (no such file)
dlopen(libjoltc, 0x0001): tried: 'libjoltc' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibjoltc' (no such file), '/usr/lib/libjoltc' (no such file, not in dyld cache), 'libjoltc' (no such file), '/usr/local/lib/libjoltc' (no such file), '/usr/lib/libjoltc' (no such file, not in dyld cache)

   at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable`1 searchPath, Boolean throwOnError)
   at JoltPhysicsSharp.JoltApi.OnDllImport(String libraryName, Assembly assembly, Nullable`1 searchPath)
   at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
   at JoltPhysicsSharp.JoltApi.JPH_Init(UInt32 tempAllocatorSize)
   at JoltPhysicsSharp.Foundation.Init(UInt32 tempAllocatorSize, Boolean doublePrecision)
   at Sparkle.CSharp.Physics.Simulation..ctor(PhysicsSettings settings) in F:\projects\Sparkle\src\Sparkle\CSharp\Physics\Simulation.cs:line 26
   at Sparkle.CSharp.Game.Run(Scene scene) in F:\projects\Sparkle\src\Sparkle\CSharp\Game.cs:line 96
   at Program.<Main>$(String[] args) in F:\projects\Sparkle\src\Test\Program.cs:line 11
fish: Job 1, './Test' terminated by signal SIGABRT (Abort)
artha@CookieMac ~/D/Test(1) [SIGABRT]>

Can you try with latest github version?

Can you try with latest github version?

Sadly not, my project base on the nuget packet and if i try to compile it with the Source code (Github) i get some errors:

Please try with version 2.2.2 from nuget

Please try with version 2.2.2 from nuget

Same error

looks like you're need to include libjoltc.dylib

looks like you're need to include libjoltc.dylib

That's should be automatically be added by .net compiler

it do not work then

Don't know what to do, I don't have a macos, so it's impossible for me to debug and fix the issue

Same on happans on linux too

ops sry nope it just happans on MacOS.

Don't know what to do, I don't have a macos, so it's impossible for me to debug and fix the issue

You dont need one, just get sure the .dll get added to the build.

Lol, feel free to fix it and submit PR

Lol, feel free to fix it and submit PR

Oh and it just happans for nuget if i build it with the github source code it works fine.

Fixed


Update stream-analytics-with-azure-functions.md

Adding one limitation while using Azure Funcitons with Stream Analytics.

@viskri-msft : Thanks for your contribution! The author, @jasonwhowell, has been notified to review your proposed change.

@viskri-msft : Thanks for your contribution! The author, @jasonwhowell, has been notified to review your proposed change.

#sign-off
CC: @mamccrea

@tfosmark : Thanks for your contribution! The author, @jasonwhowell, has been notified to review your proposed change.


feat: Added mkfsParams to storage class example

Longhorn 4642
Signed-off-by: Ray Chang<EMAIL_ADDRESS>

I've add the parameter mkfsParams in helm chart files includes storageclass.yaml and values.yaml.


Implement exceptions

TODO:

[ ] add tests

[ ] what cases to test?

You @ddjoh mentioned that you had to implement your own conversion function (might it have been str to int?) because the builtin one throws an exception and since we haven't properly implemented exceptions, you weren't able to catch it. This is pretty bad and in a later conversation with @nordlander we decided that it is better to pause his current work on actor / class unification, which is a larger piece of work, and fast-track the exception handling work, at least getting the basics of catching exceptions in there.
@ddjoh you have also mentioned tagged unions quite a lot when we talk about error handling. Do you have some example cases where you think tagged unions would be particularly suitable rather than exceptions or vice versa?

I think tagged unions are intimately connected to the concept of pattern-matching, and Python's recent 'match' statement provides pattern-matching in a rather appealing way. So implementing 'match' (with type inference) is indeed a natural step for us to take rather soon.
With pattern-matching available, a tagged union is essentially just a class with some sub-classes defined, where each sub-class represents an alternative way of constructing a value of the parent type. However, I'd argue that good tagged union support also requires a syntactic ability to freeze such a class hierarchy, so that further alternatives can't be silently added long after supposedly complete pattern-matching functions are defined. I actually have a proposal to that effect:
class MyUnion:
    case AltOne:
        x : int
    case AltTwo:
        pass
    case Variant3:
        x : str
        y : bool

This would directly correspond to the regular hierarchy
class MyUnion:
    pass
class AltOne from MyUnion:
    x : int
class AltTwo from MyUnion:
    pass
class Variant3 from MyUnion:
    x : str
    y : bool

but with the added constraint that further sub-classes can't be added to MyUnion if defined using my proposed syntax. I also believe this syntax blends well with other features of our class declarations, like generics and the new constructor parameters, but the details have to be worked out, of course.
Tagged unions to the rescue!

One example of tagged unions for error handling is what is used by Rust which translated into the above could look something like:
class Result[R, E]:
    case Ok:
        result : R
    case Err:
        error : E

Now instead of something like:
class Stream:
    def read_int(self) -> int:
        if (...):
            raise StreamError()
        ...
        return some_int

We can do:
class Stream:
    def read_int(self) -> Result[int, StreamError]:
        if (...):
            return Err(StreamError())
        ...
        return some_int

Chaining multiple matches can become quite verbose, where (again) Rust provides an error propagation operator ? that has special knowledge of Result and attempts to match an unwrap the value in Ok(result) or performs a return of Err(error) from the encompassing function.
E.g:
def ReadPair(stream: Stream) -> Result[(int, int), StreamError]:
    x = stream.read_int()?
    y = stream.read_int()?
    return (x, y)

as equivalent to:
def ReadPair(stream: Stream) -> Result[(int, int), StreamError]:
    x_r: Result[int, StreamError] = stream.read_int()
    match x_r:
        case Ok(x):
            y_r: Result[int, StreamError] = stream.read_int()
            match y_r:
                case Ok(y):
                    return (x, y)
                case Err(e):
                    return Err(e)
        case Err(e):
            return Err(e)

Corresponding error handling with static type checking can of course also be achieved through checked exceptions which might look more pythonic.

I think this is mostly done now although we are missing tests....

@nordlander do you want to comment on what cases to test for?

I'd argue we're not there yet, the limitation that bans exception handling in mut context is probably going to hit the acton-streamer quite often (from what I've seen). I now have a compilation technique for the non-CPS case that's going to work wonders, but while implementing that I've discovered two bugs in the existing CPS-based code as well (which just illustrates that my previous test cases have been insufficient).
So my action plan is to fix the current bugs, implement my new compilation scheme for the non-CPS case, and write a comrehensive suite of unit tests for each combination of

CPS/non-CPS contexts
Flat/nested try statements
Absence/presence of else and final clauses
Result of each clause (fall-through, return, break, continue, and raise)

Fixed by #1463. Closing


Make it work on Windows

Remove capturer dependency: use contextlib.redirect_* instead.
Also fixed some other minor issues
See #13

@selimb Thanks!

@mkurnikov Welcome! Thanks for your work on this.


Charts[Network]: update service name to match StatefulSet to support Kube DNS

required by https://github.com/hashgraph/solo/issues/96

:tada: This issue has been resolved in version 0.24.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


config is not reloaded when changed

The configuration should be reloaded when...

[ ] ...changing between dashboards with different configurations
[ ] ...changing the configuration with the "Raw configuration editor"

In Android (Samsung S21) when updating the source (and maybe after updating the version via HACS too) I found it to be necessary to:

Close the HA App
Delete HA's App cache
Reopen the HA App
For changes to be picked up

Delete cache should not be necessary.

On mobile:

Close the app, swipe it away from "recent apps", reopen it

On desktop:

Just refresh the page

I'm thinking about people using a tablet in Kiosk mode. It just stays there forever

Everything will become sluggish after a while for no good reason

I think you commented on the wrong issue, otherwise I don't understand how is this related to the config autoreload.

I think you commented on the wrong issue, otherwise I don't understand how is this related to the config autoreload.

absolutely, I just deleted the messages. Sorry for that.
Regarding the deleting the cache, maybe it is because of how I transfer the files during development (copy via ssh in the command line). I needed to clear the cache each time I updated the code

Oh, and I mean changing the source code, not the config.


fix(cli): Delete dependency with vulnerability

copilot:all

Current dependencies on/for this PR:

main

PR #4292   👈

This comment was auto-generated by Graphite.


NODE_ENV is set to '[object Object]' in the development environment

It took me some time to understand why string variables need to be wrapped into single and double quotes but I wasn't familiar with webpack.DefinePlugin and its wrap everything in JSON.stringify!
Anyway, the actual value of NODE_ENV in the development environment is set to '[object Object]'.
$ node

> var config = { env: require('./config/dev.env.js') }
undefined

> config
{ env: { NODE_ENV: '"development"' } }

> process.env.NODE_ENV = config.env
{ NODE_ENV: '"development"' }

> process.env.NODE_ENV
'[object Object]'

This could be fixed by using JSON.stringify and JSON.parse in config files.
E.g. changing config/dev.env.js…
module.exports = merge(prodEnv, {
  NODE_ENV: JSON.stringify('development')
})

…and changing build/dev-server.js:
if (!process.env.NODE_ENV) process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV)

Maybe there is a better way?

Oh, that's my mistake, seems i didn't test this thoroughly enough in a recent commit.
I'll fix it later.
Thanks!

it's fixed some time already, forgot to close.


Shapehelper reorg: Adding of the shape helper interface

Every ONNX ops now has a getShapeHelper(...) function that returns the proper shape helper object for the given ONNX operation.
At this time, there remains about 30+ ops that do not have shape helpers. Some are trivial, some not so. A later PR will add the remaining easy ops without shape helpers.
Since the interface is mandatory, operations without shape helpers return a generic ONNXUnimplementedOpShapeHelper that fails when calling computeShape on it.
The interface has the following comment:
     Interface to access a registered method to infer the return shapes for an
    operation that can be used during type inference. The shape inference
    interface method takes an operation and its operands as input, augmented
    by an index expression builder and an index expression scope as optional
    inputs. It returns a specialized shape helper object for that operation,
    casted as a generic ONNXOpShapeHelper.

    For operations that do not support shape helpers at this stage, a
    `ONNXUnimplementedOpShapeHelper` object is returned. This object does not
    compute shapes, and simply return failure when `computeShape` is called
    on it.

    The new object is allocated on the heap and it is the responsability
    of the object user to free the memory after last use.

This interface is not yet hooked up to the Analysis or shape inference passes.

#1955 implements the changes proposed in this PR.


Multiple feature requests for Periscope, Sometimes it does not merge ts segments

Please follow the guide below

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

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.04.19. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2016.04.19

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[x] Feature request (request for a new functionality)
[x] Question
[ ] Other

Description of your issue, suggested solution and other information
1) Questions (general)
1.1) How i can set default output template for a specific site. For example when i download a video from youtube, i want it as "%(uploader)s %(uploader_id)s/%(upload_date)s %(id)s %(title)s.%(ext)s". Because it is hard to type every time.
1.2) Is there a program or script that uses youtube-dl in background to automatically download new videos from the selected channels with selected Itag's? Currently i use youtube-dl to download an entire channel, but in every run it checks already downloaded videos and this takes too much time.
1.3) When we download a replay from periscope, youtube-dl uses ffmpeg to convert multiple ts segments to one single mp4 file. Is this conversion lossless? And what about live streams, why it has to use ffmpeg while downloading? Why not using it to merge segments just at the end of the download?
1.4) When we download from periscope, is there a quality difference between live streams and replays? (assuming our connection with periscope servers are %100 healthy)
2) Bug Reports (for periscope)
2.1) Sometimes, when i download a replay from periscope there happens an error and it doesnt merge downloaded segments. I dont know exactly when this happens but it happens rarely and very annoying. So i cant provide you a console output, but i guess it is happening when the streamer deletes that stream while i downloading.
3) Feature Requests (for periscope)
3.1) Just as we can download an entire youtube channel, can you make possible to download all replays of a given periscope user?
3.2) Can you add a command for downloading comments and hearts in a txt file? katch.tv already does more than this, but it archives only your streams not others.
Example format: [TIME] [Username] [Color] [Comment]
3.3) Sometimes i like a live periscope stream and want it to download its replay as soon as the stream ends. Can you add a command that checks the stream every X seconds until it ends, then starts to download?
Example: youtube-dl --only-replay https://www.periscope.tv/w/1OdJrQMEazqGX
//waits until the stream ends then starts downloading replay
Example: youtube-dl --live-and-replay https://www.periscope.tv/w/1OdJrQMEazqGX
//records the live stream until it ends then starts downloading replay, and if it can completely download replay, it will automatically deletes the live record which is not necessary anymore.

I'm not a developer, but you raised some interesting points, so I'll try to get the discussion started...

1.1) How i can set default output template for a specific site

You can write a small shell script that calls youtube-dl with your preferred template options, and run it when you want to download from that specific site.

1.3) When we download a replay from periscope, youtube-dl uses ffmpeg to convert multiple ts segments to one single mp4 file. Is this conversion lossless? And what about live streams, why it has to use ffmpeg while downloading? Why not using it to merge segments just at the end of the download?

Yes, that conversion is lossless (.ts segments are just chunks of a .mp4 stream). About live streams: that's exactly what happens in the background, segments are merged into a single file, and ffmpeg is used because it's quite good at that job :)

1.4) When we download from periscope, is there a quality difference between live streams and replays?

In principle no. But as you mentioned, connection problems (either on your side, or on the side of the broadcast author) can cause problems in the recorded video (e.g. image gets stuck for a while, some parts of the broadcast are missing, audio/video out of sync). When the connection problem is on your side, you can download the replay file to get a good recording; but if there's a connection problem on their side (bad mobile network coverage) the replay file will have the same problems too.

2.1) Sometimes, when i download a replay from periscope there happens an error and it doesnt merge downloaded segments.

Yes, it happens. Maybe an option could be added to automatically delete .mp4.part-Frag  files when the ffmpeg process fails because the replay has disappeared (but be sure to only delete the Frag files, NOT the mp4.part file, which is a playable, though partial, video file)

3.1)
...
3.2)

These features sound interesting, I suggest you open a ticket for each of them, so that they can be discussed (BTW 3.1 is feasible, I have a bash script that implements it, but unfortunately I'm not that good at python)

3.3) Sometimes i like a live periscope stream and want it to download its replay as soon as the stream ends.

You can run youtube-dl URL && youtube-dl URL and you will get both the live recording and the replay.

Thanks @Vrihub for these answers. Here are some extra points:

1.1) How i can set default output template for a specific site

Another option: using a configuration file.

1.2) Currently i use youtube-dl to download an entire channel, but in every run it checks already downloaded videos and this takes too much time.

--download-archive should help.

1.3) And what about live streams, why it has to use ffmpeg while downloading?

The reason is ffmpeg is currently the only one that can do that. youtube-dl's downloader is incomplete and unable to handle live streams. In fact, ffmpeg is not perfect, either. (#9349)

For bug reports, it's almost impossible to fix it without a verbose log. You may want to add -v to youtube-dl every time to get a valid copy of console outputs.
For feature requests, please open an issue for each one. It's difficult to track multiple features in a single issue.

BTW 3.1) is now implemented, see #9388


Business Hours

Business Hours
User Story
AS AN employee with a busy schedule
I WANT to add important events to a daily planner
SO THAT I can manage my time effectively
Acceptance Criteria
GIVEN I am using a daily planner to create a schedule
WHEN I scroll down
THEN I am presented with timeblocks for standard business hours

Added HTML elements for additional block on the scheduler and included previous and next day buttons.


Cleanup build

While studying this library I noticed some potential cleanup in the builds.
I realise these are highly subjective so I don't mind tweaking or dropping
anything you're not happy with.

What a bizarre Travis run.. it built the first 2 / 5 commits ??

Yeah, not sure what's up with travis... and don't know how to make it build the latest commit. But this looks good to me, thanks very much for the fixes.  I'll merge it and if it breaks master we can always fix it.


Prevent Click Action on Double Click

I have two action, first execute onClick in callback, second executed onDblClick in callback too, when i double click the node, the action onClick executed too, how to prevent onClick Action when double Click? Thanks

please use setTimeout in onClick
example:
var timer = null;
function onClick() {
   clearTimeout(timer);
   timer = setTimeout(function() {
       // there is your code

   }, 500);
}

function onDblClick() {
}


CUDA Setup failed despite GPU being available.

===================================BUG REPORT===================================
Welcome to bitsandbytes. For bug reports, please submit your error trace to: https://github.com/TimDettmers/bitsandbytes/issues
B:\python\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('/python/lib'), WindowsPath('B')}
warn(msg)
B:\python\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: B:\python did not contain libcudart.so as expected! Searching further paths...
warn(msg)
B:\python\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('file'), WindowsPath('/B'), WindowsPath('/python/etc/xml/catalog')}
warn(msg)
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
B:\python\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
warn(msg)
CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed?
B:\python\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: No libcudart.so found! Install CUDA or the cudatoolkit package (anaconda)!
warn(msg)
B:\python\lib\site-packages\bitsandbytes\cuda_setup\main.py:136: UserWarning: WARNING: No GPU detected! Check your CUDA paths. Proceeding to load CPU-only library...
warn(msg)
CUDA SETUP: Loading binary B:\python\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so...
argument of type 'WindowsPath' is not iterable
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed?
CUDA SETUP: Loading binary B:\python\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so...
argument of type 'WindowsPath' is not iterable
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed?
CUDA SETUP: Loading binary B:\python\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA library was not detected.
CUDA SETUP: Solution 1): Your paths are probably not up-to-date. You can update them via: sudo ldconfig.
CUDA SETUP: Solution 2): If you do not have sudo rights, you can do the following:
CUDA SETUP: Solution 2a): Find the cuda library via: find / -name libcuda.so 2>/dev/null
CUDA SETUP: Solution 2b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_2a
CUDA SETUP: Solution 2c): For a permanent solution add the export from 2b into your .bashrc file, located at ~/.bashrc
You are using a model of type gptj to instantiate a model of type gpt_neo. This is not supported for all configurations of models and can yield errors.
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
CUDA SETUP: WARNING! libcuda.so not found! Do you have a CUDA driver installed?
CUDA SETUP: Loading binary B:\python\lib\site-packages\bitsandbytes\libbitsandbytes_cpu.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA library was not detected.
CUDA SETUP: Solution 1): Your paths are probably not up-to-date. You can update them via: sudo ldconfig.
CUDA SETUP: Solution 2): If you do not have sudo rights, you can do the following:
CUDA SETUP: Solution 2a): Find the cuda library via: find / -name libcuda.so 2>/dev/null
CUDA SETUP: Solution 2b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_2a
CUDA SETUP: Solution 2c): For a permanent solution add the export from 2b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Problem: The main issue seems to be that the main CUDA library was not detected.
CUDA SETUP: Solution 1): Your paths are probably not up-to-date. You can update them via: sudo ldconfig.
CUDA SETUP: Solution 2): If you do not have sudo rights, you can do the following:
CUDA SETUP: Solution 2a): Find the cuda library via: find / -name libcuda.so 2>/dev/null
CUDA SETUP: Solution 2b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_2a
CUDA SETUP: Solution 2c): For a permanent solution add the export from 2b into your .bashrc file, located at ~/.bashrc
Exception in thread Thread-15:
Traceback (most recent call last):
File "aiserver.py", line 3114, in load_model
model     = AutoModelForCausalLM.from_pretrained("models/{}".format(koboldai_vars.model.replace('/', '_')), revision=koboldai_vars.revision, cache_dir="cache", **lowmem, load_in_8bit=True, device_map="auto")
File "B:\python\lib\site-packages\transformers\models\auto\auto_factory.py", line 463, in from_pretrained
return model_class.from_pretrained(
File "aiserver.py", line 2053, in new_from_pretrained
return old_from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs)
File "B:\python\lib\site-packages\transformers\modeling_utils.py", line 2279, in from_pretrained
from .utils.bitsandbytes import get_keys_to_not_convert, replace_8bit_linear
File "B:\python\lib\site-packages\transformers\utils\bitsandbytes.py", line 10, in
import bitsandbytes as bnb
File "B:\python\lib\site-packages\bitsandbytes_init_.py", line 7, in
from .autograd.functions import (
File "B:\python\lib\site-packages\bitsandbytes\autograd_init.py", line 1, in
from ._functions import undo_layout, get_inverse_transform_indices
File "B:\python\lib\site-packages\bitsandbytes\autograd_functions.py", line 9, in
import bitsandbytes.functional as F
File "B:\python\lib\site-packages\bitsandbytes\functional.py", line 17, in
from .cextension import COMPILED_WITH_CUDA, lib
File "B:\python\lib\site-packages\bitsandbytes\cextension.py", line 22, in
raise RuntimeError('''
RuntimeError:
CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs above to fix your environment!
If you cannot find any issues and suspect a bug, please open an issue with detals about your environment:
https://github.com/TimDettmers/bitsandbytes/issues
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "B:\python\lib\threading.py", line 932, in _bootstrap_inner
self.run()
File "B:\python\lib\threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "B:\python\lib\site-packages\socketio\server.py", line 731, in _handle_event_internal
r = server._trigger_event(data[0], namespace, sid, *data[1:])
File "B:\python\lib\site-packages\socketio\server.py", line 756, in trigger_event
return self.handlers[namespace]event
File "B:\python\lib\site-packages\flask_socketio_init.py", line 282, in handler
return self.handle_event(handler, message, namespace, sid,
File "B:\python\lib\site-packages\flask_socketio_init.py", line 828, in handle_event
ret = handler(*args)
File "aiserver.py", line 592, in g
return f(*a, **k)
File "aiserver.py", line 4519, in get_message
load_model(use_gpu=msg['use_gpu'], gpu_layers=msg['gpu_layers'], disk_layers=msg['disk_layers'], online_model=msg['online_model'])
File "aiserver.py", line 3118, in load_model
model     = GPTNeoForCausalLM.from_pretrained("models/{}".format(koboldai_vars.model.replace('/', '')), revision=koboldai_vars.revision, cache_dir="cache", **lowmem, load_in_8bit=True, device_map="auto")
File "aiserver.py", line 2053, in new_from_pretrained
return old_from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs)
File "B:\python\lib\site-packages\transformers\modeling_utils.py", line 2279, in from_pretrained
from .utils.bitsandbytes import get_keys_to_not_convert, replace_8bit_linear
File "B:\python\lib\site-packages\transformers\utils\bitsandbytes.py", line 10, in
import bitsandbytes as bnb
File "B:\python\lib\site-packages\bitsandbytes_init.py", line 7, in
from .autograd.functions import (
File "B:\python\lib\site-packages\bitsandbytes\autograd_init.py", line 1, in
from ._functions import undo_layout, get_inverse_transform_indices
File "B:\python\lib\site-packages\bitsandbytes\autograd_functions.py", line 9, in
import bitsandbytes.functional as F
File "B:\python\lib\site-packages\bitsandbytes\functional.py", line 17, in
from .cextension import COMPILED_WITH_CUDA, lib
File "B:\python\lib\site-packages\bitsandbytes\cextension.py", line 22, in
raise RuntimeError('''
RuntimeError:
CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs above to fix your environment!
If you cannot find any issues and suspect a bug, please open an issue with detals about your environment:
https://github.com/TimDettmers/bitsandbytes/issues
Straight up have no idea how to fix this one. Pls help lol

Same...
Dev posted a 'fix' but it mentions export that isn't a Windows program. Not sure whatr equivalent is

启动的时候，有同样的问题
CUDA Setup failed despite GPU being available. Inspect the CUDA SETUP outputs above to fix your environment!
If you cannot find any issues and suspect a bug, please open an issue with detals about your environment:
https://github.com/TimDettmers/bitsandbytes/issues

I installed stable diffusion, and chat4all, if I uninstall all virtual environments and python, I need to reinstall, so I am very entangled. Now the question is: Traceback (most recent call last): File "E:\ChatGPT\oobabooga-windows\text-generation-webui\server.py", line 17, in  import gradio as gr ModuleNotFoundError: No module named 'gradio' ozzymuppet @.***> 于2023年4月11日周二 15:12写道：

Hi mate,
You can install gradio by typing "conda install gradio"  into a miniconda prompt,  however usually that would be included in the installer package of whatever major product you're trying to install. What is your end goal? Stable diffusion or LLaMA?
It sounds like either you're in the wrong environment (type "conda list envs" to see which environments are on your system, "conda activate textgen" to change to the textgen environment for example. Once you're in the right environment you can retry whatever was giving you that error.
If you're trying to get Stable Diffusion working then I'd recommend:
https://github.com/AUTOMATIC1111/stable-diffusion-webui
If you're trying to get LLaMa working then I'd recommend:
https://www.reddit.com/r/LocalLLaMA/comments/11o6o3f/how_to_install_llama_8bit_and_4bit/
Have fun and good luck! :-)
-OzzyMuppet

Bitsandbytes was not supported windows before, but my method can support windows.（yuhuang）
1  open folder J:\StableDiffusion\sdwebui，Click the address bar of the folder and enter CMD
or WIN+R, CMD  。enter，cd /d J:\StableDiffusion\sdwebui
2  J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes
3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows
4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl
Replace your SD venv directory file（python.exe Folder） here（J:\StableDiffusion\sdwebui\py310）


Are error types in Client/ServerProto useful?

When you specify a protocol, you provide error types that will be used in services for the protocol, whether on the client or server side. But I think these types are not needed.

On the client side, the only error we'd return in a response future is an io::Error (which, right now, we don't even do). There's no way we could generate an arbitrary error of a type chosen by the protocol, since the client implementation has no way of constructing such errors.

On the server side, there's no reason that a protocol specification has to nail down the error type for the service. We can let that vary per service that you plug into a protocol.

Let's revisit this for 0.2.

OK, so this is currently the case for the non-streaming protocols, which are not properly hooking into error frames -- an oversight.
What we actually want is for the protocol to communicate errors via error frames, which must match the service error type.
I'm going to close this in favor of hooking error frames up for non-streaming protocols.


Unable to get user photo

Hello,
I'm unable to get the user photo. I get the following error:
Code: AuthenticationError
Message: Error authenticating with resource

Inner error

Stack Tracke:
   at Microsoft.Graph.HttpProvider.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
   at Microsoft.Graph.BaseRequest.SendRequestAsync(Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption)
   at Microsoft.Graph.BaseRequest.SendStreamRequestAsync(Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption)
   at MicrosoftGraphAspNetCoreConnectSample.Helpers.GraphService.GetPictureStream(GraphServiceClient graphClient, String email, HttpContext httpContext) in C:\code\aspnetcore-connect-sample\MicrosoftGraphAspNetCoreConnectSample\Helpers\GraphService.cs:line 99

Getting the user profile works fine.
Cheers

Sorry for the late response!
Which version of the graph API are you using? v1.0 or beta? What kind of account are you using to sign in? Personal, or Work or school account?

Hello, yes it's v1 with a work account.
I just tried again and now get more explicative error message:
{
"error": {
"code": "ErrorItemNotFound",
"message": "The photo wasn't found. REST APIs for this mailbox are currently in preview. You can find more information about the preview REST APIs at https://dev.outlook.com/.",
"innerError": {
"request-id": "54ec1525-e0b6-47d3-9cb0-5a8018625f37",
"date": "2019-06-06T11:22:30"
}
}
}
So guess something has to be enabled by system administrators to be able to get photos...

Hmm, strange. Are you sure the user has a picture set up? I mean, if you go to portal.office.com for example, do you see the image on the top right?

Hey, that was it! I'm pretty sure when I first opened I had also checked with accounts that had a picture set... But anyways, it's working now :)
Thanks!


[Agent] How can i get  TraceId  in  c#. net core 2.2

[Agent] How can i get  TraceId  in  c#. net core 2.2
i  want to get the skywalking's traceId ,  then the trace in Skywalking can be linked with my data row.
unfortunately, i didn't find any doc or helps from internet, so i add issue here for help!
thanks.

.net core agent is not skywalking's officially yet. So, submit this at agent core repo.


Provide editorial review

This editorial review made changes to prepare this documentation for implementation of Vale, a prose linter that checks for violations of certain Google developer style guidelines. @RobPasMue Any change that you can get Vale implemented on this repo once this PR is finally approved and merged? @Andy-Grigg Are the two checks failing both related to the footnote issue referenced. I don't see anything I changed in source/api/compliance/indicators.rst that would cause an issue. Would you mind checking this out?

Codecov Report

Merging #249 (acbb69a) into main (41075c4) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #249   +/-   ##
=======================================
  Coverage   95.32%   95.32%
=======================================
  Files          10       10
  Lines        1369     1369
=======================================
  Hits         1305     1305
  Misses         64       64

Impacted Files
Coverage Δ

src/ansys/grantami/bomanalytics/_allowed_types.py
100.00% <ø> (ø)

src/ansys/grantami/bomanalytics/_connection.py
88.28% <ø> (ø)

src/ansys/grantami/bomanalytics/_exceptions.py
100.00% <ø> (ø)

...c/ansys/grantami/bomanalytics/_item_definitions.py
96.65% <ø> (ø)

src/ansys/grantami/bomanalytics/_query_results.py
97.36% <ø> (ø)

src/ansys/grantami/bomanalytics/indicators.py
93.10% <ø> (ø)

src/ansys/grantami/bomanalytics/_item_results.py
90.86% <100.00%> (ø)

src/ansys/grantami/bomanalytics/queries.py
98.20% <100.00%> (ø)

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

@PipKat There were a few issues that the linting and sphinx build picked up, briefly:

There was no space between a double-backticked-literal and a [1] footnote ref, i.e. this[1] instead of this [1].
I re-instated the separate files that get imported to create the index page, which was required for the PDF build.
A few lines that were too long, or had trailing whitespace
A couple of incorrect restructured text cross-references (the name of the reference has a leading underscore, but the leading underscore is omitted when actually using the reference

The local-only docs have built successfully, we now unfortunately have to wait about 20 minutes for the examples to build that connect to the Granta MI server. Once that's done I'll review and merge if everything looks good.
Thank you for the review!

The docs themselves have built fine and look good. Some minor typos and corrections, and one question on Parameters vs Attributes.

Keeping "Attributes" is fine with me. Is the difference that a parameter is something that can the user supplies while an attribute isn't?

The docs themselves have built fine and look good. Some minor typos and corrections, and one question on Parameters vs Attributes.

Keeping "Attributes" is fine with me. Is the difference that a parameter is something that can the user supplies while an attribute isn't?

Generally speaking, yes. In the context of a class specifically, the list of parameters are the values provided when instantiating the class, and the attributes are something the class has that you can access. In most cases the documentation is more about how you create the class, but in this case it's just a data structure, and the API creates the class for you. So the user isn't creating the class, they are just accessing instances of it. So the attributes are important, and the parameters aren't.

Added issue #250 about adding Vale


Use Typescript for compiling server code phase I

Move the server code to TS without strict typing.

Closed by #3756


Shift 16 on vulkan

Draft PR just to repro the Vulkan error to file an issue.

Uhh this didn't reproduce the spir-v compile error ?!