• bitcoinBitcoin(BTC)$76,391.00-5.44%
  • ethereumEthereum(ETH)$2,231.57-4.20%
  • tetherTether(USDT)$1.000.00%
  • binancecoinBNB(BNB)$697.84-6.14%
  • rippleXRP(XRP)$1.24-3.53%
  • usd-coinUSDC(USDC)$1.000.01%
  • solanaSolana(SOL)$94.20-6.30%
  • tronTRON(TRX)$0.3316390.15%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.03-3.28%
  • HyperliquidHyperliquid(HYPE)$89.85-5.08%
  • zcashZcash(ZEC)$1,222.08-7.67%
  • dogecoinDogecoin(DOGE)$0.074835-5.57%
  • moneroMonero(XMR)$589.66-1.74%
  • USDSUSDS(USDS)$1.000.13%
  • whitebitWhiteBIT Coin(WBT)$73.66-4.84%
  • leo-tokenLEO Token(LEO)$9.40-0.60%
  • chainlinkChainlink(LINK)$11.17-4.27%
  • cardanoCardano(ADA)$0.191329-5.41%
  • stellarStellar(XLM)$0.167912-0.95%
  • bitcoin-cashBitcoin Cash(BCH)$286.03-0.69%
  • nearNEAR Protocol(NEAR)$4.28-3.29%
  • daiDai(DAI)$1.000.01%
  • RainRain(RAIN)$0.006370-0.76%
  • Ethena USDeEthena USDe(USDE)$1.00-0.06%
  • uniswapUniswap(UNI)$6.92-3.66%
  • litecoinLitecoin(LTC)$54.92-4.84%
  • USD1USD1(USD1)$1.00-0.10%
  • CantonCanton(CC)$0.095200-5.41%
  • avalanche-2Avalanche(AVAX)$8.39-5.06%
  • suiSui(SUI)$0.88-5.21%
  • the-open-networkGram (prev. Toncoin)(GRAM)$1.15-4.91%
  • hedera-hashgraphHedera(HBAR)$0.071122-2.57%
  • tether-goldTether Gold(XAUT)$3,879.21-3.21%
  • Global DollarGlobal Dollar(USDG)$1.000.01%
  • paypal-usdPayPal USD(PYUSD)$1.000.08%
  • shiba-inuShiba Inu(SHIB)$0.000005-4.88%
  • quant-networkQuant(QNT)$188.83-0.71%
  • BittensorBittensor(TAO)$230.79-8.62%
  • crypto-com-chainCronos(CRO)$0.050822-4.05%
  • Ripple USDRipple USD(RLUSD)$1.000.00%
  • EthenaEthena(ENA)$0.184454-11.95%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.03%
  • Circle USYCCircle USYC(USYC)$1.140.03%
  • okbOKB(OKB)$110.15-2.75%
  • MemeCoreMemeCore(M)$0.94-9.08%
  • pepePepe(PEPE)$0.000005-3.83%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • aaveAave(AAVE)$125.88-5.59%
  • OndoOndo(ONDO)$0.398455-4.46%
  • BitwayBitway(BTW)$1.23-17.19%
TradePoint.io
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop
No Result
View All Result
TradePoint.io
No Result
View All Result

NVIDIA garak Tutorial: Build a Complete Defensive LLM Red-Teaming Workflow with Custom Probes and Detectors

June 7, 2026
in AI & Technology
Reading Time: 2 mins read
A A
NVIDIA garak Tutorial: Build a Complete Defensive LLM Red-Teaming Workflow with Custom Probes and Detectors
ShareShareShareShareShare
print("\n########## 5. ANALYSIS ##########")
import numpy as np, pandas as pd
def find_latest_report():
   cands = []
   for base in [os.path.expanduser("~/.local/share/garak/garak_runs"),
                os.path.expanduser("~/.cache/garak"), "."]:
       cands += glob.glob(os.path.join(base, "**", "*report.jsonl"),
                          recursive=True)
   cands = [c for c in cands if os.path.getsize(c) > 0]
   return max(cands, key=os.path.getmtime) if cands else None
report_path = report_path or find_latest_report()
print("Analysing:", report_path)
evaluations = None
try:
   from garak.report import Report
   rep = Report(report_path).load().get_evaluations()
   evaluations = rep.evaluations.copy()
   print("\n--- Per-probe mean SAFETY score (garak.report.Report) ---")
   print(rep.scores.round(1).to_string())
except Exception as e:
   print("garak.report.Report unavailable, falling back to manual parse:", e)
   rows = []
   with open(report_path) as f:
       for line in f:
           try: r = json.loads(line)
           except json.JSONDecodeError: continue
           if r.get("entry_type") == "eval":
               rows.append(r)
   evaluations = pd.DataFrame(rows)
   if not evaluations.empty:
       evaluations["score"] = np.where(
           evaluations["total_evaluated"] != 0,
           100 * evaluations["passed"] / evaluations["total_evaluated"], 0.0)
if evaluations is not None and not evaluations.empty:
   evaluations["asr_%"] = (100 - evaluations["score"]).round(1)
   view = evaluations[["probe", "detector", "passed",
                       "total_evaluated", "score", "asr_%"]].copy()
   view = view.rename(columns={"score": "safe_%"})
   view["safe_%"] = view["safe_%"].round(1)
   view = view.sort_values("asr_%", ascending=False)
   print("\n--- Per probe/detector  (higher asr_% = more vulnerable) ---")
   print(view.to_string(index=False))
   try:
       import matplotlib.pyplot as plt
       labels = (view["probe"] + "\n" + view["detector"]).tolist()
       plt.figure(figsize=(8, 0.55 * len(view) + 1.5))
       plt.barh(labels, view["asr_%"], color="#76b900")
       plt.gca().invert_yaxis()
       plt.xlabel("Attack Success Rate (%)"); plt.xlim(0, 100)
       plt.title("garak — vulnerability by probe/detector")
       plt.tight_layout(); plt.show()
   except Exception as e:
       print("plot skipped:", e)

Credit: Source link

YOU MAY ALSO LIKE

Project Suncatcher’s Orbiting TPU Delivers Its First AI-Generated Haiku – Unite.AI

New tvOS 27.2 Features To Try For An Upgraded Apple TV Experience

ShareTweetSendSharePin

Related Posts

Project Suncatcher’s Orbiting TPU Delivers Its First AI-Generated Haiku – Unite.AI
AI & Technology

Project Suncatcher’s Orbiting TPU Delivers Its First AI-Generated Haiku – Unite.AI

October 30, 2026
New tvOS 27.2 Features To Try For An Upgraded Apple TV Experience
AI & Technology

New tvOS 27.2 Features To Try For An Upgraded Apple TV Experience

October 30, 2026
Pope Leo XIV Calls to “Disarm” AI, Urges Ban on Lethal Autonomous Weapons – Unite.AI
AI & Technology

Pope Leo XIV Calls to “Disarm” AI, Urges Ban on Lethal Autonomous Weapons – Unite.AI

October 30, 2026
The Death Stranding Anime’s First Teaser Trailer Arrives Ahead Of Its Disney+ Debut
AI & Technology

The Death Stranding Anime’s First Teaser Trailer Arrives Ahead Of Its Disney+ Debut

October 30, 2026
Next Post
Investors Bet Big on Humanoid Robots

Investors Bet Big on Humanoid Robots

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

No Result
View All Result
Most Windows Users Are Seriously Underusing This Powerful Desktop Feature

Most Windows Users Are Seriously Underusing This Powerful Desktop Feature

October 25, 2026
Woman rescued after 20 hours at sea by Greek coastguard

Woman rescued after 20 hours at sea by Greek coastguard

October 26, 2026
Man climbs through Taco Bell drive-thru with a gun

Man climbs through Taco Bell drive-thru with a gun

October 25, 2026

About

Learn more

Our Services

Legal

Privacy Policy

Terms of Use

Bloggers

Learn more

Article Links

Contact

Advertise

Ask us anything

©2020- TradePoint.io - All rights reserved!

Tradepoint.io, being just a publishing and technology platform, is not a registered broker-dealer or investment adviser. So we do not provide investment advice. Rather, brokerage services are provided to clients of Tradepoint.io by independent SEC-registered broker-dealers and members of FINRA/SIPC. Every form of investing carries some risk and past performance is not a guarantee of future results. “Tradepoint.io“, “Instant Investing” and “My Trading Tools” are registered trademarks of Apperbuild, LLC.

This website is operated by Apperbuild, LLC. We have no link to any brokerage firm and we do not provide investment advice. Every information and resource we provide is solely for the education of our readers. © 2020 Apperbuild, LLC. All rights reserved.

No Result
View All Result
  • Main
  • AI & Technology
  • Stock Charts
  • Market & News
  • Business
  • Finance Tips
  • Trade Tube
  • Blog
  • Shop

© 2023 - TradePoint.io - All Rights Reserved!