Run this model with HF Jobs
Run logicreasoning/LogiT5 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/logicreasoning/LogiT5. 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/logicreasoning/LogiT5 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 logicreasoning/LogiT5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use logicreasoning/LogiT5 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("logicreasoning/LogiT5") model = AutoModelForSeq2SeqLM.from_pretrained("logicreasoning/LogiT5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files1 unmodified line2341 unmodified linelicense: apache-2.0---1 unmodified line23456789101112131 unmodified linelicense: apache-2.0---model_name = 'logicreasoning/LogiT5'tokenize = AutoTokenizer.from_pretrained(model_name)model = AutoModelForSeq2SeqLM.from_pretrained(model_name)device = 'cuda:0' if torch.cuda.is_available() else 'cpu'input_text = '' #your input text hereinput = tokenize(input, return_tensors='pt', padding=True).to(device)model = model.to(device)output = model.generate(*input, max_length=1024)prediction = tokenize.decode(output[0],skip_special_tokens=True)
README.md+9