Skip to content

Return TokenData in Inference calls #321

Return TokenData in Inference calls

Return TokenData in Inference calls #321

Triggered via pull request October 19, 2023 21:16
Status Failure
Total duration 16m 6s
Artifacts

main.yml

on: pull_request
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

1 error and 40 warnings
Test (linux-debug)
Process completed with exit code 1.
Test (linux-debug): LLama/LLamaTokenDataExecutor.cs#L40
Async-iterator 'LLamaTokenDataExecutor.InferAsync(string, IInferenceParams?, CancellationToken)' has one or more parameters of type 'CancellationToken' but none of them is decorated with the 'EnumeratorCancellation' attribute, so the cancellation token parameter from the generated 'IAsyncEnumerable<>.GetAsyncEnumerator' will be unconsumed
Test (linux-debug): LLama/LLamaTokenDataExecutor.cs#L46
Async-iterator 'LLamaTokenDataExecutor.InferTokensAsync(string, IInferenceParams?, CancellationToken)' has one or more parameters of type 'CancellationToken' but none of them is decorated with the 'EnumeratorCancellation' attribute, so the cancellation token parameter from the generated 'IAsyncEnumerable<>.GetAsyncEnumerator' will be unconsumed
Test (linux-debug): LLama/Common/TokenData.cs#L3
Non-nullable property 'Content' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Test (linux-debug): LLama/LLamaInteractExecutor.cs#L91
Possible null reference argument for parameter 'data' in 'Task InteractiveExecutor.LoadState(ExecutorBaseState data)'.
Test (linux-debug): LLama/LLamaInstructExecutor.cs#L105
Possible null reference argument for parameter 'data' in 'Task InstructExecutor.LoadState(ExecutorBaseState data)'.
Test (linux-debug): LLama/LLamaInstructExecutor.cs#L146
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (linux-debug): LLama/LLamaInteractExecutor.cs#L132
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (linux-debug): LLama/LLamaInstructExecutor.cs#L257
Non-nullable property 'InputPrefixTokens' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Test (linux-debug): LLama/LLamaInstructExecutor.cs#L262
Non-nullable property 'InputSuffixTokens' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Test (linux-debug): LLama/LLamaInteractExecutor.cs#L158
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (linux-release): LLama/LLamaTokenDataExecutor.cs#L40
Async-iterator 'LLamaTokenDataExecutor.InferAsync(string, IInferenceParams?, CancellationToken)' has one or more parameters of type 'CancellationToken' but none of them is decorated with the 'EnumeratorCancellation' attribute, so the cancellation token parameter from the generated 'IAsyncEnumerable<>.GetAsyncEnumerator' will be unconsumed
Test (linux-release): LLama/LLamaTokenDataExecutor.cs#L46
Async-iterator 'LLamaTokenDataExecutor.InferTokensAsync(string, IInferenceParams?, CancellationToken)' has one or more parameters of type 'CancellationToken' but none of them is decorated with the 'EnumeratorCancellation' attribute, so the cancellation token parameter from the generated 'IAsyncEnumerable<>.GetAsyncEnumerator' will be unconsumed
Test (linux-release): LLama/Common/TokenData.cs#L3
Non-nullable property 'Content' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Test (linux-release): LLama/LLamaInstructExecutor.cs#L105
Possible null reference argument for parameter 'data' in 'Task InstructExecutor.LoadState(ExecutorBaseState data)'.
Test (linux-release): LLama/LLamaInteractExecutor.cs#L91
Possible null reference argument for parameter 'data' in 'Task InteractiveExecutor.LoadState(ExecutorBaseState data)'.
Test (linux-release): LLama/LLamaInteractExecutor.cs#L132
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (linux-release): LLama/LLamaInstructExecutor.cs#L146
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (linux-release): LLama/LLamaTokenDataExecutor.cs#L46
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (linux-release): LLama/LLamaInstructExecutor.cs#L257
Non-nullable property 'InputPrefixTokens' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Test (linux-release): LLama/LLamaInstructExecutor.cs#L262
Non-nullable property 'InputSuffixTokens' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Test (windows-release): LLama/LLamaTokenDataExecutor.cs#L40
Async-iterator 'LLamaTokenDataExecutor.InferAsync(string, IInferenceParams?, CancellationToken)' has one or more parameters of type 'CancellationToken' but none of them is decorated with the 'EnumeratorCancellation' attribute, so the cancellation token parameter from the generated 'IAsyncEnumerable<>.GetAsyncEnumerator' will be unconsumed
Test (windows-release): LLama/LLamaTokenDataExecutor.cs#L46
Async-iterator 'LLamaTokenDataExecutor.InferTokensAsync(string, IInferenceParams?, CancellationToken)' has one or more parameters of type 'CancellationToken' but none of them is decorated with the 'EnumeratorCancellation' attribute, so the cancellation token parameter from the generated 'IAsyncEnumerable<>.GetAsyncEnumerator' will be unconsumed
Test (windows-release): LLama/Common/TokenData.cs#L3
Non-nullable property 'Content' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Test (windows-release): LLama/Native/SafeLLamaContextHandle.cs#L208
'NativeApi.llama_eval(SafeLLamaContextHandle, int*, int, int)' is obsolete: 'use llama_decode() instead'
Test (windows-release): LLama/LLamaTokenDataExecutor.cs#L46
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (windows-release): LLama/LLamaInteractExecutor.cs#L91
Possible null reference argument for parameter 'data' in 'Task InteractiveExecutor.LoadState(ExecutorBaseState data)'.
Test (windows-release): LLama/LLamaInteractExecutor.cs#L132
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (windows-release): LLama/LLamaInteractExecutor.cs#L158
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (windows-release): LLama/LLamaInstructExecutor.cs#L105
Possible null reference argument for parameter 'data' in 'Task InstructExecutor.LoadState(ExecutorBaseState data)'.
Test (windows-release): LLama/LLamaInstructExecutor.cs#L146
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (windows-debug): LLama/LLamaTokenDataExecutor.cs#L40
Async-iterator 'LLamaTokenDataExecutor.InferAsync(string, IInferenceParams?, CancellationToken)' has one or more parameters of type 'CancellationToken' but none of them is decorated with the 'EnumeratorCancellation' attribute, so the cancellation token parameter from the generated 'IAsyncEnumerable<>.GetAsyncEnumerator' will be unconsumed
Test (windows-debug): LLama/LLamaTokenDataExecutor.cs#L46
Async-iterator 'LLamaTokenDataExecutor.InferTokensAsync(string, IInferenceParams?, CancellationToken)' has one or more parameters of type 'CancellationToken' but none of them is decorated with the 'EnumeratorCancellation' attribute, so the cancellation token parameter from the generated 'IAsyncEnumerable<>.GetAsyncEnumerator' will be unconsumed
Test (windows-debug): LLama/Common/TokenData.cs#L3
Non-nullable property 'Content' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Test (windows-debug): LLama/Native/SafeLLamaContextHandle.cs#L208
'NativeApi.llama_eval(SafeLLamaContextHandle, int*, int, int)' is obsolete: 'use llama_decode() instead'
Test (windows-debug): LLama/LLamaTokenDataExecutor.cs#L46
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (windows-debug): LLama/LLamaInteractExecutor.cs#L91
Possible null reference argument for parameter 'data' in 'Task InteractiveExecutor.LoadState(ExecutorBaseState data)'.
Test (windows-debug): LLama/LLamaInstructExecutor.cs#L105
Possible null reference argument for parameter 'data' in 'Task InstructExecutor.LoadState(ExecutorBaseState data)'.
Test (windows-debug): LLama/LLamaInstructExecutor.cs#L146
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
Test (windows-debug): LLama/LLamaInstructExecutor.cs#L257
Non-nullable property 'InputPrefixTokens' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Test (windows-debug): LLama/LLamaInstructExecutor.cs#L262
Non-nullable property 'InputSuffixTokens' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.