-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update on 2025-02-06 from anna-lixin
- Loading branch information
Showing
4 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
aliases: Ollama模型文件 模型文件 | ||
caption: 模型文件 | ||
created: 20250206100609442 | ||
creator: miRoox | ||
modified: 20250206102321984 | ||
modifier: miRoox | ||
tags: Ollama TODO | ||
title: Ollama Model File | ||
tmap.id: 13ffd82a-7ab0-40b0-bec2-7cabf32743a3 | ||
type: text/vnd.tiddlywiki | ||
|
||
[[Ollama]]使用模型文件(Model File)作为模型创建和分享的蓝图。 | ||
|
||
!! 格式 | ||
|
||
```docker | ||
# comment | ||
INSTRUCTION arguments | ||
``` | ||
|
||
!! 指令 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
created: 20250206102142910 | ||
creator: miRoox | ||
modified: 20250206102412673 | ||
modifier: miRoox | ||
tags: [[Ollama Model File]] TODO | ||
title: Ollama Model File:示例 | ||
tmap.id: 2109608c-005e-44d8-bcb5-0d46cc3ae268 | ||
type: text/vnd.tiddlywiki | ||
|
||
可以通过`ollama show --modelfile `来显示已有模型的[[模型文件|Ollama Model File]]。 | ||
|
||
```docker | ||
# Modelfile generated by "ollama show" | ||
# To build a new Modelfile based on this one, replace the FROM line with: | ||
# FROM llama3.2:latest | ||
FROM /Users/pdevine/.ollama/models/blobs/sha256-00e1317cbf74d901080d7100f57580ba8dd8de57203072dc6f668324ba545f29 | ||
TEMPLATE """{{ if .System }}<|start_header_id|>system<|end_header_id|> | ||
|
||
{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|> | ||
|
||
{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|> | ||
|
||
{{ .Response }}<|eot_id|>""" | ||
PARAMETER stop "<|start_header_id|>" | ||
PARAMETER stop "<|end_header_id|>" | ||
PARAMETER stop "<|eot_id|>" | ||
PARAMETER stop "<|reserved_special_token" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
aliases: LLM 大模型 | ||
created: 20240628063344773 | ||
creator: miRoox | ||
modified: 20240912142426178 | ||
modified: 20250206103652244 | ||
modifier: miRoox | ||
tags: 人工智能 TODO | ||
tags: 人工智能 TODO 自然语言处理 | ||
title: 大语言模型 | ||
tmap.id: dc70ea52-f772-40dd-a1d6-a9dcb497fd26 | ||
type: text/vnd.tiddlywiki | ||
|
||
''大语言模型''(Large Language Model,LLM) | ||
''大语言模型''(Large Language Model,LLM)是一种专门为[[自然语言处理]]任务设计的机器学习模型,能够理解和生成文本内容。它们通常基于深度学习技术,利用庞大的训练数据集来学习语法、语义和上下文关系,从而实现对语言的预测和生成能力。 | ||
|
||
关于大语言模型的规模,虽然没有一个统一的标准,但一般来说,训练参数数量至少在十亿个以上的模型被认定为大语言模型。 |