Text Classification
Transformers
Safetensors
Laya
multilingual
en
zh
ruhui
jev
system-one
calibrated-decisions
rlcd
classification
routing
scoring
guardrails
moderation
reinforcement-learning
commercial-use
Instructions to use anyforge/ruhui with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anyforge/ruhui with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="anyforge/ruhui")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("anyforge/ruhui", device_map="auto") - Laya
How to use anyforge/ruhui with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -48,7 +48,7 @@ Python 3.10+. Core deps: `torch`, `transformers`, `safetensors`, `huggingface_hu
|
|
| 48 |
```python
|
| 49 |
import ruhui
|
| 50 |
|
| 51 |
-
agent = ruhui.load("anyforge/ruhui") # hub, or a local directory
|
| 52 |
|
| 53 |
result = agent.predict(
|
| 54 |
{"message": "我被重复扣款了,请退款"},
|
|
@@ -67,7 +67,7 @@ print(result["answers"])
|
|
| 67 |
from ruhui.llm import LLMAgent
|
| 68 |
|
| 69 |
# a merged (self-contained) model — no base_dir needed
|
| 70 |
-
agent = LLMAgent(checkpoint_dir="anyforge/ruhui/0.8B")
|
| 71 |
|
| 72 |
result = agent.predict(
|
| 73 |
{"message": "我被重复扣款了,请退款"},
|
|
|
|
| 48 |
```python
|
| 49 |
import ruhui
|
| 50 |
|
| 51 |
+
agent = ruhui.load("/path/to/anyforge/ruhui") # hub, or a local directory
|
| 52 |
|
| 53 |
result = agent.predict(
|
| 54 |
{"message": "我被重复扣款了,请退款"},
|
|
|
|
| 67 |
from ruhui.llm import LLMAgent
|
| 68 |
|
| 69 |
# a merged (self-contained) model — no base_dir needed
|
| 70 |
+
agent = LLMAgent(checkpoint_dir="/path/to/anyforge/ruhui/0.8B")
|
| 71 |
|
| 72 |
result = agent.predict(
|
| 73 |
{"message": "我被重复扣款了,请退款"},
|