Spaces:
Sleeping
Sleeping
Upload 46 files
Browse files- offer-puplayer-hf/.gitignore +3 -0
- offer-puplayer-hf/Dockerfile +3 -0
- offer-puplayer-hf/backend/app/main.py +18 -7
- offer-puplayer-hf/backend/app/services/embedding_service.py +11 -5
- offer-puplayer-hf/backend/app/services/job_service.py +2 -10
- offer-puplayer-hf/backend/models/config.json +32 -0
- offer-puplayer-hf/backend/models/model_optimized.onnx +3 -0
- offer-puplayer-hf/backend/models/special_tokens_map.json +7 -0
- offer-puplayer-hf/backend/models/tokenizer.json +0 -0
- offer-puplayer-hf/backend/models/tokenizer_config.json +15 -0
- offer-puplayer-hf/backend/requirements.txt +1 -1
- offer-puplayer-hf/frontend/src/App.css +535 -0
- offer-puplayer-hf/models/config.json +32 -0
- offer-puplayer-hf/models/model_optimized.onnx +3 -0
- offer-puplayer-hf/models/special_tokens_map.json +7 -0
- offer-puplayer-hf/models/tokenizer.json +0 -0
- offer-puplayer-hf/models/tokenizer_config.json +15 -0
offer-puplayer-hf/.gitignore
CHANGED
|
@@ -4,4 +4,7 @@ __pycache__/
|
|
| 4 |
*.db
|
| 5 |
node_modules/
|
| 6 |
dist/
|
|
|
|
| 7 |
.DS_Store
|
|
|
|
|
|
|
|
|
| 4 |
*.db
|
| 5 |
node_modules/
|
| 6 |
dist/
|
| 7 |
+
static/
|
| 8 |
.DS_Store
|
| 9 |
+
*.log
|
| 10 |
+
package-lock.json
|
offer-puplayer-hf/Dockerfile
CHANGED
|
@@ -22,6 +22,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 22 |
# Copy backend code
|
| 23 |
COPY backend/ .
|
| 24 |
|
|
|
|
|
|
|
|
|
|
| 25 |
# Copy frontend build
|
| 26 |
COPY --from=frontend-build /app/dist ./static
|
| 27 |
|
|
|
|
| 22 |
# Copy backend code
|
| 23 |
COPY backend/ .
|
| 24 |
|
| 25 |
+
# Copy pre-downloaded ONNX model
|
| 26 |
+
COPY models/ ./models/
|
| 27 |
+
|
| 28 |
# Copy frontend build
|
| 29 |
COPY --from=frontend-build /app/dist ./static
|
| 30 |
|
offer-puplayer-hf/backend/app/main.py
CHANGED
|
@@ -6,7 +6,6 @@ from dotenv import load_dotenv
|
|
| 6 |
from fastapi import FastAPI, File, UploadFile, Query
|
| 7 |
from fastapi.middleware.cors import CORSMiddleware
|
| 8 |
from fastapi.responses import StreamingResponse
|
| 9 |
-
from fastapi.staticfiles import StaticFiles
|
| 10 |
|
| 11 |
from app import database
|
| 12 |
from app.models import GenerateRequest, RerankRequest, UploadResponse, ResumeData
|
|
@@ -162,12 +161,24 @@ async def rerank_report(req: RerankRequest):
|
|
| 162 |
return {"match_rate": current_rate, "previous_rate": previous_rate}
|
| 163 |
|
| 164 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 165 |
if __name__ == "__main__":
|
| 166 |
import uvicorn
|
| 167 |
|
| 168 |
-
uvicorn.run("app.main:app", host="0.0.0.0", port=7860
|
| 169 |
-
|
| 170 |
-
# Serve frontend static files (for HuggingFace Spaces deployment)
|
| 171 |
-
_static_dir = Path(__file__).parent.parent / "static"
|
| 172 |
-
if _static_dir.exists():
|
| 173 |
-
app.mount("/", StaticFiles(directory=str(_static_dir), html=True), name="static")
|
|
|
|
| 6 |
from fastapi import FastAPI, File, UploadFile, Query
|
| 7 |
from fastapi.middleware.cors import CORSMiddleware
|
| 8 |
from fastapi.responses import StreamingResponse
|
|
|
|
| 9 |
|
| 10 |
from app import database
|
| 11 |
from app.models import GenerateRequest, RerankRequest, UploadResponse, ResumeData
|
|
|
|
| 161 |
return {"match_rate": current_rate, "previous_rate": previous_rate}
|
| 162 |
|
| 163 |
|
| 164 |
+
# Serve frontend static files (for HuggingFace Spaces deployment)
|
| 165 |
+
from fastapi.responses import FileResponse
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
@app.get("/{full_path:path}")
|
| 169 |
+
async def serve_frontend(full_path: str):
|
| 170 |
+
static_dir = Path(__file__).parent.parent / "static"
|
| 171 |
+
file_path = static_dir / full_path
|
| 172 |
+
if file_path.exists() and file_path.is_file():
|
| 173 |
+
return FileResponse(str(file_path))
|
| 174 |
+
index_path = static_dir / "index.html"
|
| 175 |
+
if index_path.exists():
|
| 176 |
+
return FileResponse(str(index_path))
|
| 177 |
+
from fastapi.responses import JSONResponse
|
| 178 |
+
return JSONResponse({"detail": "Not Found"}, status_code=404)
|
| 179 |
+
|
| 180 |
+
|
| 181 |
if __name__ == "__main__":
|
| 182 |
import uvicorn
|
| 183 |
|
| 184 |
+
uvicorn.run("app.main:app", host="0.0.0.0", port=7860)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
offer-puplayer-hf/backend/app/services/embedding_service.py
CHANGED
|
@@ -5,21 +5,27 @@ import os
|
|
| 5 |
logger = logging.getLogger(__name__)
|
| 6 |
|
| 7 |
_model = None
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
def _get_model():
|
| 11 |
global _model
|
| 12 |
if _model is None:
|
| 13 |
logger.info("Loading embedding model ...")
|
| 14 |
-
from
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
return _model
|
| 18 |
|
| 19 |
|
| 20 |
def compute_embedding(text: str) -> list[float]:
|
| 21 |
-
|
| 22 |
-
vec = model.encode(text, normalize_embeddings=True)
|
| 23 |
return vec.tolist()
|
| 24 |
|
| 25 |
|
|
|
|
| 5 |
logger = logging.getLogger(__name__)
|
| 6 |
|
| 7 |
_model = None
|
| 8 |
+
_LOCAL_MODEL_PATH = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "models")
|
| 9 |
|
| 10 |
|
| 11 |
def _get_model():
|
| 12 |
global _model
|
| 13 |
if _model is None:
|
| 14 |
logger.info("Loading embedding model ...")
|
| 15 |
+
from fastembed import TextEmbedding
|
| 16 |
+
local_path = _LOCAL_MODEL_PATH
|
| 17 |
+
if os.path.isdir(local_path) and os.path.isfile(os.path.join(local_path, "model_optimized.onnx")):
|
| 18 |
+
logger.info("Loading from local path: %s", local_path)
|
| 19 |
+
_model = TextEmbedding(model_name=local_path, cache_dir=os.path.dirname(local_path))
|
| 20 |
+
else:
|
| 21 |
+
os.environ.setdefault("HF_ENDPOINT", "https://hf-mirror.com")
|
| 22 |
+
_model = TextEmbedding("BAAI/bge-small-zh-v1.5")
|
| 23 |
+
logger.info("Embedding model loaded")
|
| 24 |
return _model
|
| 25 |
|
| 26 |
|
| 27 |
def compute_embedding(text: str) -> list[float]:
|
| 28 |
+
vec = list(_get_model().embed(text))[0]
|
|
|
|
| 29 |
return vec.tolist()
|
| 30 |
|
| 31 |
|
offer-puplayer-hf/backend/app/services/job_service.py
CHANGED
|
@@ -63,7 +63,7 @@ def _build_resume_text(resume_data: dict) -> str:
|
|
| 63 |
|
| 64 |
|
| 65 |
def _calc_match_rate(resume_data: dict, job: dict, tag_score: float, edu_score: float, vec_score: float) -> float:
|
| 66 |
-
final_score = vec_score * 0.
|
| 67 |
return round(min(final_score, 1.0), 4)
|
| 68 |
|
| 69 |
|
|
@@ -137,16 +137,8 @@ def recommend_jobs(resume_data: dict) -> list[dict]:
|
|
| 137 |
job["_edu_score"] = edu_score
|
| 138 |
job["_vec_raw"] = vec_raw
|
| 139 |
|
| 140 |
-
raw_vecs = [j["_vec_raw"] for j in jobs]
|
| 141 |
-
min_vec = min(raw_vecs)
|
| 142 |
-
max_vec = max(raw_vecs)
|
| 143 |
-
vec_range = max_vec - min_vec
|
| 144 |
-
|
| 145 |
for job in jobs:
|
| 146 |
-
|
| 147 |
-
job["_vec_score"] = (job["_vec_raw"] - min_vec) / vec_range
|
| 148 |
-
else:
|
| 149 |
-
job["_vec_score"] = 0.5
|
| 150 |
|
| 151 |
scored = []
|
| 152 |
for job in jobs:
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
def _calc_match_rate(resume_data: dict, job: dict, tag_score: float, edu_score: float, vec_score: float) -> float:
|
| 66 |
+
final_score = vec_score * 0.35 + tag_score * 0.45 + edu_score * 0.20
|
| 67 |
return round(min(final_score, 1.0), 4)
|
| 68 |
|
| 69 |
|
|
|
|
| 137 |
job["_edu_score"] = edu_score
|
| 138 |
job["_vec_raw"] = vec_raw
|
| 139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
for job in jobs:
|
| 141 |
+
job["_vec_score"] = max(0, min((job["_vec_raw"] - 0.30) / 0.40, 1.0))
|
|
|
|
|
|
|
|
|
|
| 142 |
|
| 143 |
scored = []
|
| 144 |
for job in jobs:
|
offer-puplayer-hf/backend/models/config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "BAAI/bge-small-zh-v1.5",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 512,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "LABEL_0"
|
| 14 |
+
},
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": 2048,
|
| 17 |
+
"label2id": {
|
| 18 |
+
"LABEL_0": 0
|
| 19 |
+
},
|
| 20 |
+
"layer_norm_eps": 1e-12,
|
| 21 |
+
"max_position_embeddings": 512,
|
| 22 |
+
"model_type": "bert",
|
| 23 |
+
"num_attention_heads": 8,
|
| 24 |
+
"num_hidden_layers": 4,
|
| 25 |
+
"pad_token_id": 0,
|
| 26 |
+
"position_embedding_type": "absolute",
|
| 27 |
+
"torch_dtype": "float32",
|
| 28 |
+
"transformers_version": "4.33.2",
|
| 29 |
+
"type_vocab_size": 2,
|
| 30 |
+
"use_cache": true,
|
| 31 |
+
"vocab_size": 21128
|
| 32 |
+
}
|
offer-puplayer-hf/backend/models/model_optimized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1294ea4b6331115a353d81f96b85e8c8d7fdcc284453d5b2fab5b016230aad38
|
| 3 |
+
size 94781076
|
offer-puplayer-hf/backend/models/special_tokens_map.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": "[CLS]",
|
| 3 |
+
"mask_token": "[MASK]",
|
| 4 |
+
"pad_token": "[PAD]",
|
| 5 |
+
"sep_token": "[SEP]",
|
| 6 |
+
"unk_token": "[UNK]"
|
| 7 |
+
}
|
offer-puplayer-hf/backend/models/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
offer-puplayer-hf/backend/models/tokenizer_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"clean_up_tokenization_spaces": true,
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_basic_tokenize": true,
|
| 5 |
+
"do_lower_case": false,
|
| 6 |
+
"mask_token": "[MASK]",
|
| 7 |
+
"model_max_length": 512,
|
| 8 |
+
"never_split": null,
|
| 9 |
+
"pad_token": "[PAD]",
|
| 10 |
+
"sep_token": "[SEP]",
|
| 11 |
+
"strip_accents": null,
|
| 12 |
+
"tokenize_chinese_chars": true,
|
| 13 |
+
"tokenizer_class": "BertTokenizer",
|
| 14 |
+
"unk_token": "[UNK]"
|
| 15 |
+
}
|
offer-puplayer-hf/backend/requirements.txt
CHANGED
|
@@ -5,4 +5,4 @@ python-multipart
|
|
| 5 |
pdfplumber
|
| 6 |
httpx
|
| 7 |
python-dotenv
|
| 8 |
-
|
|
|
|
| 5 |
pdfplumber
|
| 6 |
httpx
|
| 7 |
python-dotenv
|
| 8 |
+
fastembed
|
offer-puplayer-hf/frontend/src/App.css
ADDED
|
@@ -0,0 +1,535 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
--color-primary: #4F46E5;
|
| 3 |
+
--color-primary-light: #6366F1;
|
| 4 |
+
--color-primary-dark: #3730A3;
|
| 5 |
+
--color-success: #10B981;
|
| 6 |
+
--color-warning: #F59E0B;
|
| 7 |
+
--color-error: #EF4444;
|
| 8 |
+
--color-bg: #F3F4F6;
|
| 9 |
+
--color-bg-white: #FFFFFF;
|
| 10 |
+
--color-text: #1F2937;
|
| 11 |
+
--color-text-secondary: #6B7280;
|
| 12 |
+
--color-text-light: #9CA3AF;
|
| 13 |
+
--color-border: #E5E7EB;
|
| 14 |
+
--color-border-light: #F3F4F6;
|
| 15 |
+
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
|
| 16 |
+
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
|
| 17 |
+
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
|
| 18 |
+
--radius-sm: 6px;
|
| 19 |
+
--radius-md: 8px;
|
| 20 |
+
--radius-lg: 12px;
|
| 21 |
+
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
*,
|
| 25 |
+
*::before,
|
| 26 |
+
*::after {
|
| 27 |
+
margin: 0;
|
| 28 |
+
padding: 0;
|
| 29 |
+
box-sizing: border-box;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
html {
|
| 33 |
+
font-size: 16px;
|
| 34 |
+
-webkit-font-smoothing: antialiased;
|
| 35 |
+
-moz-osx-font-smoothing: grayscale;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
body {
|
| 39 |
+
font-family: var(--font-family);
|
| 40 |
+
font-size: 14px;
|
| 41 |
+
line-height: 1.6;
|
| 42 |
+
color: var(--color-text);
|
| 43 |
+
background-color: var(--color-bg);
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
#app {
|
| 47 |
+
min-height: 100vh;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.app {
|
| 51 |
+
min-height: 100vh;
|
| 52 |
+
display: flex;
|
| 53 |
+
flex-direction: column;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.nav-bar {
|
| 57 |
+
background-color: var(--color-bg-white);
|
| 58 |
+
border-bottom: 1px solid var(--color-border);
|
| 59 |
+
box-shadow: var(--shadow-sm);
|
| 60 |
+
position: sticky;
|
| 61 |
+
top: 0;
|
| 62 |
+
z-index: 100;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.nav-inner {
|
| 66 |
+
max-width: 1200px;
|
| 67 |
+
margin: 0 auto;
|
| 68 |
+
padding: 0 24px;
|
| 69 |
+
height: 56px;
|
| 70 |
+
display: flex;
|
| 71 |
+
align-items: center;
|
| 72 |
+
justify-content: space-between;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
.nav-logo {
|
| 76 |
+
font-size: 18px;
|
| 77 |
+
font-weight: 700;
|
| 78 |
+
color: var(--color-primary);
|
| 79 |
+
cursor: pointer;
|
| 80 |
+
user-select: none;
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
.nav-links {
|
| 84 |
+
display: flex;
|
| 85 |
+
align-items: center;
|
| 86 |
+
gap: 8px;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
.nav-link {
|
| 90 |
+
padding: 6px 16px;
|
| 91 |
+
font-size: 14px;
|
| 92 |
+
font-weight: 500;
|
| 93 |
+
color: var(--color-text-secondary);
|
| 94 |
+
cursor: pointer;
|
| 95 |
+
border-radius: var(--radius-sm);
|
| 96 |
+
transition: color 0.2s, background-color 0.2s;
|
| 97 |
+
user-select: none;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.nav-link:hover {
|
| 101 |
+
color: var(--color-primary);
|
| 102 |
+
background-color: rgba(79, 70, 229, 0.06);
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
.nav-link.active {
|
| 106 |
+
color: var(--color-primary);
|
| 107 |
+
background-color: rgba(79, 70, 229, 0.1);
|
| 108 |
+
font-weight: 600;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
.page-container {
|
| 112 |
+
flex: 1;
|
| 113 |
+
max-width: 1200px;
|
| 114 |
+
width: 100%;
|
| 115 |
+
margin: 0 auto;
|
| 116 |
+
padding: 32px 24px;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
.flex {
|
| 120 |
+
display: flex;
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
.flex-col {
|
| 124 |
+
flex-direction: column;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
.flex-center {
|
| 128 |
+
display: flex;
|
| 129 |
+
align-items: center;
|
| 130 |
+
justify-content: center;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
.flex-between {
|
| 134 |
+
display: flex;
|
| 135 |
+
align-items: center;
|
| 136 |
+
justify-content: space-between;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
.flex-wrap {
|
| 140 |
+
flex-wrap: wrap;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
.gap-8 {
|
| 144 |
+
gap: 8px;
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
.gap-12 {
|
| 148 |
+
gap: 12px;
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
.gap-16 {
|
| 152 |
+
gap: 16px;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
.gap-24 {
|
| 156 |
+
gap: 24px;
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
.grid-2 {
|
| 160 |
+
display: grid;
|
| 161 |
+
grid-template-columns: repeat(2, 1fr);
|
| 162 |
+
gap: 24px;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.grid-3 {
|
| 166 |
+
display: grid;
|
| 167 |
+
grid-template-columns: repeat(3, 1fr);
|
| 168 |
+
gap: 24px;
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
.btn {
|
| 172 |
+
display: inline-flex;
|
| 173 |
+
align-items: center;
|
| 174 |
+
justify-content: center;
|
| 175 |
+
gap: 8px;
|
| 176 |
+
padding: 10px 20px;
|
| 177 |
+
font-size: 14px;
|
| 178 |
+
font-weight: 500;
|
| 179 |
+
line-height: 1;
|
| 180 |
+
border: 1px solid transparent;
|
| 181 |
+
border-radius: var(--radius-sm);
|
| 182 |
+
cursor: pointer;
|
| 183 |
+
transition: all 0.2s;
|
| 184 |
+
user-select: none;
|
| 185 |
+
white-space: nowrap;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
.btn:disabled {
|
| 189 |
+
opacity: 0.5;
|
| 190 |
+
cursor: not-allowed;
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
.btn-primary {
|
| 194 |
+
background-color: var(--color-primary);
|
| 195 |
+
color: #FFFFFF;
|
| 196 |
+
border-color: var(--color-primary);
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
.btn-primary:hover:not(:disabled) {
|
| 200 |
+
background-color: var(--color-primary-dark);
|
| 201 |
+
border-color: var(--color-primary-dark);
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
.btn-secondary {
|
| 205 |
+
background-color: var(--color-bg-white);
|
| 206 |
+
color: var(--color-text);
|
| 207 |
+
border-color: var(--color-border);
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
.btn-secondary:hover:not(:disabled) {
|
| 211 |
+
background-color: var(--color-border-light);
|
| 212 |
+
border-color: var(--color-border);
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
.btn-outline {
|
| 216 |
+
background-color: transparent;
|
| 217 |
+
color: var(--color-primary);
|
| 218 |
+
border-color: var(--color-primary);
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
.btn-outline:hover:not(:disabled) {
|
| 222 |
+
background-color: rgba(79, 70, 229, 0.06);
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
.btn-sm {
|
| 226 |
+
padding: 6px 12px;
|
| 227 |
+
font-size: 13px;
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
.btn-lg {
|
| 231 |
+
padding: 14px 28px;
|
| 232 |
+
font-size: 16px;
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
.card {
|
| 236 |
+
background-color: var(--color-bg-white);
|
| 237 |
+
border: 1px solid var(--color-border);
|
| 238 |
+
border-radius: var(--radius-lg);
|
| 239 |
+
box-shadow: var(--shadow-sm);
|
| 240 |
+
padding: 24px;
|
| 241 |
+
transition: box-shadow 0.2s;
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
.card:hover {
|
| 245 |
+
box-shadow: var(--shadow-md);
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
.text-primary {
|
| 249 |
+
color: var(--color-primary);
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
.text-success {
|
| 253 |
+
color: var(--color-success);
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
.text-warning {
|
| 257 |
+
color: var(--color-warning);
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
.text-error {
|
| 261 |
+
color: var(--color-error);
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
.text-secondary {
|
| 265 |
+
color: var(--color-text-secondary);
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
.text-light {
|
| 269 |
+
color: var(--color-text-light);
|
| 270 |
+
}
|
| 271 |
+
|
| 272 |
+
.text-center {
|
| 273 |
+
text-align: center;
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
.text-sm {
|
| 277 |
+
font-size: 13px;
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
.text-lg {
|
| 281 |
+
font-size: 16px;
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
.text-xl {
|
| 285 |
+
font-size: 20px;
|
| 286 |
+
}
|
| 287 |
+
|
| 288 |
+
.font-bold {
|
| 289 |
+
font-weight: 600;
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
.mt-8 {
|
| 293 |
+
margin-top: 8px;
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
.mt-16 {
|
| 297 |
+
margin-top: 16px;
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
.mt-24 {
|
| 301 |
+
margin-top: 24px;
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
.mb-8 {
|
| 305 |
+
margin-bottom: 8px;
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
.mb-16 {
|
| 309 |
+
margin-bottom: 16px;
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
.mb-24 {
|
| 313 |
+
margin-bottom: 24px;
|
| 314 |
+
}
|
| 315 |
+
|
| 316 |
+
.empty-state {
|
| 317 |
+
display: flex;
|
| 318 |
+
flex-direction: column;
|
| 319 |
+
align-items: center;
|
| 320 |
+
justify-content: center;
|
| 321 |
+
padding: 64px 24px;
|
| 322 |
+
text-align: center;
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
.empty-state-icon {
|
| 326 |
+
font-size: 48px;
|
| 327 |
+
margin-bottom: 16px;
|
| 328 |
+
color: var(--color-text-light);
|
| 329 |
+
}
|
| 330 |
+
|
| 331 |
+
.empty-state-text {
|
| 332 |
+
font-size: 16px;
|
| 333 |
+
color: var(--color-text-secondary);
|
| 334 |
+
margin-bottom: 24px;
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
.error-state {
|
| 338 |
+
display: flex;
|
| 339 |
+
flex-direction: column;
|
| 340 |
+
align-items: center;
|
| 341 |
+
justify-content: center;
|
| 342 |
+
padding: 48px 24px;
|
| 343 |
+
text-align: center;
|
| 344 |
+
}
|
| 345 |
+
|
| 346 |
+
.error-state-text {
|
| 347 |
+
font-size: 15px;
|
| 348 |
+
color: var(--color-error);
|
| 349 |
+
margin-bottom: 16px;
|
| 350 |
+
}
|
| 351 |
+
|
| 352 |
+
.loading-state {
|
| 353 |
+
display: flex;
|
| 354 |
+
flex-direction: column;
|
| 355 |
+
align-items: center;
|
| 356 |
+
justify-content: center;
|
| 357 |
+
padding: 48px 24px;
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
@keyframes spin {
|
| 361 |
+
from {
|
| 362 |
+
transform: rotate(0deg);
|
| 363 |
+
}
|
| 364 |
+
to {
|
| 365 |
+
transform: rotate(360deg);
|
| 366 |
+
}
|
| 367 |
+
}
|
| 368 |
+
|
| 369 |
+
@keyframes pulse {
|
| 370 |
+
0%, 100% {
|
| 371 |
+
opacity: 1;
|
| 372 |
+
}
|
| 373 |
+
50% {
|
| 374 |
+
opacity: 0.5;
|
| 375 |
+
}
|
| 376 |
+
}
|
| 377 |
+
|
| 378 |
+
@keyframes shimmer {
|
| 379 |
+
0% {
|
| 380 |
+
background-position: -200% 0;
|
| 381 |
+
}
|
| 382 |
+
100% {
|
| 383 |
+
background-position: 200% 0;
|
| 384 |
+
}
|
| 385 |
+
}
|
| 386 |
+
|
| 387 |
+
.loading-spinner {
|
| 388 |
+
width: 32px;
|
| 389 |
+
height: 32px;
|
| 390 |
+
border: 3px solid var(--color-border);
|
| 391 |
+
border-top-color: var(--color-primary);
|
| 392 |
+
border-radius: 50%;
|
| 393 |
+
animation: spin 0.8s linear infinite;
|
| 394 |
+
}
|
| 395 |
+
|
| 396 |
+
.loading-spinner-sm {
|
| 397 |
+
width: 20px;
|
| 398 |
+
height: 20px;
|
| 399 |
+
border-width: 2px;
|
| 400 |
+
}
|
| 401 |
+
|
| 402 |
+
.loading-spinner-lg {
|
| 403 |
+
width: 48px;
|
| 404 |
+
height: 48px;
|
| 405 |
+
border-width: 4px;
|
| 406 |
+
}
|
| 407 |
+
|
| 408 |
+
.skeleton {
|
| 409 |
+
background: linear-gradient(90deg, var(--color-border-light) 25%, var(--color-border) 50%, var(--color-border-light) 75%);
|
| 410 |
+
background-size: 200% 100%;
|
| 411 |
+
animation: shimmer 1.5s ease-in-out infinite;
|
| 412 |
+
border-radius: var(--radius-sm);
|
| 413 |
+
}
|
| 414 |
+
|
| 415 |
+
.pipeline-step-running {
|
| 416 |
+
animation: spin 1s linear infinite;
|
| 417 |
+
}
|
| 418 |
+
|
| 419 |
+
.pipeline-step-pulse {
|
| 420 |
+
animation: pulse 1.5s ease-in-out infinite;
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
/* fix: 补充审查缺失的CSS类名 -- BEGIN */
|
| 424 |
+
.tag {
|
| 425 |
+
display: inline-block;
|
| 426 |
+
padding: 2px 8px;
|
| 427 |
+
font-size: 12px;
|
| 428 |
+
border-radius: var(--radius-sm);
|
| 429 |
+
background-color: rgba(79, 70, 229, 0.08);
|
| 430 |
+
color: var(--color-primary);
|
| 431 |
+
}
|
| 432 |
+
|
| 433 |
+
.input {
|
| 434 |
+
width: 100%;
|
| 435 |
+
padding: 10px 12px;
|
| 436 |
+
font-size: 14px;
|
| 437 |
+
border: 1px solid var(--color-border);
|
| 438 |
+
border-radius: var(--radius-sm);
|
| 439 |
+
outline: none;
|
| 440 |
+
transition: border-color 0.2s;
|
| 441 |
+
font-family: inherit;
|
| 442 |
+
}
|
| 443 |
+
|
| 444 |
+
.input:focus {
|
| 445 |
+
border-color: var(--color-primary);
|
| 446 |
+
}
|
| 447 |
+
|
| 448 |
+
.pipeline-node {
|
| 449 |
+
width: 40px;
|
| 450 |
+
height: 40px;
|
| 451 |
+
border-radius: 50%;
|
| 452 |
+
display: flex;
|
| 453 |
+
align-items: center;
|
| 454 |
+
justify-content: center;
|
| 455 |
+
font-size: 16px;
|
| 456 |
+
font-weight: 600;
|
| 457 |
+
border: 2px solid var(--color-border);
|
| 458 |
+
color: var(--color-text-light);
|
| 459 |
+
background-color: var(--color-bg-white);
|
| 460 |
+
transition: all 0.3s;
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
.pipeline-node-idle {
|
| 464 |
+
border-color: var(--color-border);
|
| 465 |
+
color: var(--color-text-light);
|
| 466 |
+
}
|
| 467 |
+
|
| 468 |
+
.pipeline-node-running {
|
| 469 |
+
border-color: var(--color-primary);
|
| 470 |
+
color: var(--color-primary);
|
| 471 |
+
animation: spin 1s linear infinite;
|
| 472 |
+
}
|
| 473 |
+
|
| 474 |
+
.pipeline-node-completed {
|
| 475 |
+
border-color: var(--color-success);
|
| 476 |
+
color: var(--color-success);
|
| 477 |
+
background-color: rgba(16, 185, 129, 0.08);
|
| 478 |
+
}
|
| 479 |
+
|
| 480 |
+
.pipeline-node-error {
|
| 481 |
+
border-color: var(--color-error);
|
| 482 |
+
color: var(--color-error);
|
| 483 |
+
background-color: rgba(239, 68, 68, 0.08);
|
| 484 |
+
}
|
| 485 |
+
|
| 486 |
+
.pipeline-connector {
|
| 487 |
+
width: 60px;
|
| 488 |
+
height: 2px;
|
| 489 |
+
transition: background-color 0.3s;
|
| 490 |
+
}
|
| 491 |
+
|
| 492 |
+
.pipeline-connector-completed {
|
| 493 |
+
background-color: var(--color-success);
|
| 494 |
+
}
|
| 495 |
+
|
| 496 |
+
.pipeline-connector-idle {
|
| 497 |
+
background-color: var(--color-border);
|
| 498 |
+
}
|
| 499 |
+
|
| 500 |
+
.pipeline-label-idle {
|
| 501 |
+
color: var(--color-text-light);
|
| 502 |
+
}
|
| 503 |
+
|
| 504 |
+
.pipeline-label-running {
|
| 505 |
+
color: var(--color-primary);
|
| 506 |
+
}
|
| 507 |
+
|
| 508 |
+
.pipeline-label-completed {
|
| 509 |
+
color: var(--color-success);
|
| 510 |
+
}
|
| 511 |
+
|
| 512 |
+
.pipeline-label-error {
|
| 513 |
+
color: var(--color-error);
|
| 514 |
+
}
|
| 515 |
+
/* fix: 补充审查缺失的CSS类名 -- END */
|
| 516 |
+
|
| 517 |
+
@media (min-width: 768px) {
|
| 518 |
+
.page-container {
|
| 519 |
+
padding: 40px 32px;
|
| 520 |
+
}
|
| 521 |
+
}
|
| 522 |
+
|
| 523 |
+
@media (min-width: 1024px) {
|
| 524 |
+
.page-container {
|
| 525 |
+
padding: 48px 32px;
|
| 526 |
+
}
|
| 527 |
+
|
| 528 |
+
.grid-2 {
|
| 529 |
+
gap: 32px;
|
| 530 |
+
}
|
| 531 |
+
|
| 532 |
+
.grid-3 {
|
| 533 |
+
gap: 32px;
|
| 534 |
+
}
|
| 535 |
+
}
|
offer-puplayer-hf/models/config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "BAAI/bge-small-zh-v1.5",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"BertModel"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.1,
|
| 7 |
+
"classifier_dropout": null,
|
| 8 |
+
"gradient_checkpointing": false,
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.1,
|
| 11 |
+
"hidden_size": 512,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "LABEL_0"
|
| 14 |
+
},
|
| 15 |
+
"initializer_range": 0.02,
|
| 16 |
+
"intermediate_size": 2048,
|
| 17 |
+
"label2id": {
|
| 18 |
+
"LABEL_0": 0
|
| 19 |
+
},
|
| 20 |
+
"layer_norm_eps": 1e-12,
|
| 21 |
+
"max_position_embeddings": 512,
|
| 22 |
+
"model_type": "bert",
|
| 23 |
+
"num_attention_heads": 8,
|
| 24 |
+
"num_hidden_layers": 4,
|
| 25 |
+
"pad_token_id": 0,
|
| 26 |
+
"position_embedding_type": "absolute",
|
| 27 |
+
"torch_dtype": "float32",
|
| 28 |
+
"transformers_version": "4.33.2",
|
| 29 |
+
"type_vocab_size": 2,
|
| 30 |
+
"use_cache": true,
|
| 31 |
+
"vocab_size": 21128
|
| 32 |
+
}
|
offer-puplayer-hf/models/model_optimized.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1294ea4b6331115a353d81f96b85e8c8d7fdcc284453d5b2fab5b016230aad38
|
| 3 |
+
size 94781076
|
offer-puplayer-hf/models/special_tokens_map.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cls_token": "[CLS]",
|
| 3 |
+
"mask_token": "[MASK]",
|
| 4 |
+
"pad_token": "[PAD]",
|
| 5 |
+
"sep_token": "[SEP]",
|
| 6 |
+
"unk_token": "[UNK]"
|
| 7 |
+
}
|
offer-puplayer-hf/models/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
offer-puplayer-hf/models/tokenizer_config.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"clean_up_tokenization_spaces": true,
|
| 3 |
+
"cls_token": "[CLS]",
|
| 4 |
+
"do_basic_tokenize": true,
|
| 5 |
+
"do_lower_case": false,
|
| 6 |
+
"mask_token": "[MASK]",
|
| 7 |
+
"model_max_length": 512,
|
| 8 |
+
"never_split": null,
|
| 9 |
+
"pad_token": "[PAD]",
|
| 10 |
+
"sep_token": "[SEP]",
|
| 11 |
+
"strip_accents": null,
|
| 12 |
+
"tokenize_chinese_chars": true,
|
| 13 |
+
"tokenizer_class": "BertTokenizer",
|
| 14 |
+
"unk_token": "[UNK]"
|
| 15 |
+
}
|