• bitcoinBitcoin(BTC)$61,799.002.32%
  • ethereumEthereum(ETH)$1,734.942.99%
  • tetherTether(USDT)$1.00-0.01%
  • binancecoinBNB(BNB)$566.132.02%
  • usd-coinUSDC(USDC)$1.000.00%
  • rippleXRP(XRP)$0.982.87%
  • solanaSolana(SOL)$73.003.10%
  • Figure HelocFigure Heloc(FIGR_HELOC)$1.070.87%
  • tronTRON(TRX)$0.3055380.54%
  • HyperliquidHyperliquid(HYPE)$66.138.54%
  • zcashZcash(ZEC)$752.320.46%
  • dogecoinDogecoin(DOGE)$0.0581753.18%
  • moneroMonero(XMR)$466.25-11.03%
  • leo-tokenLEO Token(LEO)$9.070.95%
  • whitebitWhiteBIT Coin(WBT)$62.336.56%
  • chainlinkChainlink(LINK)$9.594.74%
  • USDSUSDS(USDS)$1.000.01%
  • cardanoCardano(ADA)$0.1533833.66%
  • Ethena USDeEthena USDe(USDE)$1.00-0.05%
  • stellarStellar(XLM)$0.1298141.30%
  • daiDai(DAI)$1.000.01%
  • bitcoin-cashBitcoin Cash(BCH)$213.502.60%
  • nearNEAR Protocol(NEAR)$3.111.52%
  • litecoinLitecoin(LTC)$44.282.21%
  • CantonCanton(CC)$0.076431-3.15%
  • avalanche-2Avalanche(AVAX)$6.772.01%
  • uniswapUniswap(UNI)$4.904.50%
  • tether-goldTether Gold(XAUT)$3,649.622.46%
  • USD1USD1(USD1)$1.000.00%
  • the-open-networkGram (prev. Toncoin)(GRAM)$0.981.34%
  • suiSui(SUI)$0.682.54%
  • Ripple USDRipple USD(RLUSD)$1.000.02%
  • Global DollarGlobal Dollar(USDG)$1.000.00%
  • hedera-hashgraphHedera(HBAR)$0.0558104.95%
  • Ondo US Dollar YieldOndo US Dollar Yield(USDY)$1.150.05%
  • paypal-usdPayPal USD(PYUSD)$1.000.00%
  • BittensorBittensor(TAO)$188.512.95%
  • quant-networkQuant(QNT)$150.991.76%
  • shiba-inuShiba Inu(SHIB)$0.0000042.07%
  • Spiko Amundi Overnight Swap Fund (EUR)Spiko Amundi Overnight Swap Fund (EUR)(EURSAFO)$1.120.14%
  • Circle USYCCircle USYC(USYC)$1.150.00%
  • crypto-com-chainCronos(CRO)$0.0402571.45%
  • MemeCoreMemeCore(M)$0.83-2.23%
  • okbOKB(OKB)$84.584.07%
  • RainRain(RAIN)$0.002415-9.37%
  • Falcon USDFalcon USD(USDF)$1.000.01%
  • pax-goldPAX Gold(PAXG)$3,647.032.40%
  • United StablesUnited Stables(U)$1.000.02%
  • BlackRock USD Institutional Digital Liquidity FundBlackRock USD Institutional Digital Liquidity Fund(BUIDL)$1.000.00%
  • pepePepe(PEPE)$0.0000043.85%
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

Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache

Backloggd Urges Users To Change Their Passwords After A Breach

ShareTweetSendSharePin

Related Posts

Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache
AI & Technology

Tencent Open-Sources DFly2: Speculative Decoding That Reuses the Target’s Sparse KV Cache

November 27, 2026
Backloggd Urges Users To Change Their Passwords After A Breach
AI & Technology

Backloggd Urges Users To Change Their Passwords After A Breach

November 26, 2026
1Password Says It Was Hacked But Users’ Vaults Are Safe
AI & Technology

1Password Says It Was Hacked But Users’ Vaults Are Safe

November 26, 2026
Canada Invests 0 Million More to Expand AI Compute Access Fund – Unite.AI
AI & Technology

Canada Invests $700 Million More to Expand AI Compute Access Fund – Unite.AI

November 26, 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
Freecycle – Give Away What Won’t Sell and Ask Before You Buy

Freecycle – Give Away What Won’t Sell and Ask Before You Buy

November 23, 2026
NFL Week 12 fantasy football rankings: A stuffed slate, plus best Thanksgiving dishes – The New York Times

NFL Week 12 fantasy football rankings: A stuffed slate, plus best Thanksgiving dishes – The New York Times

November 26, 2026
The Three DISM Commands You Should Know To Fix Your Windows System Images

The Three DISM Commands You Should Know To Fix Your Windows System Images

November 24, 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!