Text Classification
Transformers
Safetensors
English
emcoder
emotion-recognition
bayesian-deep-learning
mc-dropout
uncertainty-quantification
multi-label-classification
custom_code
Eval Results (legacy)
Run this model with HF Jobs
Run yezdata/EmCoder 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/yezdata/EmCoder. 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/yezdata/EmCoder 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 yezdata/EmCoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yezdata/EmCoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="yezdata/EmCoder", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("yezdata/EmCoder", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
fix self.config.return_dict
Browse files199 unmodified lines20020120220320420520657 unmodified lines264265266267268269270199 unmodified linesReturns:Logits of shape (n_samples, B, num_labels)."""return_dict = return_dict if return_dict is not None else self.config.use_return_dictx = input_ids if input_ids is not None else kwargs.get("x")mask = attention_mask if attention_mask is not None else kwargs.get("mask")57 unmodified lines**kwargs,) -> tuple[torch.Tensor, ...] | SequenceClassifierOutput:"""Standard forward pass without MC Dropout."""return_dict = return_dict if return_dict is not None else self.config.use_return_dictx = input_ids if input_ids is not None else kwargs.get("x")mask = attention_mask if attention_mask is not None else kwargs.get("mask")199 unmodified lines20020120220320420520657 unmodified lines264265266267268269270199 unmodified linesReturns:Logits of shape (n_samples, B, num_labels)."""return_dict = return_dict if return_dict is not None else Truex = input_ids if input_ids is not None else kwargs.get("x")mask = attention_mask if attention_mask is not None else kwargs.get("mask")57 unmodified lines**kwargs,) -> tuple[torch.Tensor, ...] | SequenceClassifierOutput:"""Standard forward pass without MC Dropout."""return_dict = return_dict if return_dict is not None else Truex = input_ids if input_ids is not None else kwargs.get("x")mask = attention_mask if attention_mask is not None else kwargs.get("mask")
modeling_emcoder.py+2-2