上一页 1 2 3 4 5 6 ··· 116 下一页
摘要: golang测试模型的token输出速度 package main import ( "bytes" "encoding/json" "fmt" "io" "net/http" "os/exec" "runtime" "strconv" "strings" "time" ) type Request 阅读全文
posted @ 2026-03-24 23:36 jiftle 阅读(9) 评论(0) 推荐(0)
摘要: Go 实现本地 Ollama 模型基准测试工具 在本地部署 LLM 时,评估模型的推理速度(TPS)和延迟是关键环节。本文介绍一个基于 Go 语言编写的 Ollama 模型基准测试工具,支持并发测试、配置化管理及自动化报告。 每秒输出token数是重要的衡量指标 功能特性 并发测试:支持同时测试多个 阅读全文
posted @ 2026-03-23 11:46 jiftle 阅读(37) 评论(0) 推荐(0)
摘要: 使用golang编写大语言模型的输出速度性能 package main import ( "bytes" "encoding/json" "fmt" "net/http" "time" ) type Request struct { Model string `json:"model"` Promp 阅读全文
posted @ 2026-03-23 11:30 jiftle 阅读(2) 评论(0) 推荐(0)
摘要: Documentation Index Fetch the complete documentation index at: https://docs.ollama.com/llms.txt Use this file to discover all available pages before e 阅读全文
posted @ 2026-03-19 15:43 jiftle 阅读(226) 评论(0) 推荐(0)
摘要: 树莓派pico播放小星星,无源蜂鸣器 from machine import Pin, PWM import time # 配置区域 BUZZER_PIN = 15 # 蜂鸣器连接的 GPIO 引脚 (建议 GP15) VOLUME = 20000 # 音量 (0-65535), 建议 40000 阅读全文
posted @ 2026-03-06 23:34 jiftle 阅读(15) 评论(0) 推荐(0)
摘要: from machine import Pin, PWM import utime # 定义音调频率 tones = {'1': 262, '2': 294, '3': 330, '4': 349, '5': 392, '6': 440, '7': 494, '-': 0} # 定义小星星旋律 me 阅读全文
posted @ 2026-02-17 23:34 jiftle 阅读(3) 评论(0) 推荐(0)
摘要: """ Micropython (Raspberry Pi Pico) Plays music written on onlinesequencer.net through a passive piezo buzzer. Uses fast arpeggios with a single buzze 阅读全文
posted @ 2026-02-17 23:33 jiftle 阅读(5) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python3 # -*- coding: utf-8 -*- # 版本:V2.0 # author: zhulin # 硬件: # 1. Pico + Esp8285开发板 # 2. LED灯 2个 # 3. DS18B20温度传感器 1个 # 4. 1602液晶LC 阅读全文
posted @ 2026-02-17 23:27 jiftle 阅读(18) 评论(0) 推荐(0)
摘要: import torch import torch.nn as nn import torch.nn.functional as F import math class PositionalEncoding(nn.Module): """位置编码:为输入序列添加位置信息""" def __init_ 阅读全文
posted @ 2026-01-29 11:52 jiftle 阅读(7) 评论(0) 推荐(0)
摘要: 原文:https://blog.eimoon.com/p/transformers-attention-is-all-you-need/ 引言:Transformer 如何重塑 AI 格局 在短短几年内,Transformer 架构彻底重塑了人工智能 (AI) 的技术版图。由 Vaswani 等人在 阅读全文
posted @ 2026-01-28 15:06 jiftle 阅读(84) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 116 下一页