Text Generation
Transformers
Safetensors
English
Vietnamese
lfm2
title-generation
multilingual
conversational
Instructions to use ManhHoDinh/lfm25-titlegen-dpo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ManhHoDinh/lfm25-titlegen-dpo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ManhHoDinh/lfm25-titlegen-dpo") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ManhHoDinh/lfm25-titlegen-dpo") model = AutoModelForCausalLM.from_pretrained("ManhHoDinh/lfm25-titlegen-dpo", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ManhHoDinh/lfm25-titlegen-dpo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ManhHoDinh/lfm25-titlegen-dpo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ManhHoDinh/lfm25-titlegen-dpo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ManhHoDinh/lfm25-titlegen-dpo
- SGLang
How to use ManhHoDinh/lfm25-titlegen-dpo 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 "ManhHoDinh/lfm25-titlegen-dpo" \ --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": "ManhHoDinh/lfm25-titlegen-dpo", "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 "ManhHoDinh/lfm25-titlegen-dpo" \ --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": "ManhHoDinh/lfm25-titlegen-dpo", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use ManhHoDinh/lfm25-titlegen-dpo with Docker Model Runner:
docker model run hf.co/ManhHoDinh/lfm25-titlegen-dpo
Publish TitleGen benchmark report
Browse files- benchmark-report.json +143 -0
benchmark-report.json
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"benchmark_revision": "titlegen-local-en-vi-v1",
|
| 3 |
+
"decoding": {
|
| 4 |
+
"do_sample": false,
|
| 5 |
+
"max_new_tokens": 32
|
| 6 |
+
},
|
| 7 |
+
"evaluator_revision": "b35cd97518cd",
|
| 8 |
+
"evidence_level": "PRELIMINARY_AUTOMATED_EN_VI",
|
| 9 |
+
"languages": {
|
| 10 |
+
"de": {
|
| 11 |
+
"pass_count": 0,
|
| 12 |
+
"pass_rate": 0.0,
|
| 13 |
+
"sample_count": 0,
|
| 14 |
+
"status": "NOT_EVALUATED"
|
| 15 |
+
},
|
| 16 |
+
"en": {
|
| 17 |
+
"pass_count": 197,
|
| 18 |
+
"pass_rate": 0.994949,
|
| 19 |
+
"sample_count": 198,
|
| 20 |
+
"status": "EVALUATED"
|
| 21 |
+
},
|
| 22 |
+
"es": {
|
| 23 |
+
"pass_count": 0,
|
| 24 |
+
"pass_rate": 0.0,
|
| 25 |
+
"sample_count": 0,
|
| 26 |
+
"status": "NOT_EVALUATED"
|
| 27 |
+
},
|
| 28 |
+
"fil": {
|
| 29 |
+
"pass_count": 0,
|
| 30 |
+
"pass_rate": 0.0,
|
| 31 |
+
"sample_count": 0,
|
| 32 |
+
"status": "NOT_EVALUATED"
|
| 33 |
+
},
|
| 34 |
+
"fr": {
|
| 35 |
+
"pass_count": 0,
|
| 36 |
+
"pass_rate": 0.0,
|
| 37 |
+
"sample_count": 0,
|
| 38 |
+
"status": "NOT_EVALUATED"
|
| 39 |
+
},
|
| 40 |
+
"id": {
|
| 41 |
+
"pass_count": 0,
|
| 42 |
+
"pass_rate": 0.0,
|
| 43 |
+
"sample_count": 0,
|
| 44 |
+
"status": "NOT_EVALUATED"
|
| 45 |
+
},
|
| 46 |
+
"ja": {
|
| 47 |
+
"pass_count": 0,
|
| 48 |
+
"pass_rate": 0.0,
|
| 49 |
+
"sample_count": 0,
|
| 50 |
+
"status": "NOT_EVALUATED"
|
| 51 |
+
},
|
| 52 |
+
"ko": {
|
| 53 |
+
"pass_count": 0,
|
| 54 |
+
"pass_rate": 0.0,
|
| 55 |
+
"sample_count": 0,
|
| 56 |
+
"status": "NOT_EVALUATED"
|
| 57 |
+
},
|
| 58 |
+
"lo": {
|
| 59 |
+
"pass_count": 0,
|
| 60 |
+
"pass_rate": 0.0,
|
| 61 |
+
"sample_count": 0,
|
| 62 |
+
"status": "NOT_EVALUATED"
|
| 63 |
+
},
|
| 64 |
+
"ms": {
|
| 65 |
+
"pass_count": 0,
|
| 66 |
+
"pass_rate": 0.0,
|
| 67 |
+
"sample_count": 0,
|
| 68 |
+
"status": "NOT_EVALUATED"
|
| 69 |
+
},
|
| 70 |
+
"my": {
|
| 71 |
+
"pass_count": 0,
|
| 72 |
+
"pass_rate": 0.0,
|
| 73 |
+
"sample_count": 0,
|
| 74 |
+
"status": "NOT_EVALUATED"
|
| 75 |
+
},
|
| 76 |
+
"pt": {
|
| 77 |
+
"pass_count": 0,
|
| 78 |
+
"pass_rate": 0.0,
|
| 79 |
+
"sample_count": 0,
|
| 80 |
+
"status": "NOT_EVALUATED"
|
| 81 |
+
},
|
| 82 |
+
"ru": {
|
| 83 |
+
"pass_count": 0,
|
| 84 |
+
"pass_rate": 0.0,
|
| 85 |
+
"sample_count": 0,
|
| 86 |
+
"status": "NOT_EVALUATED"
|
| 87 |
+
},
|
| 88 |
+
"ta": {
|
| 89 |
+
"pass_count": 0,
|
| 90 |
+
"pass_rate": 0.0,
|
| 91 |
+
"sample_count": 0,
|
| 92 |
+
"status": "NOT_EVALUATED"
|
| 93 |
+
},
|
| 94 |
+
"th": {
|
| 95 |
+
"pass_count": 0,
|
| 96 |
+
"pass_rate": 0.0,
|
| 97 |
+
"sample_count": 0,
|
| 98 |
+
"status": "NOT_EVALUATED"
|
| 99 |
+
},
|
| 100 |
+
"vi": {
|
| 101 |
+
"pass_count": 96,
|
| 102 |
+
"pass_rate": 0.941176,
|
| 103 |
+
"sample_count": 102,
|
| 104 |
+
"status": "EVALUATED"
|
| 105 |
+
},
|
| 106 |
+
"zh": {
|
| 107 |
+
"pass_count": 0,
|
| 108 |
+
"pass_rate": 0.0,
|
| 109 |
+
"sample_count": 0,
|
| 110 |
+
"status": "NOT_EVALUATED"
|
| 111 |
+
}
|
| 112 |
+
},
|
| 113 |
+
"limitations": [
|
| 114 |
+
"Only English and Vietnamese have evaluated examples.",
|
| 115 |
+
"Language correctness uses an automated heuristic.",
|
| 116 |
+
"No native review or blind preference evidence is included."
|
| 117 |
+
],
|
| 118 |
+
"model": {
|
| 119 |
+
"key": "dpo",
|
| 120 |
+
"repo": "ManhHoDinh/lfm25-titlegen-dpo",
|
| 121 |
+
"revision": "3cccce152745bee40de7dc5cb0c6cefa146bf0a7",
|
| 122 |
+
"weight_sha256": "4d2eb64fb379c6f6a4d3c059342eea7c6135147ba1146ff03248a095196db192"
|
| 123 |
+
},
|
| 124 |
+
"overall": {
|
| 125 |
+
"pass_count": 293,
|
| 126 |
+
"pass_rate": 0.976667,
|
| 127 |
+
"sample_count": 300,
|
| 128 |
+
"status": "EVALUATED"
|
| 129 |
+
},
|
| 130 |
+
"publication_timestamp": "2026-08-16T00:00:00+07:00",
|
| 131 |
+
"rubric_ids": [
|
| 132 |
+
"3-8_tu",
|
| 133 |
+
"khong_cham_cuoi",
|
| 134 |
+
"mot_dong",
|
| 135 |
+
"dung_ngon_ngu",
|
| 136 |
+
"khong_chep"
|
| 137 |
+
],
|
| 138 |
+
"schema_version": "titlegen-public-benchmark.v1",
|
| 139 |
+
"suite_sha256": {
|
| 140 |
+
"en": "5381837ade48220be86af0bcf90d863a32c85d1f2f6d4c6bee24f1e7b38830bb",
|
| 141 |
+
"vi": "6b8d3c8e7a990aa839eccf40f18c5191a618e23d24e2821008003b1ea5c82d43"
|
| 142 |
+
}
|
| 143 |
+
}
|