Feature Extraction
Transformers
Safetensors
PyTorch
English
eden
text-enhancement
grammar-correction
text-rewriting
encoder-decoder
transformer
custom_code
Instructions to use Rybib/EDEN with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rybib/EDEN with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Rybib/EDEN", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Rybib/EDEN", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
| #!/usr/bin/env python3 | |
| """Upload the EDEN repository to the Hugging Face Hub. | |
| Prerequisites: | |
| pip install huggingface_hub | |
| huggingface-cli login | |
| Usage: | |
| python scripts/push_to_hub.py --repo-id Rybib/EDEN | |
| This uploads the model files and code while skipping the local training | |
| workspace, caches, and git metadata. | |
| """ | |
| from __future__ import annotations | |
| import argparse | |
| from pathlib import Path | |
| from huggingface_hub import HfApi, create_repo | |
| REPO_ROOT = Path(__file__).resolve().parent.parent | |
| IGNORE = [ | |
| "eden_system/*", | |
| "_hf_export_tmp/*", | |
| "**/__pycache__/*", | |
| "*.pyc", | |
| ".git/*", | |
| "*.tmp", | |
| ".DS_Store", | |
| ] | |
| def main() -> None: | |
| parser = argparse.ArgumentParser(description="Push EDEN to the Hugging Face Hub.") | |
| parser.add_argument("--repo-id", required=True, help="Target repo, e.g. Rybib/EDEN") | |
| parser.add_argument("--private", action="store_true", help="Create the repo as private.") | |
| args = parser.parse_args() | |
| create_repo(args.repo_id, repo_type="model", private=args.private, exist_ok=True) | |
| api = HfApi() | |
| api.upload_folder( | |
| folder_path=str(REPO_ROOT), | |
| repo_id=args.repo_id, | |
| repo_type="model", | |
| ignore_patterns=IGNORE, | |
| commit_message="Upload EDEN model and code", | |
| ) | |
| print(f"Done. View your model at https://huggingface.co/{args.repo_id}") | |
| if __name__ == "__main__": | |
| main() | |