Views
No views yet
unsloth/llama-3-8b-bnb-4bit as the base model.unsloth/llama-3-8b-bnb-4biten)| File Name | Description |
|---|---|
| .gitattributes | Initial commit |
| README.md | Model description and usage |
| adapter_config.json | Configuration for adapter |
| adapter_model.safetensors | Finetuned model weights |
| config.json | Configuration for base model |
| generation_config.json | Generation configuration for model |
| model-00001-of-00007.safetensors | Part of the base model weights |
| model-00002-of-00007.safetensors | Part of the base model weights |
| model-00003-of-00007.safetensors | Part of the base model weights |
| model-00004-of-00007.safetensors | Part of the base model weights |
| model-00005-of-00007.safetensors | Part of the base model weights |
| model-00006-of-00007.safetensors | Part of the base model weights |
| model-00007-of-00007.safetensors | Part of the base model weights |
| model.safetensors.index.json | Index for the model weights |
| special_tokens_map.json | Special tokens mapping |
| tokenizer.json | Tokenizer data |
| tokenizer_config.json | Configuration for tokenizer |
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3# Load the tokenizer and model
4tokenizer = AutoTokenizer.from_pretrained("inetnuc/llama-3-8b-chat-nuclear")
5model = AutoModelForCausalLM.from_pretrained("inetnuc/llama-3-8b-chat-nuclear")
6
7# Example of generating text
8inputs = tokenizer("what is the iaea approach for cyber security?", return_tensors="pt")
9outputs = model.generate(**inputs, max_new_tokens=128)
10print(tokenizer.decode(outputs[0], skip_special_tokens=True))
11
12
13