Transformers
Safetensors
English
t5
text2text-generation
cryptology
cipher
text-generation-inference
Run this model with HF Jobs
Run Cipher-AI/Substitution-Cipher-Alphabet-Eng on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Cipher-AI/Substitution-Cipher-Alphabet-Eng. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Cipher-AI/Substitution-Cipher-Alphabet-Eng on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Cipher-AI/Substitution-Cipher-Alphabet-Eng with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cipher-AI/Substitution-Cipher-Alphabet-Eng with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("Cipher-AI/Substitution-Cipher-Alphabet-Eng") model = AutoModelForSeq2SeqLM.from_pretrained("Cipher-AI/Substitution-Cipher-Alphabet-Eng", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files48 unmodified lines49505152535455565758596048 unmodified linesimport Levenshteinimport randomtokenizer = AutoTokenizer.from_pretrained("Cipher-AI/Substitution-Cipher-Alphabet-Eng")model = AutoModelForSeq2SeqLM.from_pretrained("Cipher-AI/Substitution-Cipher-Alphabet-Eng")device = torch.device("cuda" if torch.cuda.is_available() else "cpu")alphabet_model = model.to(device)correction_model = AutoModelForSeq2SeqLM.from_pretrained("Cipher-AI/AutoCorrect-EN-v2").to(device)def similarity_percentage(s1, s2):48 unmodified lines4950515253545556575848 unmodified linesimport Levenshteinimport randomdevice = torch.device("cuda" if torch.cuda.is_available() else "cpu")tokenizer = AutoTokenizer.from_pretrained("Cipher-AI/Substitution-Cipher-Alphabet-Eng")alphabet_model = AutoModelForSeq2SeqLM.from_pretrained("Cipher-AI/Substitution-Cipher-Alphabet-Eng").to(device)correction_model = AutoModelForSeq2SeqLM.from_pretrained("Cipher-AI/AutoCorrect-EN-v2").to(device)def similarity_percentage(s1, s2):
README.md+2-4