diff options
| -rw-r--r-- | Whisper/Whisper/ContextImpl.cpp | 5 | ||||
| -rw-r--r-- | Whisper/WhisperCLI/WhisperCLI.vcxproj | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Whisper/Whisper/ContextImpl.cpp b/Whisper/Whisper/ContextImpl.cpp index c52a167..2fe2484 100644 --- a/Whisper/Whisper/ContextImpl.cpp +++ b/Whisper/Whisper/ContextImpl.cpp @@ -926,6 +926,11 @@ HRESULT COMLIGHTCALL ContextImpl::runFullImpl( const sFullParams& params, const for( const auto& r : tokens_cur ) prompt_past.push_back( r.id ); + for (int i = 0; i < n_ctxt; i++) { + auto& cur_prompt_past = ctx_[best_beam].prompt_past; + cur_prompt_past = prompt_past; + } + // store the text from this iteration if( !tokens_cur.empty() ) { diff --git a/Whisper/WhisperCLI/WhisperCLI.vcxproj b/Whisper/WhisperCLI/WhisperCLI.vcxproj index 8295eee..b268b37 100644 --- a/Whisper/WhisperCLI/WhisperCLI.vcxproj +++ b/Whisper/WhisperCLI/WhisperCLI.vcxproj @@ -126,12 +126,14 @@ <SDLCheck>true</SDLCheck> <PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> <ConformanceMode>true</ConformanceMode> + <LanguageStandard>stdcpp20</LanguageStandard> </ClCompile> <Link> <SubSystem>Console</SubSystem> <EnableCOMDATFolding>true</EnableCOMDATFolding> <OptimizeReferences>true</OptimizeReferences> <GenerateDebugInformation>true</GenerateDebugInformation> + <AdditionalDependencies>$(CoreLibraryDependencies);%(AdditionalDependencies);$(OutDir)Whisper.lib</AdditionalDependencies> </Link> </ItemDefinitionGroup> <ItemGroup> |
