Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
39b1f1c
XX namelist
certik Jun 22, 2023
5e0df96
XX optional array of structures
certik Jul 21, 2023
4d1e58f
XX allocate explicitly
certik Jul 22, 2023
f3e0cc8
XX `print "(1000(i6))", input` not supported
certik Jul 22, 2023
92a8af7
XX `a = [a, b]` array idiom does not work
certik Jul 22, 2023
5fcb414
XX `tokens2 = tokens(:n_tokens)` fails
certik Jul 22, 2023
67df79c
XX Hardwire the input file
certik Jul 21, 2023
c72c771
XX use integer instead of character arrays
certik Jul 22, 2023
592c137
XX char on integer(1)
certik Jul 23, 2023
97d07df
XX array indexing bug
certik Jul 23, 2023
cc68889
XX array assignment
certik Jul 23, 2023
e8ced08
XX iachar negative value bug
certik Jul 23, 2023
bce3909
XX Remove decoding
certik Jul 23, 2023
d60635e
XX: array assignment
certik Jul 23, 2023
061a61b
Add checks for the correct results
certik Jul 23, 2023
175e33f
XX current bug
certik Jul 23, 2023
42020bc
XX comment out transformer
certik Jul 23, 2023
128baa3
XX working on the matmul bug
certik Jul 23, 2023
da452b5
XX Fix array operations inside a loop
certik Jul 23, 2023
ad51e32
Move a return array to an argument
certik Jul 23, 2023
cd29734
transformer_block works
certik Jul 23, 2023
35c8f7a
This still works with GF
certik Jul 23, 2023
fafe991
Rework input handling
certik Jul 23, 2023
0c75ecc
Add a check
certik Jul 23, 2023
1ce230a
XX comment out decoding for now
certik Jul 23, 2023
6d52ef3
XX use intent out arg
certik Jul 23, 2023
20a245a
XX No allocatable
certik Jul 23, 2023
ae12a66
XX workaround array op
certik Jul 23, 2023
5d0d183
XX promote to subroutines
certik Jul 23, 2023
1ea7585
XX layer norm
certik Jul 23, 2023
320f465
XX remove array op
certik Jul 23, 2023
9ede756
XX layer_norm
certik Jul 23, 2023
c5d9c14
XX update, works
certik Jul 23, 2023
c409e2a
Works
certik Jul 23, 2023
f034266
Still works
certik Jul 23, 2023
df492af
XX copy arguments
certik Jul 23, 2023
898fc19
Do not do copies
certik Jul 23, 2023
33dc91b
Works
certik Jul 23, 2023
c8b2b4f
Simplify ffn
certik Jul 23, 2023
093eae0
Rework mha
certik Jul 23, 2023
cd4ed66
Disable kv_cache for now
certik Jul 23, 2023
a4b2975
Get rid of associate
certik Jul 23, 2023
5fe8374
Get kv cache working again
certik Jul 23, 2023
0da3954
Simplify
certik Jul 23, 2023
abb8d10
Get rid of the second associate
certik Jul 23, 2023
0f1461c
Make attention a subroutine
certik Jul 23, 2023
4a1527e
Use local variables
certik Jul 23, 2023
4c88fe7
y split
certik Jul 23, 2023
d930f0b
Use l
certik Jul 23, 2023
d867857
Add a loop
certik Jul 23, 2023
77bcc18
Loop
certik Jul 23, 2023
ea3f07c
Loop
certik Jul 23, 2023
c4524b2
Separate
certik Jul 23, 2023
4a6876c
Loop
certik Jul 23, 2023
6de7e98
Loops
certik Jul 23, 2023
6c5591c
Loop
certik Jul 23, 2023
a5e35e7
Loops
certik Jul 23, 2023
c2f6629
Disable cache
certik Jul 24, 2023
33ae026
Enable cache
certik Jul 24, 2023
bcac8b2
Temp copy
certik Jul 24, 2023
13f8021
Align ranks
certik Jul 24, 2023
23efcd6
Copy things element by element
certik Jul 24, 2023
a27eb59
Print the output as text
certik Jul 24, 2023
c77237c
Remove checks, they are tested in tests
certik Jul 24, 2023
da839e6
Remove trailing whitespace (not used by GF)
certik Jul 24, 2023
7e732dd
Printing
certik Jul 25, 2023
dc02c77
Enable checks
certik Jul 25, 2023
51b6a16
Enable printing tokens
certik Jul 25, 2023
2e9371d
Fix output copying
certik Jul 25, 2023
ab49255
Better error message
certik Jul 25, 2023
5476674
Workaround for https://github.com/lfortran/lfortran/issues/2069
certik Jul 25, 2023
5f96d8c
Make it more explicit
certik Jul 25, 2023
cefc3cf
begin-port
rebcabin Aug 2, 2023
f6ccd37
many asserts -- round-tripping is next
rebcabin Aug 4, 2023
2797bb2
all asserts -- factoring metadata is next
rebcabin Aug 4, 2023
d5eb9b3
round-tripped metadata
rebcabin Aug 4, 2023
ae88552
round-tripped model data -- indices and texts left to do
rebcabin Aug 4, 2023
d7405f0
everything round-tripped
rebcabin Aug 4, 2023
495a532
nearly done with round-tripping
rebcabin Aug 5, 2023
7f51906
removed TF dependencies from 'restore_model'
rebcabin Aug 5, 2023
b77ed79
starting the tokenizer
rebcabin Aug 5, 2023
d75adc6
interim -- broken
rebcabin Aug 6, 2023
a375154
interim -- still broken
rebcabin Aug 7, 2023
5717d50
interim -- still broken
rebcabin Aug 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion chat.f90
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
program chatgpt2
use driver, only: chat
use tokenizer, only: string
implicit none
call chat()
type(string), allocatable :: inputs(:)
call chat(.false., inputs)
end program
Loading