llama2-lora-technology

A LoRA adapter for Llama-2-7b-chat-hf, fine-tuned to generate Reddit-style conversational text in the Technology domain. It is the technology-domain content generator used in the multi-agent social media simulation framework described in the paper below. The base model stays frozen, and only the LoRA adapter weights are trained and released here.

Model Details

  • Developed by: Abdul Sittar
  • Model type: LoRA (PEFT) adapter for a causal language model
  • Language: English
  • License: Llama 2 Community License (inherited from the base model). Using this adapter requires accepting Meta's license for the base model.
  • Finetuned from: meta-llama/Llama-2-7b-chat-hf
  • Paper: Sittar et al., Simulating Multi-Agent Social Media Ecosystem With LLMs: Modeling, Evaluation, and Exploratory Analysis of Ranking Mechanisms, IEEE Access 14 (2026), 179740-179763. https://doi.org/10.1109/ACCESS.2026.3752164
  • Dataset: AbdulSittar/Social_Graph_Inference_Reddit (also archived on Zenodo)

Intended Use

Direct use: generating synthetic Technology-topic Reddit content for research on social media simulation. In the paper's framework, this adapter generates the text for agents, alongside a Temporal Fusion Transformer scheduler, retrieval-augmented generation over historical posts, persona profiles, and pluggable chronological, engagement-based and hybrid ranking.

Intended to support: reproducibility of the experiments reported in the paper.

Out-of-scope use: impersonating real users, producing disinformation or spam, or any use where generated text could be mistaken for genuine human posts without disclosure. The model is not evaluated for factual accuracy and should not be used as a source of technical facts.

Training Details

  • Training data: the Technology portion of the Social Graph Inference Reddit dataset: 33 technology-focused agents, with over one million posts and comments. The dataset defines agent categories, derives inter-agent relationships and builds directed, weighted interaction networks from real Reddit activity. Authors: Abdul Sittar, Alenka Guček, Miha Češnovar.
  • Method: LoRA fine-tuning with PEFT; base model frozen.
  • LoRA configuration: see adapter_config.json in this repository (rank, alpha, target modules).
  • Hyperparameters, hardware, precision: <learning rate, epochs, batch size, GPU, fp16/bf16>

Evaluation

The adapter was evaluated as part of the full simulation framework against real Reddit data (Technology, Climate Change, COVID-19) at three scales (100 to 1,000 events). Results are reported in the paper.

Bias, Risks, and Limitations

  • The adapter inherits the biases and limitations of Llama-2-7b-chat and of its Reddit training data.
  • The paper reports that semantic coherence weakens in long threads, and that homophily among generated agents is stylistic rather than topical.
  • Outputs may be inaccurate or reflect the style and viewpoints of the source community.

Repository Files

  • adapter_model.safetensors: LoRA adapter weights
  • adapter_config.json: LoRA configuration
  • tokenizer.model, tokenizer.json, tokenizer_config.json, special_tokens_map.json: tokenizer files
  • chat_template.jinja: chat template used for inference

How to Get Started

This adapter needs the gated base model. Accept Meta's license on the base model page and run hf auth login first.

# pip install -U transformers peft accelerate torch
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_id = "meta-llama/Llama-2-7b-chat-hf"
adapter_id = "AbdulSittar/llama2-lora-technology"

tokenizer = AutoTokenizer.from_pretrained(adapter_id)
model = AutoModelForCausalLM.from_pretrained(
    base_id, torch_dtype=torch.float16, device_map="auto"
)
model = PeftModel.from_pretrained(model, adapter_id)
model.eval()

messages = [
    {"role": "user", "content": "Write a Reddit post about the latest trends in AI and machine learning."}
]
inputs = tokenizer.apply_chat_template(
    messages, add_generation_prompt=True, return_tensors="pt", return_dict=True
).to(model.device)

with torch.no_grad():
    output = model.generate(**inputs, max_new_tokens=200, do_sample=True, temperature=0.7)

new_tokens = output[0][inputs["input_ids"].shape[1]:]
print(tokenizer.decode(new_tokens, skip_special_tokens=True))

Funding

This work was supported by the European Commission under the TWON project (TWin of Online Social Networks), project number 101095095.

Citation

@article{sittar2026simulating,
  title={Simulating Multi-Agent Social Media Ecosystem With LLMs: Modeling, Evaluation, and Exploratory Analysis of Ranking Mechanisms},
  author={Sittar, Abdul and Smiljani{\'c}, Mateja and Gu{\v{c}}ek, Alenka and Rettinger, Achim and Grobelnik, Marko},
  journal={IEEE Access},
  volume={14},
  pages={179740--179763},
  year={2026},
  publisher={IEEE},
  doi={10.1109/ACCESS.2026.3752164}
}
Downloads last month
1
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for AbdulSittar/llama2-lora-technology

Adapter
(1,210)
this model

Dataset used to train AbdulSittar/llama2-lora-technology