Skip to content

sync: minja #12739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 4, 2025
Merged

sync: minja #12739

merged 2 commits into from
Apr 4, 2025

Conversation

ochafik
Copy link
Collaborator

@ochafik ochafik commented Apr 3, 2025

(Follow up to #12699 which cherrypicked Ling-lite support + added test)

cc/ @yeahdongcn, @CISC

@CISC
Copy link
Collaborator

CISC commented Apr 3, 2025

Removing json.hpp include might be a little premature. :)

@CISC
Copy link
Collaborator

CISC commented Apr 4, 2025

Did you forget to undraft this, or is it not ready yet?

@ochafik ochafik marked this pull request as ready for review April 4, 2025 15:38
@ochafik
Copy link
Collaborator Author

ochafik commented Apr 4, 2025

Did you forget to undraft this, or is it not ready yet?

Sorry on busy holidays 😎, CI finally went green (needed a nudge), now ready for review

@@ -240,7 +252,7 @@ class Value : public std::enable_shared_from_this<Value> {
auto index = key.get<int>();
return array_->at(index < 0 ? array_->size() + index : index);
} else if (object_) {
if (!key.is_hashable()) throw std::runtime_error("Unhashable type: " + dump());
if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
if (!key.is_hashable()) throw std::runtime_error("Unhashable type: " + dump());

I guess this was merged here previously, perhaps you'll upstream it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks! Yes I'd rather only do changes in the minja repo and just sync back wholesale here, I'll apply these there shortly.

@@ -249,7 +261,7 @@ class Value : public std::enable_shared_from_this<Value> {
}
void set(const Value& key, const Value& value) {
if (!object_) throw std::runtime_error("Value is not an object: " + dump());
if (!key.is_hashable()) throw std::runtime_error("Unhashable type: " + dump());
if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (!key.is_hashable()) throw std::runtime_error("Unashable type: " + dump());
if (!key.is_hashable()) throw std::runtime_error("Unhashable type: " + dump());

Same.

@ochafik ochafik merged commit 7a84777 into ggml-org:master Apr 4, 2025
51 of 52 checks passed
timwu pushed a commit to timwu/llama.cpp that referenced this pull request May 5, 2025
* sync: minja

google/minja#57

* fix json include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants