Run this model with HF Jobs
Run SAP/CASE 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/SAP/CASE. Ask me which dataset to train on, then push the fine-tuned model to a new private 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/SAP/CASE 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 SAP/CASE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- CASE
How to use SAP/CASE with CASE:
pip install git+https://github.com/SAP-samples/case
import pandas as pd from case.embedding import CaseTransformer X = pd.DataFrame({ "job": ["Junior Data Scientist", "Senior Data Scientist", "Engineering Manager", "Product Executive"], "years_experience": [1.5, 10.0, 12.0, 14.0], }) y = pd.Series([72000, 130000, 165000, 210000], name="income") case_embedder = CaseTransformer() X_enhanced = case_embedder.fit_transform(X, y) # X_enhanced can now be fed to any tabular learner (e.g. TabICL) - Notebooks
- Google Colab
- Kaggle
license
Hi @dellagustin-sap !
This PR contains the changes with respect to licensing, terms and conditions that we have discussed elsewhere.
Would you find the time to take a quick look before we merge? Thanks!
Hi @samthelin , I reviewed LICENSE, NOTICE and the relevant model card properties on README.md.
NOTICE: All clear
LICENSE: The approved project name is the name of the model in full, Context-Aware Semantic Embeddings, I believe here we should use "Context-Aware Semantic Embeddings (CASE)" where model name is referred. This also makes it less likely to have a match with other projects using the same name in their licenses. Please adjust this. Aside form this, all clear.
README.md: all clear
Review notes:
I made a copy of the https://gemma.ai/resources/terms.md.txt and compared with the copy in LICENSE in VS Code, it matched exactly.
I used GitHub Copilot in VS Code to compare the rest of the text with the model text provided by legal, there were no discrepancies aside from placeholders that have been filled and links that were properly adjusted.
I initially though that license_name in README.md should be the body copy of the text, but as per https://github.com/huggingface/hub-docs/blob/38d3859104811b32a6c29ce611ea5ff17ce44c8c/modelcard.md?plain=1#L7, it should be an arbitrary id, so case-license looks good to me.
Checked the updates with https://huggingface.co/SAP/CASE/commit/aa8d4d8612f63c66ee75d5d83a2e982bd736fb5b.
My only comment was addressed, so: Looks Good To Me.