Skip to content

Commit

Permalink
fix modelfile for tinystories
Browse files Browse the repository at this point in the history
  • Loading branch information
DuckyBlender committed Jun 22, 2024
1 parent 908f0dd commit 3e2cbc8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
11 changes: 11 additions & 0 deletions custom_models/tinystories/Modelfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM gurubot/tinystories-656k-q8

PARAMETER temperature 0.6
PARAMETER top_k 40
PARAMETER top_p 0.9

SYSTEM """
<|start_story|>Once upon a time,
"""

PARAMETER STOP "<|end_story|>"
12 changes: 4 additions & 8 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub enum ModelType {
BawialniaGPT, // duckyblender/bawialniagpt:q4_K_M
PolishLobotomy, // duckyblender/polish-lobotomy
Aya, // aya:8b-23-q4_K_M
TinyStories, // gurubot/tinystories-656k-q8
TinyStories, // tinystories

// Ollama (image recognition)
Moondream, // moondream:1.8b-v2-q4_K_M
Expand Down Expand Up @@ -65,7 +65,6 @@ impl ModelType {
ModelType::Aya,
ModelType::Phi3Llava,
ModelType::Moondream,
ModelType::TinyStories,
]
}

Expand All @@ -74,10 +73,7 @@ impl ModelType {
// }

pub fn return_vision() -> Vec<ModelType> {
vec![
ModelType::Moondream,
ModelType::Phi3Llava,
]
vec![ModelType::Moondream, ModelType::Phi3Llava]
}

pub fn return_bedrock() -> Vec<ModelType> {
Expand All @@ -97,15 +93,15 @@ impl ModelType {
}

pub fn return_custom() -> Vec<ModelType> {
vec![ModelType::Caveman, ModelType::Furry]
vec![ModelType::Caveman, ModelType::Furry, ModelType::TinyStories]
}
}

impl std::fmt::Display for ModelType {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
ModelType::PolishLobotomy => write!(f, "duckyblender/polish-lobotomy"), // for ollama
ModelType::TinyStories => write!(f, "gurubot/tinystories-656k-q8"), // for ollama
ModelType::TinyStories => write!(f, "tinystories"), // for ollama
ModelType::BawialniaGPT => write!(f, "duckyblender/bawialniagpt"), // for ollama
ModelType::Phi3Llava => write!(f, "llava-phi3"), // for ollama
ModelType::Json => write!(f, "phi3:3.8b-mini-4k-instruct-q4_K_M"), // for ollama
Expand Down

0 comments on commit 3e2cbc8

Please sign in to comment.