You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
Describe the idea
Model construct allows nice way of initializing models in your jac program
Traditionally, You have to have a class that specifies the Model loading and forward function. This will bring methods specifically designed for inference __infer__ , __train_step__, __train__ etc.
For the Case of With LLM,
import:plugin from "@jaclang/llm", OpenAI;
model llm: OpenAI {
has temperature = 0.7;
}
can genai_ability(input: str) -> int by llm(reason=True);
will translate into
# Import the OpenAI Base Classllm=_Jac.Model(OpenAI(temperature=0.7))
# genai_ability uses llm.__infer__
The text was updated successfully, but these errors were encountered:
Describe the idea
Model construct allows nice way of initializing models in your jac program
Traditionally, You have to have a class that specifies the Model loading and forward function. This will bring methods specifically designed for inference
__infer__
,__train_step__
,__train__
etc.For the Case of With LLM,
will translate into
The text was updated successfully, but these errors were encountered: