Instructions to use sanjin7/ctr-ll4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sanjin7/ctr-ll4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sanjin7/ctr-ll4", trust_remote_code=True)# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("sanjin7/ctr-ll4", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 303 Bytes
cea4a4b | 1 2 3 4 5 6 7 8 | from .common import element_to_list, vectorise_dict
from .decorators import print_execution_time
from .csv import read_csv_and_eval
from .nlp import detect_language, get_sentiment
from .bert import add_emoji_tokens, add_new_line_token, batch_iterator
from .hugging_face import user_id
from .s3 import *
|