areen09 commited on
Commit
f2dada5
·
verified ·
1 Parent(s): ef14c17

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +83 -1
README.md CHANGED
@@ -9,6 +9,8 @@ tags:
9
  license: apache-2.0
10
  language:
11
  - en
 
 
12
  ---
13
 
14
  # Uploaded model
@@ -17,6 +19,86 @@ language:
17
  - **License:** apache-2.0
18
  - **Finetuned from model :** unsloth/meta-llama-3.1-8b-unsloth-bnb-4bit
19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
21
 
22
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
9
  license: apache-2.0
10
  language:
11
  - en
12
+ datasets:
13
+ - IraGia/gprMax_Train
14
  ---
15
 
16
  # Uploaded model
 
19
  - **License:** apache-2.0
20
  - **Finetuned from model :** unsloth/meta-llama-3.1-8b-unsloth-bnb-4bit
21
 
22
+ gprMax-ft: Fine-Tuned Meta-Llama-2-7B-Instruct-bnb-4bit Model
23
+ This repository hosts the fine-tuned Meta-Llama-2-7B-Instruct-bnb-4bit model, optimized for the gprmax_train dataset. The model has been fine-tuned using the efficient unsloth framework and converted to GGUF format for seamless compatibility with lightweight inference tools like llama.cpp.
24
+
25
+ Model Highlights
26
+ Base Model: Meta-Llama-2-7B-Instruct-bnb-4bit
27
+
28
+ Training Dataset: gprmax_train
29
+
30
+ Fine-Tuning Framework: unsloth for memory-efficient training.
31
+
32
+ Quantization: 4-bit (bnb) for faster inference.
33
+
34
+ GGUF Format: Enables compatibility with tools such as llama.cpp.
35
+
36
+ How to Access the Model
37
+ You can download the GGUF model directly from this repository or use the Hugging Face CLI:
38
+
39
+ bash
40
+ huggingface-cli download areen09/gprMax-ft --include "*.gguf"
41
+ Running with llama.cpp
42
+ Step 1: Install llama.cpp
43
+ Clone and compile the llama.cpp repository:
44
+
45
+ bash
46
+ git clone https://github.com/ggerganov/llama.cpp
47
+ cd llama.cpp
48
+ make
49
+ Step 2: Download the GGUF Model
50
+ Fetch the GGUF model file from this repository:
51
+
52
+ bash
53
+ wget https://huggingface.co/areen09/gprMax-ft/resolve/main/gprMax-ft.gguf
54
+ Step 3: Perform Inference
55
+ Run inference using the llama.cpp executable:
56
+
57
+ bash
58
+ ./main -m gprMax-ft.gguf -p "Your input text here" -n 512
59
+ Example Usage:
60
+ bash
61
+ ./main -m gprMax-ft.gguf -p "Describe the electromagnetic simulation results." -n 512
62
+ Using Python for Inference
63
+ The GGUF model can also be used with Python via the llama-cpp-python library.
64
+
65
+ Step 1: Install llama-cpp-python
66
+ Install the Python bindings for llama.cpp:
67
+
68
+ bash
69
+ pip install llama-cpp-python
70
+ Step 2: Load and Run the Model
71
+ Here’s a Python example for running inference:
72
+
73
+ python
74
+ from llama_cpp import Llama
75
+
76
+ # Load the GGUF model
77
+ model = Llama(model_path="gprMax-ft.gguf")
78
+
79
+ # Generate output based on input text
80
+ response = model("Simulate GPR results for given parameters.", max_tokens=512)
81
+ print(response["choices"][0]["text"])
82
+ Fine-Tuning Process
83
+ The model was fine-tuned using the unsloth framework, which is designed to optimize training efficiency by reducing memory usage and speeding up computations. Training was conducted on an NVIDIA A100 GPU, leveraging its high performance for large-scale fine-tuning tasks.
84
+
85
+ The dataset used, gprmax_train, consists of domain-specific data tailored for ground-penetrating radar simulations, ensuring that this model performs exceptionally well in electromagnetic analysis tasks.
86
+
87
+ License
88
+ This model follows the licensing terms of its base model, Meta-Llama-2-7B-Instruct-bnb-4bit. Please consult Hugging Face's licensing guidelines for more information.
89
+
90
+ Acknowledgments
91
+ We would like to thank:
92
+
93
+ Hugging Face for their robust platform and tools.
94
+
95
+ The creators of unsloth for enabling efficient fine-tuning workflows.
96
+
97
+ The developers of llama.cpp for their lightweight inference framework.
98
+
99
+ Contributors to the gprmax_train dataset for providing high-quality training data.
100
+
101
+ Feel free to explore or adapt this model for your specific needs. If you have any questions or feedback, don’t hesitate to reach out via Hugging Face or open an issue in this repository. Happy simulating! 🚀
102
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
103
 
104
+ [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)