Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reference license, template, system as files #4240

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mxyng
Copy link
Contributor

@mxyng mxyng commented May 7, 2024

this change allows certain layers to take files as values. the final value for the layer is the content of the file

FROM llama3
LICENSE ./meta-llama/Meta-Llama-3-8B-Instruct/LICENSE
LICENSE ./meta-llama/Meta-Llama-3-8B-Instruct/USE_POLICY.md

any value that does not reference a file will use the original value

FROM foo
TEMPLATE {{ .System }} {{ .Prompt }}

the file value does not support wildcards or globs

cmd/cmd.go Outdated Show resolved Hide resolved
@mxyng mxyng force-pushed the mxyng/layers-from-files branch from 08c69ff to 4c0b25f Compare May 8, 2024 21:10
cmd/cmd.go Outdated Show resolved Hide resolved
@mxyng mxyng force-pushed the mxyng/layers-from-files branch from 4c0b25f to 23630f2 Compare May 9, 2024 21:57
@mxyng mxyng requested a review from pdevine May 21, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants