Skip to content
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

feat: change request/response to json value #24

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

Cifko
Copy link
Collaborator

@Cifko Cifko commented Apr 5, 2024

Change request/response to json.
Change the load to accept json

atoma-inference/src/model_thread.rs Show resolved Hide resolved
let model_name = model_config.model_id().clone();
println!("model_name {model_name}");
model_senders.insert(model_name.clone(), model_sender.clone());

let join_handle = std::thread::spawn(move || {
info!("Fetching files for model: {model_name}");
let filenames = api.fetch(model_name, model_config.revision())?;
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be changed to use the fetch model trait method

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had a problem, this was my debug line, removed

@jorgeantonio21 jorgeantonio21 merged commit f5538b1 into main Apr 5, 2024
1 check passed
@Cifko Cifko deleted the change-to-serde-json-value branch April 10, 2024 08:25
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