Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into rtti_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
t-jankowski committed Dec 11, 2024
2 parents 37f5c1c + bf8be26 commit b74bcae
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
Binary file modified docs/sphinx_setup/_static/download/GenAI_Quick_Start_Guide.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion samples/python/benchmark/bert_benchmark/bert_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import tempfile
from time import perf_counter

import datasets
import openvino as ov
import datasets
from openvino.runtime import get_version
from transformers import AutoTokenizer
from transformers.onnx import export
Expand Down
6 changes: 4 additions & 2 deletions src/plugins/intel_cpu/tools/commit_slider/commit_slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@
if curCfgData['userLogPath']:
permLogPath = curCfgData['userLogPath']

safeClearDir(permLogPath, curCfgData)
if not curCfgData['clearLogsAposteriori']:
if curCfgData['clearLogsAposteriori']:
safeClearDir(permLogPath, curCfgData)
elif not tempLogPath == permLogPath:
safeClearDir(permLogPath, curCfgData)
copy_tree(tempLogPath, permLogPath)

safeClearDir(permCachePath, curCfgData)
Expand Down
6 changes: 4 additions & 2 deletions src/plugins/intel_cpu/tools/commit_slider/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,14 @@ def requireBinarySearchData(td: TestData, rsc: map):
)
[setattr(td, key, td.commonRsc[key] \
if not key in td.testCfg or \
not isinstance(td.testCfg[key], str) \
not (isinstance(td.testCfg[key], str) or \
isinstance(td.testCfg[key], bool)) \
else td.testCfg[key]) for key in [
'repoStructure',
'userCachePath',
'userLogPath',
'clearLogsAposteriori', 'clearCache',
'clearLogsAposteriori',
'clearCache',
'mainFile', 'repoPath'
]]
td.patternPrefix = td.commonRsc['patchGeneratorPrefix']
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/intel_cpu/tools/commit_slider/utils/modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def preliminaryCheck(self, list, cfg):
if cfg["preliminaryCheckCfg"]["checkBenchmarkModelPath"]:
cmdStr = cfg["appCmd"]
matcher = re.search(
"benchmark.*-m[\s*]([^\S]*)",
r"benchmark.*-m[\s*]([^\S]*)",
cmdStr,
flags=re.MULTILINE
)
Expand Down Expand Up @@ -287,7 +287,7 @@ def getCommitInfo(self, commit):
class AccuracyCheckerMode(Mode):
def __init__(self, cfg):
super().__init__(cfg)
self.thresholdPattern = ":\s([0-9]*[.][0-9]*)%.*abs error"
self.thresholdPattern = r":\s([0-9]*[.][0-9]*)%.*abs error"
self.curMetric = None
self.createCash()

Expand Down
2 changes: 1 addition & 1 deletion tests/llm/accuracy_conformance.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def teardown_module():
test_scope,
)
def test_accuracy_conformance(model_path, model_type, precision, gt_data, device):
target_model = OVModelForCausalLM.from_pretrained(model_path, device=device)
target_model = OVModelForCausalLM.from_pretrained(model_path, device=device, ov_config={"KV_CACHE_PRECISION": "f16"})
tokenizer = AutoTokenizer.from_pretrained(model_path)

evaluator = wwb.Evaluator(
Expand Down

0 comments on commit b74bcae

Please sign in to comment.