Instructions to use scy99/helloworld with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use scy99/helloworld with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="scy99/helloworld")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("scy99/helloworld") model = AutoModelForSequenceClassification.from_pretrained("scy99/helloworld", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from scy99/helloworld: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/scy99/helloworld/resolve/main/README.md
- Command line
-
hf download hf://scy99/helloworld/README.md
-
curl -L -o README.md https://huggingface.co/scy99/helloworld/resolve/main/README.md
1.1 kB
| tags: | |
| - autotrain | |
| - text-classification | |
| language: | |
| - zh | |
| widget: | |
| - text: "I love AutoTrain 🤗" | |
| datasets: | |
| - scy99/autotrain-data-todo | |
| co2_eq_emissions: | |
| emissions: 1.5063043935583178 | |
| # Model Trained Using AutoTrain | |
| - Problem type: Binary Classification | |
| - Model ID: 3171489424 | |
| - CO2 Emissions (in grams): 1.5063 | |
| ## Validation Metrics | |
| - Loss: 0.339 | |
| - Accuracy: 0.848 | |
| - Precision: 0.679 | |
| - Recall: 0.721 | |
| - AUC: 0.906 | |
| - F1: 0.700 | |
| ## Usage | |
| You can use cURL to access this model: | |
| ``` | |
| $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/scy99/autotrain-todo-3171489424 | |
| ``` | |
| Or Python API: | |
| ``` | |
| from transformers import AutoModelForSequenceClassification, AutoTokenizer | |
| model = AutoModelForSequenceClassification.from_pretrained("scy99/autotrain-todo-3171489424", use_auth_token=True) | |
| tokenizer = AutoTokenizer.from_pretrained("scy99/autotrain-todo-3171489424", use_auth_token=True) | |
| inputs = tokenizer("I love AutoTrain", return_tensors="pt") | |
| outputs = model(**inputs) | |
| ``` |