Skip to content

Commit

Permalink
Update on 2025-02-06 from anna-lixin
Browse files Browse the repository at this point in the history
  • Loading branch information
miRoox committed Feb 6, 2025
1 parent 0331833 commit 404a903
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 4 deletions.
23 changes: 23 additions & 0 deletions tiddlers/Ollama Model File.tid
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
```

!! 指令


28 changes: 28 additions & 0 deletions tiddlers/Ollama Model File:示例.tid
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"
```
3 changes: 2 additions & 1 deletion tiddlers/Ollama.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
aliases: ollama
created: 20250205101402005
creator: miRoox
modified: 20250205123109039
modified: 20250206100815585
modifier: miRoox
tags: 开发工具 TODO 软件
title: Ollama
Expand Down
8 changes: 5 additions & 3 deletions tiddlers/大语言模型.tid
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)是一种专门为[[自然语言处理]]任务设计的机器学习模型,能够理解和生成文本内容。它们通常基于深度学习技术,利用庞大的训练数据集来学习语法、语义和上下文关系,从而实现对语言的预测和生成能力。

关于大语言模型的规模,虽然没有一个统一的标准,但一般来说,训练参数数量至少在十亿个以上的模型被认定为大语言模型。

0 comments on commit 404a903

Please sign in to comment.