sobelio / llm-chain

`llm-chain` is a powerful rust crate for building chains in large language models allowing you to summarise text and complete complex tasks
https://llm-chain.xyz
MIT License
1.3k stars 128 forks source link

try to fix llama for latest changes #183

Closed sherodtaylor closed 1 year ago

sherodtaylor commented 1 year ago

This currently returns an error

  --> crates/llm-chain-llama/src/options.rs:32:16
   |
13 | pub struct LlamaInvocation {
   |            --------------- fields in this struct
...
32 |     pub(crate) low_vram: bool,
   |                ^^^^^^^^
33 |     pub(crate) rope_freq_base: f32,
   |                ^^^^^^^^^^^^^^
34 |     pub(crate) rope_freq_scale: f32,
   |                ^^^^^^^^^^^^^^^
35 |     pub(crate) logits_all: bool,
   |                ^^^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

warning: `llm-chain-llama` (lib) generated 1 warning
    Finished dev [unoptimized + debuginfo] target(s) in 0.12s
     Running `/Users/staylor279/code/personalcode/llm-chain/target/debug/examples/few_shot`
Error: FieldRequiredError("generic")
Juzov commented 1 year ago

Can you merge with main?