👋 动态记录 & 转发分享 ✨ https://tg.okhk.net/ ✌️
Chrome 127 版本内置AI大模型了(本地模型 无需网络)
测试 Chrome 内置 Gemini Nano 大语言模型(4bit 3.25B)的方法:
1. 下载 Chrome 127,可以到 Chrome Release Channels 下载 Canary 版本 网页链接
2. 打开 chrome://flags/
a) 找到 Prompt API for Gemini Nano 设置为 Enable
b) 找到 Enables optimization guide on device 设置为 Enable BypassPerfR
c) 重启 Chrome
3. 打开 chrome://components/,检查 Optimization Guide On Device Model 中模型是否成功下载,点击 Check for update
4. 打开控制台,输入 window.ai 测试是否能有返回结果,可以用下面的完整代码测试:
注:如果第三步么有Optimization Guide On Device Model出现,检查
- 语言是不是English US
- Enables optimization guide on device 是设置的 Enable,而不是 Enable BypassPerfR,修改后重启一下就可以了
测试 Chrome 内置 Gemini Nano 大语言模型(4bit 3.25B)的方法:
1. 下载 Chrome 127,可以到 Chrome Release Channels 下载 Canary 版本 网页链接
2. 打开 chrome://flags/
a) 找到 Prompt API for Gemini Nano 设置为 Enable
b) 找到 Enables optimization guide on device 设置为 Enable BypassPerfR
c) 重启 Chrome
3. 打开 chrome://components/,检查 Optimization Guide On Device Model 中模型是否成功下载,点击 Check for update
4. 打开控制台,输入 window.ai 测试是否能有返回结果,可以用下面的完整代码测试:
const canCreate = await window.ai.canCreateGenericSession()
if (canCreate !== "no") {
const session = await window.ai.createTextSession();
const stream = session.promptStreaming("Tell me a joke!")
for await (const chunk of stream) {
console.log(chunk)
}
session.destroy()
} else {
console.error(" can't create generic session", canCreate)
}
注:如果第三步么有Optimization Guide On Device Model出现,检查
- 语言是不是English US
- Enables optimization guide on device 是设置的 Enable,而不是 Enable BypassPerfR,修改后重启一下就可以了
资源描述:提供丰富的免费商用中文字体,支持在线预览,方便设计师和用户下载使用。
链接:https://www.miao3.cn/
🏷 标签:#喵闪字库 #字体下载 #设计师资源 #字体
🗂分类:免版权素材
体制内强度指数 具体是指,一个地方体制内人员(包含政府机关、事业单位、国有企业)缴存公积金人数占当地全部缴存人数的比重。
比重越高,这个地方的“体制内强度指数”就越高,市场化程度就越低,就越不适合创新和创业,也不适合投资买房。
一个地方的“体制内强度指数”低于33%,是比较合理的。
telegra.ph/主要省市体制内强度指数-06-23 | source
比重越高,这个地方的“体制内强度指数”就越高,市场化程度就越低,就越不适合创新和创业,也不适合投资买房。
一个地方的“体制内强度指数”低于33%,是比较合理的。
telegra.ph/主要省市体制内强度指数-06-23 | source
三年疫情创造的246个名词,都在这里了
https://mp.weixin.qq.com/s/SoplJJC27uqwX7_R5UFnNw
https://mp.weixin.qq.com/s/SoplJJC27uqwX7_R5UFnNw
解决nginx跨域
#Script
#Script
location / {
# 允许所有源
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, DELETE, PUT';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' '*';
}
# 其他配置
proxy_pass http://your_upstream_server;
}
Claude AI 更新 https://mp.weixin.qq.com/s/ILMC65Xut2OQaQBCM3Bfmg