Views
No views yet
| Property | Value |
|---|---|
| Base model | dogtooth/open-lm-3b-202101 |
| Parameters | 2.7B |
| Architecture | LLaMA-style (pre-norm, SwiGLU, RoPE) |
| Knowledge cutoff | January 2021 |
| Context length | 2,048 tokens |
| Vocab size | 50,432 |
| Training data | mattwang123/chrononauts-sft-filtered (non_temporal split) |
| Eval data | HellaSwag |
| Train loss | 0.936 |
| Eval loss | 2.6 |
Human: / Assistant: prompt format with <|endoftext|> as the separator token.Human: {user_message}<|endoftext|>
Assistant:{assistant_response}<|endoftext|>Human: {first_message}<|endoftext|>
Assistant:{first_response}<|endoftext|>
Human: {second_message}<|endoftext|>
Assistant:{second_response}<|endoftext|>System: {system_message}<|endoftext|>
Human: {user_message}<|endoftext|>
Assistant:{assistant_response}<|endoftext|>1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3model_id = "dogtooth/open-lm-3b-202101-sft-nontemporal"
4tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
5model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
6
7# Using the chat template
8messages = [
9 {"role": "user", "content": "What is the capital of France?"}
10]
11prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
12# Result: "Human: What is the capital of France?<|endoftext|>\nAssistant:"
13
14inputs = tokenizer(prompt, return_tensors="pt")
15outputs = model.generate(**inputs, max_new_tokens=256)
16print(tokenizer.decode(outputs[0], skip_special_tokens=False))1prompt = "Human: What is the capital of France?<|endoftext|>\nAssistant:"
2inputs = tokenizer(prompt, return_tensors="pt")
3outputs = model.generate(**inputs, max_new_tokens=256)
4print(tokenizer.decode(outputs[0], skip_special_tokens=False))