mirror of
https://github.com/p-e-w/heretic.git
synced 2026-10-26 19:05:05 +00:00
feat: add base model to the model card (#459)
This commit is contained in:
1 parent
3521f8648a
commit
71e6d5eb38
1 file changed
+6
@@ -1272,6 +1272,12 @@ def run():
|
||||
card.data.tags.append("abliterated")
|
||||
if reproducibility_information != "none":
|
||||
card.data.tags.append("reproducible")
|
||||
|
||||
# Must be a Hugging Face Hub repository ID,
|
||||
# so local paths are excluded.
|
||||
if is_hf_path(settings.model):
|
||||
card.data.base_model = settings.model
|
||||
|
||||
card.text = (
|
||||
get_readme_intro(
|
||||
settings,
|
||||
|
||||
Reference in new issue
Block a user