当前位置: 首页 > article >正文

DeOldify服务监控方案:Prometheus+Grafana实时跟踪GPU利用率与QPS

DeOldify服务监控方案PrometheusGrafana实时跟踪GPU利用率与QPS1. 监控方案概述在实际的AI服务部署中仅仅能够运行服务是不够的。我们需要实时了解服务的运行状态、资源使用情况以及性能指标。对于DeOldify这样的深度学习图像上色服务GPU利用率和每秒查询数QPS是两个最关键的性能指标。传统的日志查看方式无法提供实时的可视化监控而PrometheusGrafana组合能够为我们提供完整的监控解决方案。这个方案可以帮助我们实时监控GPU使用情况避免资源浪费或瓶颈跟踪服务处理能力了解QPS变化趋势设置告警阈值及时发现异常情况历史数据回溯分析性能优化效果2. 环境准备与组件安装2.1 安装PrometheusPrometheus是一个开源的系统监控和警报工具包专门用于收集和存储时间序列数据。# 下载Prometheus wget https://github.com/prometheus/prometheus/releases/download/v2.47.2/prometheus-2.47.2.linux-amd64.tar.gz # 解压 tar xvfz prometheus-2.47.2.linux-amd64.tar.gz cd prometheus-2.47.2.linux-amd64 # 创建配置文件 cat prometheus.yml EOF global: scrape_interval: 15s scrape_configs: - job_name: prometheus static_configs: - targets: [localhost:9090] - job_name: node static_configs: - targets: [localhost:9100] - job_name: gpu static_configs: - targets: [localhost:9435] - job_name: deoldify static_configs: - targets: [localhost:8000] EOF # 启动Prometheus ./prometheus --config.fileprometheus.yml 2.2 安装Node ExporterNode Exporter用于收集硬件和操作系统指标。# 下载Node Exporter wget https://github.com/prometheus/node_exporter/releases/download/v1.6.1/node_exporter-1.6.1.linux-amd64.tar.gz # 解压并启动 tar xvfz node_exporter-1.6.1.linux-amd64.tar.gz cd node_exporter-1.6.1.linux-amd64 ./node_exporter 2.3 安装GPU Exporter对于GPU监控我们需要专门的GPU exporter。# 使用DCGM Exporter需要先安装NVIDIA DCGM docker run -d --rm \ --gpus all \ -p 9400:9400 \ nvcr.io/nvidia/k8s/dcgm-exporter:3.2.6-3.2.2-ubuntu20.04 # 或者使用简单的nvidia-smi exporter git clone https://github.com/utkuozdemir/nvidia_gpu_exporter cd nvidia_gpu_exporter docker build -t nvidia_gpu_exporter . docker run -d --rm \ --gpus all \ -p 9835:9835 \ nvidia_gpu_exporter2.4 安装GrafanaGrafana用于可视化监控数据。# 安装Grafana wget https://dl.grafana.com/oss/release/grafana-10.2.0.linux-amd64.tar.gz tar xvfz grafana-10.2.0.linux-amd64.tar.gz cd grafana-10.2.0 # 启动Grafana ./bin/grafana-server web 3. DeOldify服务指标暴露要让Prometheus能够收集DeOldify服务的指标我们需要在服务中添加指标暴露功能。3.1 添加Prometheus客户端库首先在DeOldify服务中添加Prometheus客户端依赖# requirements.txt 添加 prometheus-client0.19.03.2 创建指标收集中间件为Flask应用添加Prometheus指标收集from prometheus_client import Counter, Gauge, Histogram, generate_latest, REGISTRY from flask import Response, request import time # 定义指标 REQUEST_COUNT Counter( deoldify_requests_total, Total number of requests, [method, endpoint, status] ) REQUEST_LATENCY Histogram( deoldify_request_latency_seconds, Request latency in seconds, [method, endpoint] ) GPU_UTILIZATION Gauge( deoldify_gpu_utilization_percent, GPU utilization percentage, [gpu_index] ) GPU_MEMORY Gauge( deoldify_gpu_memory_usage_mb, GPU memory usage in MB, [gpu_index] ) QPS Gauge( deoldify_qps, Queries per second ) # 添加到Flask应用 def setup_metrics(app): app.before_request def before_request(): request.start_time time.time() app.after_request def after_request(response): # 计算请求耗时 latency time.time() - request.start_time REQUEST_LATENCY.labels( methodrequest.method, endpointrequest.path ).observe(latency) # 统计请求次数 REQUEST_COUNT.labels( methodrequest.method, endpointrequest.path, statusresponse.status_code ).inc() return response # 添加metrics端点 app.route(/metrics) def metrics(): return Response(generate_latest(REGISTRY), mimetypetext/plain)3.3 集成GPU监控添加GPU使用情况监控import subprocess import re import threading def get_gpu_utilization(): 获取GPU使用情况 try: result subprocess.check_output([ nvidia-smi, --query-gpuindex,utilization.gpu,memory.used, --formatcsv,noheader,nounits ]).decode(utf-8) for line in result.strip().split(\n): if line: gpu_index, utilization, memory_used line.split(, ) GPU_UTILIZATION.labels(gpu_indexgpu_index).set(float(utilization)) GPU_MEMORY.labels(gpu_indexgpu_index).set(float(memory_used)) except Exception as e: print(f获取GPU信息失败: {e}) def start_gpu_monitor(): 启动GPU监控线程 def monitor_loop(): while True: get_gpu_utilization() time.sleep(5) # 每5秒更新一次 thread threading.Thread(targetmonitor_loop, daemonTrue) thread.start()3.4 集成QPS计算添加QPS计算功能from collections import deque import time class QPSCalculator: def __init__(self, window_size10): self.window_size window_size self.request_times deque() self.lock threading.Lock() def add_request(self): with self.lock: current_time time.time() self.request_times.append(current_time) # 移除超过时间窗口的请求记录 while self.request_times and self.request_times[0] current_time - self.window_size: self.request_times.popleft() def get_qps(self): with self.lock: if not self.request_times: return 0.0 time_window self.window_size if len(self.request_times) 1: time_window min(self.window_size, self.request_times[-1] - self.request_times[0]) return len(self.request_times) / time_window if time_window 0 else 0.0 # 全局QPS计算器 qps_calculator QPSCalculator() def update_qps_metrics(): 更新QPS指标 while True: qps qps_calculator.get_qps() QPS.set(qps) time.sleep(1) # 在请求处理中更新QPS app.after_request def after_request(response): # ... 其他代码 ... qps_calculator.add_request() return response4. Grafana仪表板配置4.1 添加数据源首先在Grafana中添加Prometheus数据源访问Grafana界面通常为http://localhost:3000默认用户名/密码admin/admin进入Configuration Data Sources添加Prometheus数据源URL填写http://localhost:90904.2 创建监控仪表板创建DeOldify服务监控仪表板包含以下关键面板GPU利用率面板{ title: GPU利用率, type: gauge, targets: [ { expr: deoldify_gpu_utilization_percent, legendFormat: GPU {{gpu_index}} } ], maxDataPoints: 100, interval: 10s }QPS监控面板{ title: 每秒查询数 (QPS), type: graph, targets: [ { expr: rate(deoldify_requests_total[1m]), legendFormat: 总QPS } ], refresh: 5s }请求延迟面板{ title: 请求延迟分布, type: heatmap, targets: [ { expr: histogram_quantile(0.95, sum(rate(deoldify_request_latency_seconds_bucket[5m])) by (le)), legendFormat: P95延迟 } ] }GPU内存使用面板{ title: GPU内存使用, type: stat, targets: [ { expr: deoldify_gpu_memory_usage_mb, legendFormat: GPU {{gpu_index}} } ], colorMode: value, graphMode: area }4.3 设置告警规则在Prometheus中配置告警规则# alert.rules.yml groups: - name: deoldify-alerts rules: - alert: HighGPUUsage expr: deoldify_gpu_utilization_percent 90 for: 5m labels: severity: warning annotations: summary: GPU使用率过高 description: GPU {{ $labels.gpu_index }} 使用率持续5分钟超过90% - alert: LowQPS expr: deoldify_qps 1 for: 10m labels: severity: warning annotations: summary: QPS过低 description: 服务QPS持续10分钟低于1 - alert: HighLatency expr: histogram_quantile(0.95, deoldify_request_latency_seconds_bucket[5m]) 10 for: 5m labels: severity: critical annotations: summary: 请求延迟过高 description: P95请求延迟持续5分钟超过10秒5. 实战部署与验证5.1 完整部署脚本创建一键部署脚本#!/bin/bash # deploy_monitoring.sh echo 开始部署DeOldify监控系统... # 创建监控目录 mkdir -p /opt/monitoring cd /opt/monitoring # 安装Prometheus echo 安装Prometheus... wget -q https://github.com/prometheus/prometheus/releases/download/v2.47.2/prometheus-2.47.2.linux-amd64.tar.gz tar xfz prometheus-2.47.2.linux-amd64.tar.gz cd prometheus-2.47.2.linux-amd64 # 配置Prometheus cat prometheus.yml EOF global: scrape_interval: 15s scrape_configs: - job_name: prometheus static_configs: - targets: [localhost:9090] - job_name: node static_configs: - targets: [localhost:9100] - job_name: gpu static_configs: - targets: [localhost:9435] - job_name: deoldify static_configs: - targets: [localhost:7860] metrics_path: /metrics EOF # 启动Prometheus nohup ./prometheus --config.fileprometheus.yml prometheus.log 21 # 安装Node Exporter echo 安装Node Exporter... cd /opt/monitoring wget -q https://github.com/prometheus/node_exporter/releases/download/v1.6.1/node_exporter-1.6.1.linux-amd64.tar.gz tar xfz node_exporter-1.6.1.linux-amd64.tar.gz cd node_exporter-1.6.1.linux-amd64 nohup ./node_exporter node_exporter.log 21 # 安装Grafana echo 安装Grafana... cd /opt/monitoring wget -q https://dl.grafana.com/oss/release/grafana-10.2.0.linux-amd64.tar.gz tar xfz grafana-10.2.0.linux-amd64.tar.gz cd grafana-10.2.0 nohup ./bin/grafana-server web grafana.log 21 echo 监控系统部署完成 echo Prometheus: http://localhost:9090 echo Grafana: http://localhost:3000 echo 默认用户名/密码: admin/admin5.2 验证监控系统使用以下脚本验证监控系统是否正常工作# test_monitoring.py import requests import time import threading def test_metrics_endpoint(): 测试metrics端点 try: response requests.get(http://localhost:7860/metrics, timeout5) if response.status_code 200: print(✓ Metrics端点正常) return True else: print(f✗ Metrics端点异常: {response.status_code}) return False except Exception as e: print(f✗ Metrics端点访问失败: {e}) return False def test_prometheus(): 测试Prometheus try: response requests.get(http://localhost:9090/api/v1/query?queryup, timeout5) if response.status_code 200: data response.json() if data[data][result]: print(✓ Prometheus正常运行) return True print(✗ Prometheus异常) return False except Exception as e: print(f✗ Prometheus访问失败: {e}) return False def test_grafana(): 测试Grafana try: response requests.get(http://localhost:3000/api/health, timeout5) if response.status_code 200: print(✓ Grafana正常运行) return True print(✗ Grafana异常) return False except Exception as e: print(f✗ Grafana访问失败: {e}) return False def generate_test_traffic(): 生成测试流量 import random endpoints [/colorize, /health, /ui] for i in range(20): endpoint random.choice(endpoints) try: if endpoint /colorize: # 模拟图片上传请求 files {image: (test.jpg, open(test.jpg, rb))} requests.post(fhttp://localhost:7860{endpoint}, filesfiles, timeout10) else: requests.get(fhttp://localhost:7860{endpoint}, timeout5) print(f✓ 测试请求 {endpoint} 成功) except Exception as e: print(f✗ 测试请求 {endpoint} 失败: {e}) time.sleep(random.uniform(0.1, 1.0)) if __name__ __main__: print(开始验证监控系统...) # 测试各组件 metrics_ok test_metrics_endpoint() prometheus_ok test_prometheus() grafana_ok test_grafana() if all([metrics_ok, prometheus_ok, grafana_ok]): print(\n✓ 监控系统基础功能正常) print(开始生成测试流量...) generate_test_traffic() print(\n测试完成请查看Grafana仪表板确认监控数据) else: print(\n✗ 监控系统存在异常请检查相关服务)6. 监控方案优化建议6.1 性能优化对于高并发场景监控系统本身也需要优化# 优化指标收集性能 from prometheus_client import CollectorRegistry, multiprocess, generate_latest def create_app(): app Flask(__name__) # 使用多进程注册表 registry CollectorRegistry() multiprocess.MultiProcessCollector(registry) app.route(/metrics) def metrics(): return Response(generate_latest(registry), mimetypetext/plain) return app6.2 数据保留策略调整Prometheus数据保留策略# prometheus.yml global: scrape_interval: 15s evaluation_interval: 15s # 数据保留15天 retention: 15d # 使用TSDB压缩 storage: tsdb: retention: 15d min-block-duration: 2h max-block-duration: 24h6.3 监控数据备份设置监控数据备份策略# backup_monitoring_data.sh #!/bin/bash BACKUP_DIR/backup/monitoring DATE$(date %Y%m%d_%H%M%S) # 备份Prometheus数据 tar -czf $BACKUP_DIR/prometheus_$DATE.tar.gz /opt/monitoring/prometheus-2.47.2.linux-amd64/data/ # 备份Grafana配置 tar -czf $BACKUP_DIR/grafana_$DATE.tar.gz /opt/monitoring/grafana-10.2.0/conf/ # 保留最近7天的备份 find $BACKUP_DIR -name *.tar.gz -mtime 7 -delete7. 总结通过PrometheusGrafana监控方案我们为DeOldify图像上色服务建立了一套完整的监控体系。这个方案能够实时监控GPU利用率确保GPU资源得到合理利用避免成为性能瓶颈跟踪QPS变化了解服务处理能力为扩容和优化提供数据支持可视化监控数据通过Grafana仪表板直观展示关键指标设置智能告警及时发现异常情况确保服务稳定性历史数据分析回溯性能数据支持容量规划和优化决策这套监控方案不仅适用于DeOldify服务也可以很容易地适配到其他AI推理服务中。通过实时监控和告警我们能够确保服务始终处于最佳运行状态为用户提供稳定可靠的图像上色服务。获取更多AI镜像想探索更多AI镜像和应用场景访问 CSDN星图镜像广场提供丰富的预置镜像覆盖大模型推理、图像生成、视频生成、模型微调等多个领域支持一键部署。

相关文章:

DeOldify服务监控方案:Prometheus+Grafana实时跟踪GPU利用率与QPS

DeOldify服务监控方案:PrometheusGrafana实时跟踪GPU利用率与QPS 1. 监控方案概述 在实际的AI服务部署中,仅仅能够运行服务是不够的。我们需要实时了解服务的运行状态、资源使用情况以及性能指标。对于DeOldify这样的深度学习图像上色服务,…...

Python3.9镜像新手入门:从零开始配置开发环境

Python3.9镜像新手入门:从零开始配置开发环境 1. 为什么选择Python3.9镜像 Python作为当今最流行的编程语言之一,其3.9版本在性能优化和语法特性上都有显著提升。使用预配置的Python3.9镜像可以让你: 快速开始:省去繁琐的环境配…...

LVGL Linux模拟器实战:从GUI-Guider设计到EVDEV按键事件处理的完整链路

LVGL Linux模拟器实战:从GUI-Guider设计到EVDEV按键事件处理的完整链路 在嵌入式GUI开发领域,LVGL凭借其轻量级、高性能的特性已成为众多开发者的首选。本文将带您深入探索一个常被忽视但至关重要的技术环节:如何让GUI-Guider设计的界面在Lin…...

STM32F429开发实战:手把手教你开启FPU并验证性能提升(含Lazy Stacking详解)

STM32F429开发实战:FPU性能优化与Lazy Stacking深度解析 在嵌入式系统开发中,浮点运算性能往往是制约算法实时性的关键瓶颈。STM32F429作为Cortex-M4内核的代表性产品,其内置的浮点运算单元(FPU)能显著提升计算效率——但前提是开发者必须正确…...

【向量检索实战】FAISS + BGE-M3:构建高效RAG系统的核心引擎

1. 为什么需要FAISSBGE-M3组合? 在构建RAG系统时,最头疼的问题就是如何快速从海量文档中找到最相关的信息。想象一下,你正在整理一个超大的衣柜,里面有成千上万件衣服。当你想找"适合夏天穿的蓝色衬衫"时,如…...

2026届毕业生推荐的六大AI科研平台推荐榜单

Ai论文网站排名(开题报告、文献综述、降aigc率、降重综合对比) TOP1. 千笔AI TOP2. aipasspaper TOP3. 清北论文 TOP4. 豆包 TOP5. kimi TOP6. deepseek 人工智能技术于学术写作领域的运用愈发广泛,其关键价值展现于文献检索、数据整理…...

F28335项目功耗优化实战:如何通过精细管理外设时钟(PCLKCR)来省电

F28335项目功耗优化实战:精细管理外设时钟(PCLKCR)的省电艺术 在电池供电的电机控制或物联网传感节点开发中,系统功耗直接决定了产品的续航能力。TMS320F28335作为一款高性能DSP控制器,其动态功耗往往成为系统优化的重…...

Qwen3-ForcedAligner-0.6B在Dify平台上的无代码部署方案

Qwen3-ForcedAligner-0.6B在Dify平台上的无代码部署方案 1. 引言 语音和文本的对齐技术在实际应用中越来越重要,无论是制作字幕、语音分析还是内容创作,都需要精确的时间戳对齐。传统方法往往需要复杂的代码编写和配置,让很多非技术背景的用…...

SITS2026图谱深度解读:从LlamaFactory到vLLM再到Prometheus-Metrics,谁才是真正可规模化的工程底座?

第一章:SITS2026发布:大模型工程化工具链图谱 2026奇点智能技术大会(https://ml-summit.org) SITS2026(Scalable Intelligent Toolchain Summit 2026)正式发布面向生产级大模型开发的全栈工程化工具链图谱,聚焦模型训…...

YOLOFuse功能体验:支持多种融合策略,实测中期融合性价比最高

YOLOFuse功能体验:支持多种融合策略,实测中期融合性价比最高 1. 多模态目标检测的挑战与机遇 在目标检测领域,单一传感器已经难以满足全天候、复杂环境下的应用需求。传统RGB摄像头在低光照、烟雾、雨雪等恶劣条件下性能急剧下降&#xff0…...

【大模型上线前必过隐私审计关】:7类高危数据场景识别表+3套自动化检测脚本(附开源工具链)

第一章:大模型工程化中的数据隐私保护 2026奇点智能技术大会(https://ml-summit.org) 在大模型工程化落地过程中,原始训练数据、微调语料及推理输入往往蕴含敏感个人信息、企业专有知识或受监管的行业数据。若缺乏系统性隐私防护机制,模型可…...

嵌入式传感器抽象框架:ArduSensorPlatformCoreBase核心解析

1. ArduSensorPlatformCoreBase 框架核心组件深度解析ArduSensorPlatformCoreBase 是 ArdusensorPlatform 框架的底层基石模块,其定位并非通用传感器驱动集合,而是为构建可扩展、可复用、跨平台的嵌入式传感系统提供标准化抽象层与基础设施支撑。该模块不…...

ESP8266接入AWS IoT Core的SigV4+WebSocket实战指南

1. AWS IoT ESP8266 Arduino Websockets 库深度解析 1.1 项目定位与工程价值 AWS IoT ESP8266 Arduino Websockets 是一个面向资源受限嵌入式设备的轻量级物联网接入库,专为 ESP8266 平台在 Arduino IDE 或 PlatformIO 环境下构建安全、可靠、低开销的云连接能力而…...

【大模型可观测性生死线】:为什么你的Prometheus告警总在凌晨爆炸?7步阈值校准工作流曝光

第一章:大模型可观测性生死线:阈值设定的战略意义 2026奇点智能技术大会(https://ml-summit.org) 在大模型生产化落地过程中,可观测性并非仅关乎“能否看到指标”,而本质是“能否在失效前精准干预”。阈值设定正是这条生死线的锚…...

向量检索准确率从82%跃升至99.4%——2026奇点大会闭门报告(仅限首批技术决策者解密)

第一章:向量检索准确率从82%跃升至99.4%——2026奇点大会闭门报告(仅限首批技术决策者解密) 2026奇点智能技术大会(https://ml-summit.org) 这一跃升并非源于单一模型升级,而是由三层协同优化构成的系统性突破:语义对…...

营销自动化数据驱动 - 多源数据 OLAP 架构演进躺

1. 流图:数据的河流 如果把传统的堆叠面积图想象成一块块整齐堆叠的积木,那么流图就像一条蜿蜒流淌的河流,河道的宽窄变化自然流畅,波峰波谷过渡平滑。 它特别适合展示多个类别数据随时间的变化趋势,尤其是当你想强调整…...

Burpsuite之暴力破解+验证码识别 | 添柴不加火欣

springboot自动配置 自动配置了大量组件,配置信息可以在application.properties文件中修改。 当添加了特定的Starter POM后,springboot会根据类路径上的jar包来自动配置bean(比如:springboot发现类路径上的MyBatis相关类&#xff…...

深入解析 vsock 框架:从基础原理到嵌套虚拟机通信实践

1. 认识vsock:虚拟机通信的高速通道 第一次听说vsock这个概念时,我正在调试一个KVM虚拟机的性能问题。当时传统TCP/IP通信的延迟让我头疼不已,直到发现这个名为"VM Sockets"的黑科技。简单来说,vsock就像是给虚拟机专门…...

CW大鹏无人机地面站智能航线规划实战指南

1. 认识CW大鹏无人机地面站 第一次接触CW大鹏无人机地面站时,我被它强大的功能震撼到了。这不仅仅是一个简单的遥控软件,而是一个完整的飞行任务指挥中心。通过地面站,我们可以完成从航线规划到飞行监控的全流程操作,特别适合农业…...

Andee101库详解:Arduino 101低功耗BLE人机交互开发指南

1. Andee101 库概述:面向 Arduino 101 的低功耗蓝牙人机交互框架Andee101 是专为 Intel Arduino 101(即 Curie-based 开发板)设计的嵌入式通信库,其核心目标是实现 Arduino 101 硬件与 iOS/Android 平台上的 Annikken Andee 移动应…...

【车辆控制】线性参数变化LPV方法的角度研究多车辆系统合作控制在合作自适应巡航控制(CACC)系统【含Matlab源码 15317期】

💥💥💥💥💥💥💥💥💞💞💞💞💞💞💞💞💞Matlab领域博客之家💞&…...

TinyTemplateEngine:嵌入式行级模板引擎深度解析

1. TinyTemplateEngine:面向资源受限嵌入式平台的行级模板引擎深度解析在嵌入式Web服务、动态HTML生成、设备状态报告等场景中,开发者常需将运行时变量注入静态文本模板。传统方案(如String拼接、sprintf全量缓存)在Arduino Uno&a…...

3步轻松优化Windows系统:Winhance中文版让你的电脑飞起来!

3步轻松优化Windows系统:Winhance中文版让你的电脑飞起来! 【免费下载链接】Winhance-zh_CN A Chinese version of Winhance. C# application designed to optimize and customize your Windows experience. 项目地址: https://gitcode.com/gh_mirrors…...

gitru:一个由 Rust 打造的零依赖 Git 提交信息校验工具雅

一、项目背景与核心价值 1. 解决的核心痛点 Navicat的数据库连接密码并非明文存储,而是通过AES算法加密后写入.ncx格式的XML配置文件中。一旦用户忘记密码,常规方式只能重新配置连接,效率极低。本项目只作为学习研究使用,不做其他…...

5分钟掌握MouseJiggler:告别系统休眠的智能鼠标模拟解决方案

5分钟掌握MouseJiggler:告别系统休眠的智能鼠标模拟解决方案 【免费下载链接】mousejiggler Mouse Jiggler is a very simple piece of software whose sole function is to "fake" mouse input to Windows, and jiggle the mouse pointer back and forth…...

HTML怎么搜索关键词_HTML search类型input特点【说明】

HTML原生search输入框语义明确、自带清空按钮、支持系统级搜索行为及专用软键盘&#xff1b;需用<form>包裹并监听submit/search事件&#xff0c;禁用默认行为&#xff0c;且清空操作仅触发search事件。HTML原生有啥特别的它和普通text输入框渲染几乎一样&#xff0c;但语…...

SQL视图能否存储计算结果_引入虚拟列与计算字段应用

SQL视图无法存储计算结果&#xff0c;每次查询都会实时执行底层SELECT语句中的所有计算&#xff1b;如需固化计算结果&#xff0c;应使用虚拟列&#xff08;MySQL/PostgreSQL支持&#xff09;或物化视图&#xff08;PostgreSQL需手动刷新&#xff0c;Oracle等支持自动刷新&…...

5分钟搭建通义千问3-VL-Reranker:多模态重排序Web UI教程

5分钟搭建通义千问3-VL-Reranker&#xff1a;多模态重排序Web UI教程 1. 什么是多模态重排序&#xff1f;它能帮你解决什么问题&#xff1f; 想象一下这个场景&#xff1a;你在一个电商平台搜索“带花园的白色小房子”&#xff0c;搜索结果里蹦出来一堆东西——有商品描述文字…...

Cogito 3B镜像免配置教程:预置中文Prompt Engineering最佳实践库

Cogito 3B镜像免配置教程&#xff1a;预置中文Prompt Engineering最佳实践库 1. 快速了解Cogito 3B模型 Cogito v1预览版是Deep Cogito推出的混合推理模型系列&#xff0c;这个3B版本在大多数标准基准测试中都表现出色&#xff0c;超越了同等规模下最优的开源模型。这意味着即…...

SpringCloud进阶--Seata与分布式事务庇

起因是我想在搞一些操作windows进程的事情时&#xff0c;老是需要右键以管理员身份运行&#xff0c;感觉很麻烦。就研究了一下怎么提权&#xff0c;顺手瞄了一眼Windows下用户态权限分配&#xff0c;然后也是感谢《深入解析Windows操作系统》这本书给我偷令牌的灵感吧&#xff…...