Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Search
Going from fp32 to fp16 is done usually by essentially just rounding the weights. To this end, you should expect pretty close to a 2:1 reduction in size. (Of course, not everything is weights, but ...
I see on https://huggingface.co/HuggingFaceTB/SmolLM2-135M-Instruct/tree/main/onnx: File Name Size model.onnx 654 MB model_fp16.onnx 327 MB model_q4.onnx 200 MB m...
The explanation is that human languages are fundamentally confusing on this, but, because humans tend to be somewhat blind to complexities in systems that they've literally been the only thing they...
Is this for purely technical reasons as there would have to be at least 2 Semigroup instances (for addition and multiplication), but type classes cannot be implemented multiple times for the same...
r~~'s answer is good, and I absolutely agree that the condition provided in the question is ridiculous and I've never seen anyone suggest it as a generic replacement for if(var). But I think the ac...
Recently I had to push a new Docker image to our GitLab registry. I have the Maintainer role on that project. I had created a new token and used it to log in to Docker. However, when trying ...
The library module itertools provides a function called dropwhile(). The example they give is: dropwhile(lambda x: x<5, [1,4,6,3,8]) → 6 3 8 So, to get a list of numbers greater than 4, d...
Is there some sane way to allow Python to import from subfolders in projects that don't have a package? I have many Python programs that I implemented as Python files inside a directory, without a...
There are many reasons why this error may occur. In my case, my new token had the read_registry scope but not the write_registry scope. I created a new token that had the read_registry and write_...
The first line of a file is head -1. But you probably also want the file name. So something like: for file in glob do first_line="$(head -1 "$file")" printf "%s: %s\n" "$file" "$first_l...
Context Our team is developing a solution mainly composed of several microservices relying on ASP.NET Core. We have decided that the simplest and most cost-effective solution would be for service...
The existing answer is fine, but you can achieve similar results in many ways using some of TypeScript's utility types. Required<T> While you cannot use (only) Partial to do this, TypeScrip...
Understanding distutils and setuptools: the history The short version of "why does installing Setuptools fix the problem?" is that Setuptools provides its own distutils package, overriding anythin...
There's nothing as elegant as if constexpr, unfortunately. However, it is possible to achieve the practical effects (member functions and data only present conditionally). Start by creating a clas...
#ifdef sections can, of course, be used to include or exclude chunks of code based on some criteria known at compile time. One big problem is that when the condition is evaluated to false, the chun...
Yes, it is cheating, but I gave up with my question as originally stated, and settled for an x,y "view" in any function that must play with a given .items length by adding: char (*pixy)[len] = (ch...
Take the newly Temporal.PlainDate class as an example. New instances can be created via the constructor: new Temporal.PlainDate(year, month, day) new Temporal.PlainDate(year, month, day, calendar...
I figured out a solution myself. I'm not a zsh expert so this may be improved, but it works. 1) make a custom completion file for the diff command The completion file that zsh uses for the diff ...
Based on the activity here and discussion in chat, I've enabled MathJax on this community. I don't know Mathjax myself, so as verification, I'm copying some Math I found in this Mathematics post: ...
This question is about the general case of subprocess-exited-with-error. It's intended to help you understand the situation if you get an error like this, and there are some common workarounds - ...
Continuing from What is the advantage of creating instances from a method rather than constructor?, I want to construct a method that create a new instance of a class without using the constructor....
I think this is a judgment call. If the answerer appears to be a human, you can caution them with How We Do Things Around Here and edit the answer. If they do it again (and this user has)...
These are my theories, but I'm not particularly excited about either of them. Something to see They need something to show when you visit the website's index. Otherwise, https://www.github.com/yo...
Blow it away if it's truly spam (the link is unrelated to the question topic). Any user who posts blatant spam should be disabled or deleted too. If the link is proplerly labeled and goes to a pr...
Does the Rate limit (Tokens per minute) of an Azure OpenAI instance corresponds to the input tokens, the output tokens or the sum of both? Crossposted at: https://serverfault.com/q/1176440/...