Commit e42cf39
committed
fix(types): correct
- change scale: float to float* (POINTER(c_float))
- make adapters and scales optional arrays to match C API
Signed-off-by: JamePeng <jame_peng@sina.com>llama_set_adapters_lora LoRA adapter ctypes signature and use pointer for scales1 parent 87157f3 commit e42cf39
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1911 | 1911 | | |
1912 | 1912 | | |
1913 | 1913 | | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
1914 | 1918 | | |
1915 | 1919 | | |
1916 | 1920 | | |
| |||
2058 | 2062 | | |
2059 | 2063 | | |
2060 | 2064 | | |
2061 | | - | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
2062 | 2070 | | |
2063 | 2071 | | |
2064 | 2072 | | |
2065 | | - | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
2066 | 2077 | | |
2067 | | - | |
2068 | | - | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
2069 | 2082 | | |
2070 | 2083 | | |
2071 | 2084 | | |
| |||
0 commit comments