Skip to content

Commit c596d8a

Browse files
authored
fix: Change baseDir assignment to use ModelPath (#9010)
Fixes: #9005 Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
1 parent d79ad76 commit c596d8a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

backend/go/acestep-cpp/acestepcpp_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ func TestLoadModel(t *testing.T) {
112112

113113
resp, err := client.LoadModel(context.Background(), &pb.ModelOptions{
114114
ModelFile: mainModelPath,
115+
ModelPath: modelDir,
115116
Options: []string{
116117
"text_encoder_model:Qwen3-Embedding-0.6B-Q8_0.gguf",
117118
"dit_model:acestep-v15-turbo-Q8_0.gguf",
@@ -151,6 +152,7 @@ func TestSoundGeneration(t *testing.T) {
151152
// Load models
152153
loadResp, err := client.LoadModel(context.Background(), &pb.ModelOptions{
153154
ModelFile: mainModelPath,
155+
ModelPath: modelDir,
154156
Options: []string{
155157
"text_encoder_model:Qwen3-Embedding-0.6B-Q8_0.gguf",
156158
"dit_model:acestep-v15-turbo-Q8_0.gguf",

backend/go/acestep-cpp/goacestepcpp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (a *AceStepCpp) Load(opts *pb.ModelOptions) error {
2424
lmModel := opts.ModelFile
2525

2626
// Get the base directory from ModelFile for resolving relative paths
27-
baseDir := filepath.Dir(lmModel)
27+
baseDir := opts.ModelPath
2828

2929
var textEncoderModel, ditModel, vaeModel string
3030

0 commit comments

Comments
 (0)