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

Store Images Remotely on GCS #3172

Merged
merged 1 commit into from
Apr 14, 2024
Merged

Store Images Remotely on GCS #3172

merged 1 commit into from
Apr 14, 2024

Conversation

BabyChouSr
Copy link
Collaborator

Why are these changes needed?

Adds ability to store images onto GCS.

Checks

  • I've run format.sh to lint the changes in this PR.
  • I've included any doc changes needed.
  • I've made sure the relevant tests are passing (if applicable).

@BabyChouSr BabyChouSr mentioned this pull request Apr 1, 2024
7 tasks
@@ -527,7 +556,7 @@ def bot_response(
"finish": round(finish_tstamp, 4),
"state": state.dict(),
"ip": get_ip(request),
"images": images_hash,
"images": image_filenames,
Copy link
Member

Choose a reason for hiding this comment

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

Should it be put into the conversation logic as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice catch! I think this was written under the original assumption that the image hashes are not stored in the state.dict() which is a new feature added in #3010. I think a good idea may be to first merge this PR then in #3010, I can fix the merge conflicts by placing the image filenames in the state.dict() similar to the code here.

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good. I'll merge this one.

@Ying1123 Ying1123 self-assigned this Apr 14, 2024
@Ying1123 Ying1123 merged commit 2d9e2a6 into lm-sys:main Apr 14, 2024
1 check passed
renning22 added a commit to renning22/FastChat that referenced this pull request Apr 22, 2024
Fix missing flag introduced in lm-sys#3172
adamlin120 pushed a commit to adamlin120/FastChat that referenced this pull request May 13, 2024
* original_lmsys/operation: (70 commits)
  format
  update
  update
  update
  format
  update
  update
  update
  Small fix in clean_chat_data (lm-sys#3285)
  support llama3 (lm-sys#3259)
  Fix bug in gradio_web_server.py (lm-sys#3269)
  Register SmaugChatAdapter. (lm-sys#3243)
  update
  Code update (lm-sys#3194)
  Store Images Remotely on GCS (lm-sys#3172)
  format
  remove
  format
  update
  Add support for Smaug-2. (lm-sys#3211)
  ...
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.

None yet

2 participants