Views
No views yet
| Benchmark | Lite-Oute-2-Mamba2Attn-250M-Base |
|---|---|
| ARC-C (0-shot) | 26.88 |
| ARC-E (0-shot) | 53.54 |
| HellaSWAG (0-shot) | 38.00 |
| MMLU (0-shot) | 24.87 |
| OpenBookQA (0-shot) | 30.20 |
| PIQA (0-shot) | 66.27 |
| Winogrande (0-shot) | 52.01 |
| ARC-C (5-shot) | 27.22 |
| ARC-E (5-shot) | 55.51 |
| HellaSWAG (5-shot) | 38.17 |
| MMLU (5-shot) | 25.59 |
| OpenBookQA (5-shot) | 30.40 |
| PIQA (5-shot) | 66.59 |
| Winogrande (5-shot) | 52.49 |
<s>Scientists have made a breakthrough in renewable energy by developing a new type ofsolar cell that can convert sunlight directly into electricity.
The researchers found that the material, called a carbon nanotube (CNT) solar cell, is able to capture and store light energy from the sun's rays and converts it into electricity using a process known as photoelectrochemistry.
This process involves passing electrons through a layer of semiconducting materials like silicon or germanium, which are then connected together via cables. As the electrons pass through these layers, they cause them to become excited and move towards anode, where they are oxidized and released their stored energy.
In this process, the CNT solar cells generate a tiny amount of power, but when the current flows through the circuit, it produces more than enough electricity to run electronic devices such as computers, lights, and other electronic devices.1pip install causal-conv1d>=1.4.0
2pip install mamba-ssmpip install flash-attn --no-build-isolation1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
4model = AutoModelForCausalLM.from_pretrained(
5 "OuteAI/Lite-Oute-2-Mamba2Attn-Base",
6 # To allow custom modeling files
7 trust_remote_code=True,
8
9 # If you have installed flash attention 2
10 # attn_implementation="flash_attention_2",
11 # torch_dtype=torch.bfloat16,
12)
13model.to(device)
14tokenizer = AutoTokenizer.from_pretrained("OuteAI/Lite-Oute-2-Mamba2Attn-Base")
15
16def generate_response(message: str, temperature: float = 0.2, repetition_penalty: float = 1.12) -> str:
17 # Convert message to PyTorch tensors
18 input_ids = tokenizer.encode(
19 message, return_tensors="pt"
20 ).to(device)
21 # Generate the response
22 output = model.generate(
23 input_ids,
24 max_length=256,
25 temperature=temperature,
26 repetition_penalty=repetition_penalty,
27 do_sample=True
28 )
29 # Decode the generated output
30 generated_text = tokenizer.decode(output[0], skip_special_tokens=True)
31 return generated_text
32message = "Scientists have made a breakthrough in renewable energy by developing a new type of"
33response = generate_response(message)
34print(response)