cfdf515228
- .claude/CLAUDE.md - .claude/commands/subagentes.md - .claude/rules/INDEX.md - .mcp.json - bash/functions/cybersecurity/analyze_dns.md - bash/functions/cybersecurity/audit_http_headers.md - bash/functions/cybersecurity/audit_ssh_config.md - bash/functions/cybersecurity/check_firewall.md - bash/functions/cybersecurity/detect_suspicious_users.md - bash/functions/cybersecurity/encrypt_file.md - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.3 KiB
2.3 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path, notes
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | notes | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| mrebel_base_load_model | function | py | datascience | 1.0.0 | impure | def mrebel_base_load_model(model_name: str = 'Babelscape/mrebel-base', src_lang: str = 'es_XX', tgt_lang: str = 'tp_XX') -> tuple[Any, Any] | Variante rapida de mrebel_load_model con checkpoint base (250M params, ~900 MB). Delega completamente en mrebel_load_model. Misma licencia CC BY-NC-SA 4.0 — solo uso no comercial. |
|
|
false | error_go_core |
|
tupla (tokenizer, model) listos para inferencia, cacheados por (model_name, src_lang) en la cache compartida de mrebel_load_model. | false | python/functions/datascience/mrebel_base_load_model.py | LICENCIA: Babelscape/mrebel-base esta bajo CC BY-NC-SA 4.0 (Creative Commons Non-Commercial Share-Alike). Solo uso no comercial. NO usar en productos comerciales. Esta funcion es un thin wrapper — NO duplica logica de carga/cache. Toda la logica vive en mrebel_load_model. Util para benchmarks donde se quiere comparar base vs large con la misma interfaz. La cache es compartida con mrebel_load_model (mismo dict _MODEL_CACHE del modulo). |
Ejemplo
from python.functions.datascience.mrebel_base_load_model import mrebel_base_load_model
# 250M params vs 600M — misma interfaz
tokenizer, model = mrebel_base_load_model(src_lang="es_XX")
Comparacion base vs large
| Variant | Params | Size | Latencia CPU/frase | Recall tipico |
|---|---|---|---|---|
| mrebel-large | 600M | ~2.4 GB | 15-30 s | alto |
| mrebel-base | 250M | ~900 MB | 5-10 s | medio |
Para benchmarks de velocidad en graph_explorer, usar base. Para produccion final, evaluar large.