Hi,
I am building the project:
I am applying for a $5k Developer Grant.
Please review my application and discuss! See DFINITY’s directions for becoming a registered reviewer here . They will be collected by DFINITY. When two weeks passes, DFINITY will release them and they will appear as a new section on this post.
Please review my application and discuss! If you would like to submit an official review, then please use the links below to register, see the rubric, and submit a review.
I’m looking forward to everyone’s input! …
I want to store a LLM for the marketplace, which would include a .bin, .json and the LLM name. This is the structure I have so far:
use ic_cdk_macros::{post_upgrade, pre_upgrade, query, update};
use ic_stable_structures::{memory_manager::{MemoryId, MemoryManager, VirtualMemory}, DefaultMemoryImpl, StableBTreeMap};
use ic_stable_structures::storable::{Storable, Bound};
use serde::{Deserialize, Serialize};
use std::cell::RefCell;
use std::borrow::Cow;
use candid::candid_method;
mod memory;
use memory::Memory;
type VMemory = VirtualMemory<DefaultMemoryImpl>;
#[derive(Serialize, Deserialize, Clone)]
struct ModelData {
name: String,
weights: Vec<u8>,
config: String,
}
impl Storable for ModelData {
This file has been truncated. show original
I would appreciate any feedback on the architecture, and if it can be made better. Please do note that I am new to the ecosystem, and I am using stable-structures for the first time.
Best,
Yash.
Hello @YashBit , the current data structure makes sense to me. it depends on the technical architecture.
Also, where are you using serde_json
?
2 Likes