Skip to content

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

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.

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