Skip to content
New issue

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

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

Already on GitHub? # to your account

Bug: device python object written in the config of the model card and keys sorted #22

Open
bergr7 opened this issue Apr 28, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bergr7
Copy link
Collaborator

bergr7 commented Apr 28, 2024

🐛 Bug report

Summary

Python object is written in the model card's config file

Actual Behavior

device python object is written in the model card.

Also, keys are being sorted instead of keeping the original order.

See https://huggingface.co/flow-ai-llm/biomistral_slerp_7b

Expected behavior

python object not written in config of model card.
Keys ordered as in the original config.

To Reproduce

Merge configuration file (if relevant):

method: slerp
method_global_parameters:
  t: 0.5
base_model: BioMistral/BioMistral-Safetensors
models:
  - model: BioMistral/BioMistral-Safetensors
  - model: mistralai/Mistral-7B-Instruct-v0.2
tokenizer:
  mode: base
  interpolation_method: linear
directory_settings:
  output_dir: ./biomistral/biomistral_slerp_7b/
hf_token:
  token: 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
  trust_remote_code: True
device: cpu

Environment

  • OS: Ubuntu 22.04.4 LTS
  • Python version:Python 3.10.13
  • Library version: 0.1.0
  • Other relevant dependencies: NA
@bergr7 bergr7 added the bug Something isn't working label Apr 28, 2024
@sariola sariola self-assigned this Apr 30, 2024
@sariola sariola moved this to In progress in Work In Progress Apr 30, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
Status: In progress
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants