@IgnatLoskutov@raysan5@danielcdev 🤷♂️ it’s just the way it works, the compiler is triggering an error because there is one. Otherwise the function might add a pointer to a literal to the array (correctly) and the caller try to modify that (supposedly not const) item’s memory (correctly) invoking critical UB.
@IgnatLoskutov@raysan5@danielcdev Yeah, then -imagine- it puts a const char * at some position of the array and the caller modifies it later. The const char ** is pointer to pointer to char const, the callee modifies pointers without constraints other than final memory being const char. Then the caller uses char.
@IgnatLoskutov@raysan5@danielcdev It's just as dangerous in C++ as it is in C. If the caller ends up treating elements of the array as char* when they are actually const char* you get in big big trouble.
@raysan5@danielcdev Casting char * to const char * is allowed (and done implicitly) because you're just promising not to modify the data. But going from char ** to const char ** can let a function store const char * in your array while the caller still thinks it’s modifiable: root for UB later.
Vosotros no os acordaréis porque sois muy jóvenes. Pero una de las historias fundacionales de la web 2.0 en España fue la lucha de la industria discográfica contra @pabloMP2P, nuestro caso Napster. Hoy he tenido la suerte de conocer a Pablo en persona. ¡Qué tiempos!
Fun fact I learned today: Meta tried to send GitHub a DMCA takedown when a user uploaded the weights associated with LLaMA. 🦙
How do you think it turned out?
Imagine "untraining" a Large Language Model on specific content.
The New York Times doesn't want its content in ChatGPT. OpenAI would have to retrain its models from scratch. Removing any content from their models would cost them millions of dollars.
I just read a new paper from Microsoft Research that tries to fix this. This is the only study I've found so far that's looking into making models forget.
The paper proposes a process that makes a model forget about Harry Potter without retraining it from scratch.
It's a proof of concept. The researchers aren't sure whether their solution generalizes to other topics. It's a first step, but it's cool nonetheless.
What they did is kind of a hack, but I like it:
They fine-tuned the model using a dataset containing the original Harry Potter text as the input tokens and some generic labels as targets. They pre-generate these generic labels. For example, instead of using "Harry," they use "Jack," and instead of using "Hermione," they use "her."
In other words, they don't actually delete knowledge from the model. They overwrite it.
As we start using these models everywhere, the ability to forget information will become critical.
Let's see how much progress we make this year on this.
You'll find a link to the paper in the image ALT.
La OMS pide la entrada inmediata e ininterrumpida a Gaza: “Los hospitales están al borde de una catástrofe humanitaria inimaginable” https://t.co/YAxuXXG8t1 👇
Patients in Gaza are being operated on without anaesthesia as supplies running out, @WHO & medics told me. WHO's warehouse in Gaza is now empty. Blood banks have 2 weeks left. “Critical shortages” in morphine, surgical supplies. Generator fuel almost out https://t.co/mhK4LTe0d7
#GAZA URGENTE
Impera el acceso inmediato de combustible porque debemos poder hacer funcionar nuestra planta desalinizadora, de lo contrario nos quedaremos sin agua potable en Gaza. Es cuestión de días que las personas, especialmente los niños, empiecen a deshidratarse.
Several of these verified photos show M825 and M825A1 artillery shells, which are also labelled D528, the US Department of Defense Identification Code (DODIC) for white phosphorus-based rounds.
The International Court of Justice has clarified that “a State’s obligation to prevent, and the corresponding duty to act, arise at the instant that the State learns of, or should normally have learned of, the existence of a serious risk that genocide will be committed.”
What's in northern Gaza, which Israel has ordered evacuated by tomorrow? Gaza's main hospital, dealing with 6000+ injured. A million people, including elderly and with disabilities. Food supplies.
Warnings are not effective if impossible to implement. https://t.co/02IaznzEVj