Views
No views yet
| File Name | Size | Description | Upload Status |
|---|---|---|---|
.gitattributes | 1.57 kB | Git LFS configuration for tracking large files. | Uploaded |
README.md | 324 Bytes | Updated README with minimal information. | Uploaded |
config.json | 1.03 kB | Model configuration and metadata. | Uploaded |
generation_config.json | 248 Bytes | Configuration for text generation specifics. | Uploaded |
pytorch_model-00001-of-00004.bin | 4.98 GB | First shard of PyTorch model. | Uploaded (LFS) |
pytorch_model-00002-of-00004.bin | 5.00 GB | Second shard of PyTorch model. | Uploaded (LFS) |
pytorch_model-00003-of-00004.bin | 4.92 GB | Third shard of PyTorch model. | Uploaded (LFS) |
pytorch_model-00004-of-00004.bin | 1.17 GB | Final shard of PyTorch model. | Uploaded (LFS) |
pytorch_model.bin.index.json | 24.2 kB | Index file for model shards. | Uploaded |
special_tokens_map.json | 357 Bytes | Map for special tokens used in tokenizer. | Uploaded |
tokenizer.json | 17.2 MB | Full tokenizer JSON file. | Uploaded (LFS) |
tokenizer_config.json | 57.4 kB | Configuration for the tokenizer. | Uploaded |

1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "prithivMLmods/Llama-3.1-8B-Open-SFT"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(model_name)1prompt = """
2Explain the concept of gravity in a simple way suitable for a 10-year-old:
3"""
4inputs = tokenizer(prompt, return_tensors="pt")
5outputs = model.generate(**inputs, max_length=150, temperature=0.7)
6
7response = tokenizer.decode(outputs[0], skip_special_tokens=True)
8print("Model Output:", response)Safetensors for secure and efficient weight loading.