Instructions to use wangzihaogithub/job-educational-parser with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wangzihaogithub/job-educational-parser with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wangzihaogithub/job-educational-parser") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("wangzihaogithub/job-educational-parser", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wangzihaogithub/job-educational-parser with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wangzihaogithub/job-educational-parser" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wangzihaogithub/job-educational-parser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/wangzihaogithub/job-educational-parser
- SGLang
How to use wangzihaogithub/job-educational-parser 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 "wangzihaogithub/job-educational-parser" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wangzihaogithub/job-educational-parser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "wangzihaogithub/job-educational-parser" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wangzihaogithub/job-educational-parser", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use wangzihaogithub/job-educational-parser with Docker Model Runner:
docker model run hf.co/wangzihaogithub/job-educational-parser
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,57 +1,67 @@
|
|
| 1 |
-
---
|
| 2 |
-
library_name: transformers
|
| 3 |
-
model_name: output-08-0-0805
|
| 4 |
-
tags:
|
| 5 |
-
- generated_from_trainer
|
| 6 |
-
- trl
|
| 7 |
-
- sft
|
| 8 |
-
licence: license
|
| 9 |
-
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
model_name: output-08-0-0805
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
- trl
|
| 7 |
+
- sft
|
| 8 |
+
licence: license
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
datasets:
|
| 11 |
+
- wangzihaogithub/job-educational-parser-dataset-08-0-0805
|
| 12 |
+
language:
|
| 13 |
+
- zh
|
| 14 |
+
metrics:
|
| 15 |
+
- accuracy
|
| 16 |
+
base_model:
|
| 17 |
+
- Qwen/Qwen3-0.6B-Base
|
| 18 |
+
pipeline_tag: text-classification
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# Model Card for output-08-0-0805
|
| 22 |
+
|
| 23 |
+
This model is a fine-tuned version of [None](https://huggingface.co/None).
|
| 24 |
+
It has been trained using [TRL](https://github.com/huggingface/trl).
|
| 25 |
+
|
| 26 |
+
## Quick start
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
from transformers import pipeline
|
| 30 |
+
|
| 31 |
+
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
|
| 32 |
+
generator = pipeline("text-generation", model="None", device="cuda")
|
| 33 |
+
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
|
| 34 |
+
print(output["generated_text"])
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## Training procedure
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
This model was trained with SFT.
|
| 43 |
+
|
| 44 |
+
### Framework versions
|
| 45 |
+
|
| 46 |
+
- TRL: 0.19.0
|
| 47 |
+
- Transformers: 4.53.0
|
| 48 |
+
- Pytorch: 2.6.0
|
| 49 |
+
- Datasets: 3.6.0
|
| 50 |
+
- Tokenizers: 0.21.2
|
| 51 |
+
|
| 52 |
+
## Citations
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
Cite TRL as:
|
| 57 |
+
|
| 58 |
+
```bibtex
|
| 59 |
+
@misc{vonwerra2022trl,
|
| 60 |
+
title = {{TRL: Transformer Reinforcement Learning}},
|
| 61 |
+
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallou{\'e}dec},
|
| 62 |
+
year = 2020,
|
| 63 |
+
journal = {GitHub repository},
|
| 64 |
+
publisher = {GitHub},
|
| 65 |
+
howpublished = {\url{https://github.com/huggingface/trl}}
|
| 66 |
+
}
|
| 67 |
```
|