Instructions to use 10424lisa/tmp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 10424lisa/tmp with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("10424lisa/tmp", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +2 -2
- adapter_config.json +4 -4
- adapter_model.safetensors +1 -1
- python-languageserver-cancellation/448621bea4894cebb1cbd52c0179c6d6ed72390d9a/cancellation-bg-41.tmp +0 -0
- python-languageserver-cancellation/448621bea4894cebb1cbd52c0179c6d6ed72390d9a/cancellation-bg-43.tmp +0 -0
- python-languageserver-cancellation/448621bea4894cebb1cbd52c0179c6d6ed72390d9a/cancellation-bg-45.tmp +0 -0
- python-languageserver-cancellation/448621bea4894cebb1cbd52c0179c6d6ed72390d9a/cancellation-bg-47.tmp +0 -0
- tmp9hgekgrc/__pycache__/_remote_module_non_scriptable.cpython-311.pyc +0 -0
- tmp9hgekgrc/_remote_module_non_scriptable.py +81 -0
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
base_model: meta-llama/Llama-3.2-1B-Instruct
|
| 3 |
library_name: transformers
|
| 4 |
-
model_name:
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
- trl
|
|
@@ -9,7 +9,7 @@ tags:
|
|
| 9 |
licence: license
|
| 10 |
---
|
| 11 |
|
| 12 |
-
# Model Card for
|
| 13 |
|
| 14 |
This model is a fine-tuned version of [meta-llama/Llama-3.2-1B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct).
|
| 15 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
|
|
|
| 1 |
---
|
| 2 |
base_model: meta-llama/Llama-3.2-1B-Instruct
|
| 3 |
library_name: transformers
|
| 4 |
+
model_name: aiOneStop/my-lora-llama3
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
- trl
|
|
|
|
| 9 |
licence: license
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Model Card for aiOneStop/my-lora-llama3
|
| 13 |
|
| 14 |
This model is a fine-tuned version of [meta-llama/Llama-3.2-1B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-1B-Instruct).
|
| 15 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
adapter_config.json
CHANGED
|
@@ -24,13 +24,13 @@
|
|
| 24 |
"rank_pattern": {},
|
| 25 |
"revision": null,
|
| 26 |
"target_modules": [
|
| 27 |
-
"q_proj",
|
| 28 |
"up_proj",
|
| 29 |
-
"
|
| 30 |
-
"v_proj",
|
| 31 |
"down_proj",
|
|
|
|
| 32 |
"o_proj",
|
| 33 |
-
"
|
|
|
|
| 34 |
],
|
| 35 |
"task_type": "CAUSAL_LM",
|
| 36 |
"trainable_token_indices": null,
|
|
|
|
| 24 |
"rank_pattern": {},
|
| 25 |
"revision": null,
|
| 26 |
"target_modules": [
|
|
|
|
| 27 |
"up_proj",
|
| 28 |
+
"q_proj",
|
|
|
|
| 29 |
"down_proj",
|
| 30 |
+
"k_proj",
|
| 31 |
"o_proj",
|
| 32 |
+
"v_proj",
|
| 33 |
+
"gate_proj"
|
| 34 |
],
|
| 35 |
"task_type": "CAUSAL_LM",
|
| 36 |
"trainable_token_indices": null,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 22573704
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2025b50cd9e653d874907c722a51de4672134c66ea314c9bf927fb2e7348c9c1
|
| 3 |
size 22573704
|
python-languageserver-cancellation/448621bea4894cebb1cbd52c0179c6d6ed72390d9a/cancellation-bg-41.tmp
ADDED
|
File without changes
|
python-languageserver-cancellation/448621bea4894cebb1cbd52c0179c6d6ed72390d9a/cancellation-bg-43.tmp
ADDED
|
File without changes
|
python-languageserver-cancellation/448621bea4894cebb1cbd52c0179c6d6ed72390d9a/cancellation-bg-45.tmp
ADDED
|
File without changes
|
python-languageserver-cancellation/448621bea4894cebb1cbd52c0179c6d6ed72390d9a/cancellation-bg-47.tmp
ADDED
|
File without changes
|
tmp9hgekgrc/__pycache__/_remote_module_non_scriptable.cpython-311.pyc
ADDED
|
Binary file (2.77 kB). View file
|
|
|
tmp9hgekgrc/_remote_module_non_scriptable.py
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import *
|
| 2 |
+
|
| 3 |
+
import torch
|
| 4 |
+
import torch.distributed.rpc as rpc
|
| 5 |
+
from torch import Tensor
|
| 6 |
+
from torch._jit_internal import Future
|
| 7 |
+
from torch.distributed.rpc import RRef
|
| 8 |
+
from typing import Tuple # pyre-ignore: unused import
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
module_interface_cls = None
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def forward_async(self, *args, **kwargs):
|
| 15 |
+
args = (self.module_rref, self.device, self.is_device_map_set, *args)
|
| 16 |
+
kwargs = {**kwargs}
|
| 17 |
+
return rpc.rpc_async(
|
| 18 |
+
self.module_rref.owner(),
|
| 19 |
+
_remote_forward,
|
| 20 |
+
args,
|
| 21 |
+
kwargs,
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def forward(self, *args, **kwargs):
|
| 26 |
+
args = (self.module_rref, self.device, self.is_device_map_set, *args)
|
| 27 |
+
kwargs = {**kwargs}
|
| 28 |
+
ret_fut = rpc.rpc_async(
|
| 29 |
+
self.module_rref.owner(),
|
| 30 |
+
_remote_forward,
|
| 31 |
+
args,
|
| 32 |
+
kwargs,
|
| 33 |
+
)
|
| 34 |
+
return ret_fut.wait()
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
_generated_methods = [
|
| 38 |
+
forward_async,
|
| 39 |
+
forward,
|
| 40 |
+
]
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
def _remote_forward(
|
| 46 |
+
module_rref: RRef[module_interface_cls], device: str, is_device_map_set: bool, *args, **kwargs):
|
| 47 |
+
module = module_rref.local_value()
|
| 48 |
+
device = torch.device(device)
|
| 49 |
+
|
| 50 |
+
if device.type != "cuda":
|
| 51 |
+
return module.forward(*args, **kwargs)
|
| 52 |
+
|
| 53 |
+
# If the module is on a cuda device,
|
| 54 |
+
# move any CPU tensor in args or kwargs to the same cuda device.
|
| 55 |
+
# Since torch script does not support generator expression,
|
| 56 |
+
# have to use concatenation instead of
|
| 57 |
+
# ``tuple(i.to(device) if isinstance(i, Tensor) else i for i in *args)``.
|
| 58 |
+
args = (*args,)
|
| 59 |
+
out_args: Tuple[()] = ()
|
| 60 |
+
for arg in args:
|
| 61 |
+
arg = (arg.to(device),) if isinstance(arg, Tensor) else (arg,)
|
| 62 |
+
out_args = out_args + arg
|
| 63 |
+
|
| 64 |
+
kwargs = {**kwargs}
|
| 65 |
+
for k, v in kwargs.items():
|
| 66 |
+
if isinstance(v, Tensor):
|
| 67 |
+
kwargs[k] = kwargs[k].to(device)
|
| 68 |
+
|
| 69 |
+
if is_device_map_set:
|
| 70 |
+
return module.forward(*out_args, **kwargs)
|
| 71 |
+
|
| 72 |
+
# If the device map is empty, then only CPU tensors are allowed to send over wire,
|
| 73 |
+
# so have to move any GPU tensor to CPU in the output.
|
| 74 |
+
# Since torch script does not support generator expression,
|
| 75 |
+
# have to use concatenation instead of
|
| 76 |
+
# ``tuple(i.cpu() if isinstance(i, Tensor) else i for i in module.forward(*out_args, **kwargs))``.
|
| 77 |
+
ret: Tuple[()] = ()
|
| 78 |
+
for i in module.forward(*out_args, **kwargs):
|
| 79 |
+
i = (i.cpu(),) if isinstance(i, Tensor) else (i,)
|
| 80 |
+
ret = ret + i
|
| 81 |
+
return ret
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5905
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65d434a88cacf58352eadd1e4664d22d67ef507d8a4d8abc8bd29e7d576cda46
|
| 3 |
size 5905
|