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
Hi there
Hello, I'm using the m3e-base model and the task is text-encoding. The results I'm getting back are very slow, taking about 15 seconds to return. I see the main reason is in this code below
`
// Encode performs the Bert encoding.
`
// Forward operates on a slice of StandardModel connecting outputs to inputs sequentially for each module following,
// finally returning its output.
func (ml ModuleList[T]) Forward(xs ...ag.Node) []ag.Node {
for _, m := range ml {
xs = m.Forward(xs...)
}
}
`
My request value is: POST /v1/encode { "input": "The author believes that industrial ecology is to study the flow of materials and energy in industrial and consumer activities, understand these relationships and their influences on natural systems, and then take action to achieve a desired state while other states do not occur. The author also believes that a complete consideration of industrial ecology should include the full range of economic activities, such as mining, agriculture, forestry, manufacturing, and consumer behavior. It also includes the demand side and supply side of economic behaviors and their subsequent impacts on natural systems at all times and spatial scales.", "parameters": {}, "pooling_strategy":1 }
Could you please tell me why it's so slow?
The text was updated successfully, but these errors were encountered:
Hi there
Hello, I'm using the m3e-base model and the task is text-encoding. The results I'm getting back are very slow, taking about 15 seconds to return. I see the main reason is in this code below
`
// Encode performs the Bert encoding.
`
`
// Forward operates on a slice of StandardModel connecting outputs to inputs sequentially for each module following,
// finally returning its output.
`
My request value is:
POST /v1/encode { "input": "The author believes that industrial ecology is to study the flow of materials and energy in industrial and consumer activities, understand these relationships and their influences on natural systems, and then take action to achieve a desired state while other states do not occur. The author also believes that a complete consideration of industrial ecology should include the full range of economic activities, such as mining, agriculture, forestry, manufacturing, and consumer behavior. It also includes the demand side and supply side of economic behaviors and their subsequent impacts on natural systems at all times and spatial scales.", "parameters": {}, "pooling_strategy":1 }
Could you please tell me why it's so slow?
The text was updated successfully, but these errors were encountered: