Text Classification
Transformers
Safetensors
Chinese
spam-detection
advertising-detection
ad-classification
chinese
modernbert
mmbert
multi-task
four-head
Instructions to use x6nux/laya-ad with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use x6nux/laya-ad with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="x6nux/laya-ad")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("x6nux/laya-ad", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download code/laya-server/frontend/package.json from x6nux/laya-ad: direct link, hf CLI and curl.
- Browser
- Download file 770 Bytes
-
https://huggingface.co/x6nux/laya-ad/resolve/main/code/laya-server/frontend/package.json
- Command line
-
hf download hf://x6nux/laya-ad/code/laya-server/frontend/package.json
-
curl -L -o package.json https://huggingface.co/x6nux/laya-ad/resolve/main/code/laya-server/frontend/package.json
770 Bytes
| { | |
| "name": "laya-server", | |
| "private": true, | |
| "version": "0.1.0", | |
| "license": "Apache-2.0", | |
| "type": "module", | |
| "scripts": { | |
| "dev": "vite --host 127.0.0.1", | |
| "build": "tsc -b && vite build", | |
| "lint": "eslint ." | |
| }, | |
| "dependencies": { | |
| "@tailwindcss/vite": "^4.1.0", | |
| "class-variance-authority": "^0.7.1", | |
| "cn": "^0.3.2", | |
| "lucide-react": "^0.468.0", | |
| "radix-ui": "^1.6.7", | |
| "react": "^19.1.0", | |
| "react-dom": "^19.1.0", | |
| "tailwindcss": "^4.1.0" | |
| }, | |
| "devDependencies": { | |
| "@types/node": "^24.0.0", | |
| "@types/react": "^19.1.0", | |
| "@types/react-dom": "^19.1.0", | |
| "@vitejs/plugin-react": "^5.0.0", | |
| "typescript": "^5.9.0", | |
| "vite": "^7.1.0" | |
| }, | |
| "packageManager": "pnpm@11.19.0" | |
| } | |