Views
No views yet
meta-llama/Llama-3.1-8B-Instruct
LoRA config: r=96, α=192, dropout=0.05, target_modules=["q_proj","k_proj","v_proj","o_proj"], inference_mode=true| Metric | Value |
|---|---|
| Eval loss | 0.2238 |
| Perplexity | ~4.7 |
| Eval samples/sec | ~19.23 |
Design a high-level ArchiMate view for a cloud migration scenario.1ArchiMate View:
2- Application Component: Cloud Migration Service
3- Business Role: Migration Lead
4- Infrastructure Service: Virtual Network
5...1from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
2from peft import PeftModel
3
4# Load base + LoRA
5tokenizer = AutoTokenizer.from_pretrained(
6 "meta-llama/Llama-3.1-8B-Instruct", use_fast=True
7)
8base = AutoModelForCausalLM.from_pretrained(
9 "meta-llama/Llama-3.1-8B-Instruct",
10 device_map="auto", torch_dtype="auto"
11)
12model = PeftModel.from_pretrained(base, "brkichle/lora-llama3-archimate")
13model.eval()
14
15# Create generation pipeline
16pipe = pipeline(
17 "text-generation", model=model, tokenizer=tokenizer,
18 device_map="auto", return_full_text=False,
19 max_new_tokens=256, temperature=0.7, top_p=0.9,
20 repetition_penalty=1.1, pad_token_id=tokenizer.eos_token_id
21)
22
23# Run
24response = pipe("Show me an ArchiMate overview of a microservices architecture.")
25print(response[0]["generated_text"])@misc{archimategpt2025,
title={ArchiMateGPT: LoRA‐fine‐tuned Llama 3.1 for ArchiMate 3.1},
author={Your Name},
year={2025},
publisher={Hugging Face}
}