Run this model with HF Jobs
Run ARISCOT/Digital_Literacy_Fact_Checker 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 and TRL to fine-tune https://huggingface.co/ARISCOT/Digital_Literacy_Fact_Checker. 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/ARISCOT/Digital_Literacy_Fact_Checker 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.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/ARISCOT/Digital_Literacy_Fact_Checker. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/ARISCOT/Digital_Literacy_Fact_Checker. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use ARISCOT/Digital_Literacy_Fact_Checker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ARISCOT/Digital_Literacy_Fact_Checker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ARISCOT/Digital_Literacy_Fact_Checker")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ARISCOT/Digital_Literacy_Fact_Checker", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ARISCOT/Digital_Literacy_Fact_Checker with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ARISCOT/Digital_Literacy_Fact_Checker" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ARISCOT/Digital_Literacy_Fact_Checker", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ARISCOT/Digital_Literacy_Fact_Checker
- SGLang
How to use ARISCOT/Digital_Literacy_Fact_Checker with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ARISCOT/Digital_Literacy_Fact_Checker" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ARISCOT/Digital_Literacy_Fact_Checker", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ARISCOT/Digital_Literacy_Fact_Checker" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ARISCOT/Digital_Literacy_Fact_Checker", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ARISCOT/Digital_Literacy_Fact_Checker with Docker Model Runner:
docker model run hf.co/ARISCOT/Digital_Literacy_Fact_Checker
Update README.md
Browse files29 unmodified lines30313233343536373829 unmodified lines- text: "Scientists have discovered a planet made entirely of diamond."example_title: "Science Claim"---# Digital Literacy & Fact-Checker AI 🌍This AI helps verify news claims globally, with a specialized focus on digital literacy and misinformation trends in West Africa."## How it WorksThis model uses the RoBERTa architecture to classify news claims into four categories: reliable, misleading, false, or unverified.29 unmodified lines30313233343536373839404142434445464748495051525354555657585960616263646566676869707129 unmodified lines- text: "Scientists have discovered a planet made entirely of diamond."example_title: "Science Claim"---# 1. Load the different "Subject Experts"# We take a sample of 5,000 from each to keep the model balancedglobal_news = load_dataset("jason1966/algozee_fake-news", split='train[:5000]')politics = load_dataset("ucsbnlp/liar", split='train[:5000]')science_health = load_dataset("Intel/misinformation-guard", split='train[:5000]')# 2. Label Harmonization# Different datasets use different numbers for "False".# We force them all to use: 0 for False, 1 for True.def clean_labels(example):# Example logic: if the label is 'fake' or 0, it stays 0if str(example['label']).lower() in ['fake', 'false', '0']:example['label'] = 0else:example['label'] = 1return example# Apply the cleaning to all datasetsglobal_news = global_news.map(clean_labels)politics = politics.map(clean_labels)science_health = science_health.map(clean_labels)# 3. Create the "Super Dataset"universal_data = concatenate_datasets([global_news, politics, science_health])# 4. Shuffle so the model learns all subjects at the same timeuniversal_data = universal_data.shuffle(seed=42)print(f"Universal model is ready to train on {len(universal_data)} claims across all categories!")---# Digital Literacy & Fact-Checker AI 🌍This AI helps verify news claims globally, with a specialized focus on digital literacy and misinformation trends in West Africa."## How it WorksThis model uses the RoBERTa architecture to classify news claims into four categories: reliable, misleading, false, or unverified.from datasets import load_dataset, concatenate_datasets, DatasetDict
README.md+34-1