Instructions to use AbdulSittar/Tech_Posting_LLama2_7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AbdulSittar/Tech_Posting_LLama2_7B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf") model = PeftModel.from_pretrained(base_model, "AbdulSittar/Tech_Posting_LLama2_7B") - Notebooks
- Google Colab
- Kaggle
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf")
model = PeftModel.from_pretrained(base_model, "AbdulSittar/Tech_Posting_LLama2_7B")Tech_Posting_LLama2_7B
A LoRA adapter for Llama-2-7b-chat-hf, fine-tuned with supervised fine-tuning (SFT) to generate Reddit-style posts and comments in the Technology domain. It is the content generator used in the multi-agent social media simulation framework described in the paper below.
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
- Related dataset: AbdulSittar/Social_Graph_Inference_Reddit
Intended Use
Direct use: generating synthetic Technology-topic Reddit content for research on social media simulation. In the paper's framework, this adapter acts as the text generator for agents, alongside a Temporal Fusion Transformer scheduler (who acts, what they do, and on which target), 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: <source subreddits, time period, number of posts/comments, filtering, anonymization of usernames and personal data>
- Method: SFT with TRL; LoRA via PEFT 0.17.0
- LoRA configuration: <rank, alpha, dropout, target modules>
- Hyperparameters: <learning rate, epochs, batch size, max sequence length>
- Hardware:
- Precision: <fp16 / bf16 / 4-bit>
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.
How to Get Started
This adapter requires access to the gated base model.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_id = "meta-llama/Llama-2-7b-chat-hf"
adapter_id = "AbdulSittar/Tech_Posting_LLama2_7B"
tokenizer = AutoTokenizer.from_pretrained(base_id)
model = AutoModelForCausalLM.from_pretrained(
base_id, torch_dtype=torch.float16, device_map="auto"
)
model = PeftModel.from_pretrained(model, adapter_id)
prompt = "<your prompt format here>"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=200, do_sample=True, temperature=0.7)
print(tokenizer.decode(out[0], 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}
}
Framework versions
- PEFT 0.17.0
- Downloads last month
- -
Model tree for AbdulSittar/Tech_Posting_LLama2_7B
Base model
meta-llama/Llama-2-7b-chat-hf
# Gated model: Login with a HF token with gated access permission hf auth login