Instructions to use ejqs/BK_ResumeSkillQualityClassifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ejqs/BK_ResumeSkillQualityClassifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ejqs/BK_ResumeSkillQualityClassifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ejqs/BK_ResumeSkillQualityClassifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update handler.py
Browse files7 unmodified lines8910111213141516171819207 unmodified lines# Load the models -- Leadershipself.leadership_model_name = "roberta-large-mnli"self.leadership_model_path = path + "/pet-leadership-model-roberta-large-mnli_bs4_gas4_lr3e-05_ep2" + "/checkpoint-742"self.leadership_pattern = "Sentence: {} Question: Does this show leadership? Answer: <mask>"# Load the models -- Collaborationself.collab_model_name = "facebook/bart-large-mnli"self.collab_model_path = path + "/pet-collaboration-model-facebook-bart-large-mnli_bs4_gas4_lr5e-05_ep3" + "/checkpoint-936"self.collab_pattern = "Sentence: {} Question: Does this show teamwork and collaboration? Answer: <mask>"# Load the tokenizerself.leadership_tokenizer = AutoTokenizer.from_pretrained(self.leadership_model_name)7 unmodified lines8910111213141516171819207 unmodified lines# Load the models -- Leadershipself.leadership_model_name = "roberta-large-mnli"self.leadership_model_path = path + "/pet-leadership-model-roberta-large-mnli_bs4_gas4_lr1e-05_ep5" + "/checkpoint-1560"self.leadership_pattern = "Sentence: {} Question: Does this show leadership? Answer: <mask>"# Load the models -- Collaborationself.collab_model_name = "roberta-large-mnli"self.collab_model_path = path + "/pet-collaboration-model-roberta-large-mnli_bs4_gas4_lr1e-05_ep5" + "/checkpoint-1560"self.collab_pattern = "Sentence: {} Question: Does this show teamwork? Answer: <mask>"# Load the tokenizerself.leadership_tokenizer = AutoTokenizer.from_pretrained(self.leadership_model_name)
handler.py+4-4